summaryrefslogtreecommitdiffstats
path: root/src/tclscanner.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/tclscanner.l')
-rw-r--r--src/tclscanner.l13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/tclscanner.l b/src/tclscanner.l
index e8db560..a70f018 100644
--- a/src/tclscanner.l
+++ b/src/tclscanner.l
@@ -969,14 +969,21 @@ D
unput('#');
yy_push_state(COMMENTLINE);
}
-<COMMAND>\x1A {
+<COMMAND>{ws}*\x1A {
D
tcl.string_commentcodify = "";
tcl.string_commentline = "";
- tcl.line_body1=yylineno-1;
+ tcl.line_body1=yylineno;
tcl_command(-1,"");
}
-<COMMAND>{ws}*[;\n] {
+<COMMAND>{ws}*; {
+D
+ tcl.string_commentcodify = "";
+ tcl.string_commentline = "";
+ tcl.line_body1=yylineno;
+ tcl_command(-1,yytext);
+}
+<COMMAND>{ws}*\n {
D
tcl.string_commentcodify = "";
tcl.string_commentline = "";