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 | 9b055e3354d1867f7dd90db499751c76285173ea (patch) | |
tree | ef8df7141b748ab329fc79a2f71001d56e6e3581 | |
parent | b6653769f3ae1c31cc5d475c2075499216c7433e (diff) | |
download | txr-9b055e3354d1867f7dd90db499751c76285173ea.tar.gz txr-9b055e3354d1867f7dd90db499751c76285173ea.tar.bz2 txr-9b055e3354d1867f7dd90db499751c76285173ea.zip |
Allow whitespace between @ and ; in comments.
* parser.l (grammar): Recognize {WS}* between @
and ; (or the legacy #) in comments.
* txr.1: Documentation updated.
-rw-r--r-- | parser.l | 4 | ||||
-rw-r--r-- | txr.1 | 2 |
2 files changed, 3 insertions, 3 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 */ } @@ -909,7 +909,7 @@ are output on standard output. .SS* Comments A query may contain comments which are delimited by the sequence .code @; -and extend to the end of the line. No whitespace can occur between the +and extend to the end of the line. Whitespace can occur between the .code @ and .codn ; . |