Mercurial > hg > octave-nkf
changeset 14638:5b0872b5b234
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 <james.laird@nicta.com.au>.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 16 May 2012 16:22:00 -0400 |
parents | e12a0ac530b4 |
children | 87a50e7cec7a |
files | src/lex.ll |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lex.ll +++ b/src/lex.ll @@ -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 ('"');