From 640660c9b6e4d6e9149e5ab98b9e316bfda56864 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 4 Sep 2008 14:13:34 +0000 Subject: recognize //= --- src/lexer.mll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lexer.mll b/src/lexer.mll index dfa8561..b25e08c 100644 --- a/src/lexer.mll +++ b/src/lexer.mll @@ -505,7 +505,7 @@ rule token = parse | ":" { COLON(pos lexbuf) } | "::" { PKG_SCOPE(pos lexbuf) } -| "=" | "+=" | "-=" | "*=" | ".=" | "|=" | "&=" | "^=" | "||=" | "&&=" { ASSIGN(lexeme lexbuf, pos lexbuf) } +| "=" | "+=" | "-=" | "*=" | ".=" | "|=" | "&=" | "^=" | "||=" | "&&=" | "//=" { ASSIGN(lexeme lexbuf, pos lexbuf) } | "<<=" | ">>=" | "**=" { warn [Warn_complex_expressions] lexbuf (Printf.sprintf "don't use \"%s\", use the expanded version instead" (lexeme lexbuf)) ; -- cgit v1.2.1