lexer: temporarily revert #\ patch; keep CR in comment bug fix
This commit temporarily reverts the commit that allows #\ "tcl-style"
comments everywhere and documents them, for the 1.7.1 patch release
cca1f7d18f.
\r is removed from the list of characters not allowed in a comment to
preserve that bugfix.
This commit is contained in:
1 parent
511d50b15b
commit
5d95791a67
7 files changed
+279
-440
No files matched your search
+1
-7
@@ -21,7 +21,6 @@ struct lexer_param;
|
||||
%s IN_BRACE
|
||||
%s IN_QQINTERP
|
||||
%x IN_QQSTRING
|
||||
%x IN_COMMENT
|
||||
%{
|
||||
static int enter(int opening, int state, yyscan_t yyscanner);
|
||||
static int try_exit(int closing, int state, yyscan_t yyscanner);
|
||||
@@ -38,12 +37,7 @@ struct lexer_param;
|
||||
|
||||
%%
|
||||
|
||||
"#" { yy_push_state(IN_COMMENT, yyscanner); }
|
||||
<IN_COMMENT>{
|
||||
\\[\\\n]|. { }
|
||||
\n { yy_pop_state(yyscanner); }
|
||||
}
|
||||
<IN_COMMENT><<EOF>> { yy_pop_state(yyscanner); }
|
||||
"#"[^\n]* { /* comments */ }
|
||||
|
||||
"!=" { return NEQ; }
|
||||
"==" { return EQ; }
|
||||
|
||||
Reference in new issue
Block a user