Преглед на файлове

- minor fix to regular expressions

Franco Ponticelli преди 14 години
родител
ревизия
8fd1e9875c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      lexer.mll

+ 1 - 1
lexer.mll

@@ -298,7 +298,7 @@ and regexp = parse
 	| '\\' 'n' { add "\n"; regexp lexbuf }
 	| '\\' 't' { add "\t"; regexp lexbuf }
 	| '\\' ['\\' '$' '.' '*' '+' '^' '|' '{' '}' '[' ']' '(' ')' '?' '-' '0'-'9'] { add (lexeme lexbuf); regexp lexbuf }
-	| '\\' ['w' 'W' 'b' 'B' 's' 'S' 'd' 'D'] { add (lexeme lexbuf); regexp lexbuf }
+	| '\\' ['w' 'W' 'b' 'B' 's' 'S' 'd' 'D' 'x'] { add (lexeme lexbuf); regexp lexbuf }
 	| '\\' [^ '\\'] { error (Invalid_character (lexeme lexbuf).[1]) (lexeme_end lexbuf - 1) }
 	| '/' { regexp_options lexbuf, lexeme_end lexbuf }
 	| [^ '\\' '/' '\r' '\n']+ { store lexbuf; regexp lexbuf }