Mercurial > hg > octave-nkf
diff libinterp/parse-tree/lex.ll @ 18230:2eb26867bf66 gui-release
update COMMAND_START pattern in lexer
* lex.ll (<COMMAND_START>(\.|[^#% \t\r\n\.\,\;\"\'\(\[\{\}\]\)]+)):
Fix pattern to not allow '.' to be followed by another '.'.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 07 Jan 2014 13:18:13 -0500 |
parents | 615fdd2238c1 |
children | 3cad99b56fa7 af8a70d6885c |
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.ll +++ b/libinterp/parse-tree/lex.ll @@ -422,8 +422,8 @@ // Everything else is slurped into the command arguments. %} -<COMMAND_START>([\.]|[^#% \t\r\n\,\;\"\'\(\[\{\}\]\)]+) { - curr_lexer->lexer_debug ("<COMMAND_START>[^#% \\t\\r\\n\\.\\,\\;\\\"\\'\\(\\[\\{\\}\\]\\)]+"); +<COMMAND_START>(\.|[^#% \t\r\n\.\,\;\"\'\(\[\{\}\]\)]+) { + curr_lexer->lexer_debug ("<COMMAND_START>(\\.|[^#% \\t\\r\\n\\.\\,\\;\\\"\\'\\(\\[\\{\\}\\]\\)]+)"); curr_lexer->string_text += yytext; curr_lexer->current_input_column += yyleng;