diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-05-23 20:47:36 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-05-23 20:47:36 -0700 |
commit | 7b577e8a23f522d51fef4c2f60edf1a25e2923a4 (patch) | |
tree | ef8df7141b748ab329fc79a2f71001d56e6e3581 /parser.l | |
parent | 5aacefa978182e8fabfa8c5c703ffb19108c44ce (diff) | |
download | txr-7b577e8a23f522d51fef4c2f60edf1a25e2923a4.tar.gz txr-7b577e8a23f522d51fef4c2f60edf1a25e2923a4.tar.bz2 txr-7b577e8a23f522d51fef4c2f60edf1a25e2923a4.zip |
Allow whitespace between @ and ; in comments.
* parser.l (grammar): Recognize {WS}* between @
and ; (or the legacy #) in comments.
* txr.1: Documentation updated.
Diffstat (limited to 'parser.l')
-rw-r--r-- | parser.l | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -908,12 +908,12 @@ UONLY {U2}{U}|{U3}{U}{U}|{U4}{U}{U}{U} yy_push_state(SPECIAL, yyscanner); } -<INITIAL>^@[#;].*{NL} { +<INITIAL>^@{WS}*[#;].*{NL} { /* eat whole line comment */ yyextra->lineno++; } -<INITIAL>@[#;].* { +<INITIAL>@{WS}*[#;].* { /* comment to end of line */ } |