# HG changeset patch # User John W. Eaton # Date 1337199720 14400 # Node ID 5b0872b5b234c0920aad9f7c9f4242dff4536e83 # Parent e12a0ac530b4bafde2061987fe66f030b3a3eb20 fix missing backslash quoting in lexer rules * lex.ll (\?{IDENT}\.{IDENT}{S}*): Quote . to recognize as literal "." character. Properly quote \ in LEXER_DEBUG rules. From James Laird . diff -r e12a0ac530b4 -r 5b0872b5b234 src/lex.ll --- a/src/lex.ll Wed May 16 08:12:32 2012 -0400 +++ b/src/lex.ll Wed May 16 16:22:00 2012 -0400 @@ -765,8 +765,8 @@ %} \?{IDENT}{S}* | -\?{IDENT}.{IDENT}{S}* { - LEXER_DEBUG ("\?{IDENT}{S}* | \?{IDENT}.{IDENT}{S}*"); +\?{IDENT}\.{IDENT}{S}* { + LEXER_DEBUG ("\\?{IDENT}{S}*|\\?{IDENT}\\.{IDENT}{S}*"); int id_tok = handle_meta_identifier (); @@ -854,7 +854,7 @@ %} \" { - LEXER_DEBUG ("\""); + LEXER_DEBUG ("\\""); current_input_column++; int tok = handle_string ('"');