diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-07-28 06:59:58 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-07-28 06:59:58 -0700 |
commit | 3d23e04870da2f15369bf8c9265023ae581a80c9 (patch) | |
tree | 67043e0135e4aaa8f9bb21387f9cfa7174511307 /genvim.txr | |
parent | b8f1cb3ce74b1738de5ecbaeeaea60d0bcd0a239 (diff) | |
download | txr-3d23e04870da2f15369bf8c9265023ae581a80c9.tar.gz txr-3d23e04870da2f15369bf8c9265023ae581a80c9.tar.bz2 txr-3d23e04870da2f15369bf8c9265023ae581a80c9.zip |
genvim: flag invalid # syntax.
* genvim.txr (txr_error): New match in this category for #
followed by something other than H, S or R. Some characters
other than these are valid after #, but are covered by
explicit matches that occur later.
Diffstat (limited to 'genvim.txr')
-rw-r--r-- | genvim.txr | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -109,6 +109,8 @@ syn match txr_numesc "\\x[@hex]\+;\?" contained syn match txr_numesc "\\[@oct]\+;\?" contained syn match txr_regesc "\\[@chesc/sSdDwW()\|.*?+~&%\[\]\-]" contained +syn match txr_error "#[^HSR]"@(if txr-p " contained") + syn match txr_chr "#\\x[@hex]\+"@(if txr-p " contained") syn match txr_chr "#\\o[@oct]\+"@(if txr-p " contained") syn match txr_chr "#\\[^ \t\n@alnum]"@(if txr-p " contained") |