changeset 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 9a0f996a358a
children 18e50356e5e3
files libinterp/parse-tree/lex.ll
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.ll	Mon Jan 06 14:21:26 2014 -0500
+++ b/libinterp/parse-tree/lex.ll	Tue Jan 07 13:18:13 2014 -0500
@@ -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;