diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | src/lexer.mll | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,7 @@ - add RPM4 fake package (for eg: iurt) - update Net::FTP fake package for installer +- perl_checker: + o recognize \B in regexps Version 1.2.17 - 19 March 2012, by Thierry Vignaud diff --git a/src/lexer.mll b/src/lexer.mll index fdb9420..07bd825 100644 --- a/src/lexer.mll +++ b/src/lexer.mll @@ -951,7 +951,7 @@ and re_string_escape = parse | "x{" [^ '}']* '}' { hex_in_string lexbuf next_rule (skip_n_char_ 2 1 (lexeme lexbuf)) } | 'x' [^ '{'] _ { hex_in_string lexbuf next_rule (skip_n_char 1 (lexeme lexbuf)) } | '\n' { die lexbuf "do not use \"\\\" before end-of-line, it's useless and generally bad" } -| ['r' 'b' 'f' '$' '@' '%' 's' 'S' 'd' 'D' 'w' 'W' 'Q' 'E' 'b' 'Z' 'z' '^' '.' '*' '+' '?' '[' ']' '(' ')' '|' '{' '}' '-' ':'] { +| ['r' 'B' 'b' 'f' '$' '@' '%' 's' 'S' 'd' 'D' 'w' 'W' 'Q' 'E' 'b' 'Z' 'z' '^' '.' '*' '+' '?' '[' ']' '(' ')' '|' '{' '}' '-' ':'] { next_s ("\\" ^ lexeme lexbuf) (Stack.pop next_rule) lexbuf } | _ { |