summaryrefslogtreecommitdiffstats
path: root/genvim.txr
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-07-15 06:53:01 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-07-15 06:53:01 -0700
commit472f7ac7c4dd31c6cd9b1ea833d5a74c4e674311 (patch)
treedf6e776f8839acbe54984671f3c47bdcbe86ab5b /genvim.txr
parentf218366f20fc90045ad4466919786e69b293dc41 (diff)
downloadtxr-472f7ac7c4dd31c6cd9b1ea833d5a74c4e674311.tar.gz
txr-472f7ac7c4dd31c6cd9b1ea833d5a74c4e674311.tar.bz2
txr-472f7ac7c4dd31c6cd9b1ea833d5a74c4e674311.zip
Fix broken regex highlighting.
* genvim.txr (txl_regex): Missing syntactic region added. (txr_regex): Start pattern is just a slash; no optional # in front. * txr.vim: Regenerated.
Diffstat (limited to 'genvim.txr')
-rw-r--r--genvim.txr3
1 files changed, 2 insertions, 1 deletions
diff --git a/genvim.txr b/genvim.txr
index 1934a3a8..82f5a6b5 100644
--- a/genvim.txr
+++ b/genvim.txr
@@ -116,7 +116,8 @@ syn region txr_mlist contained matchgroup=Delimiter start="@@[ \t]*(" matchgroup
syn region txr_mbracket matchgroup=Delimiter start="@@[ \t]*\[" matchgroup=Delimiter end="\]" contains=txl_keyword,txr_string,txl_regex,txr_num,txl_ident,txr_metanum,txr_list,txr_bracket,txr_mlist,txr_mbracket,txr_quasilit,txr_chr,txr_quote,txr_unquote,txr_splice,txr_dot,txr_dotdot,txr_metaat,txr_ncomment,txr_nested_error
syn region txr_string contained start=+#\?\*\?"+ skip=+\\\\\|\\"\|\\\n+ end=+"\|\n+
syn region txr_quasilit contained start=+#\?\*\?`+ skip=+\\\\\|\\`\|\\\n+ end=+`\|\n+ contains=txr_variable,txr_metanum,txr_bracevar,txr_mlist,txr_mbracket
-syn region txr_regex contained start="#\?/" skip="\\\\\|\\/\|\\\n" end="/\|\n"
+syn region txr_regex contained start="/" skip="\\\\\|\\/\|\\\n" end="/\|\n"
+syn region txl_regex contained start="#/" skip="\\\\\|\\/\|\\\n" end="/\|\n"
hi def link txr_at Special
hi def link txr_atstar Special