diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | txr.vim | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,5 +1,10 @@ 2012-02-02 Kaz Kylheku <kaz@kylheku.com> + * txr.vim: Move error match before other cases and simplify. + Comment are colorized properly again. + +2012-02-02 Kaz Kylheku <kaz@kylheku.com> + This test case would have caught the prior regression. * Makefile (TXR_ARGS): Defined for new test case. @@ -85,6 +85,8 @@ syn keyword txl_keyword contained range generate repeat force syn match txr_hash "#" contained syn match txr_quote "[,']" contained +"syn match txr_error "@[\t ]*[*]\?[\t ]*[^\t A-Za-z*{(\\\[/@]" +syn match txr_error "@[\t ]*[*]\?[\t ]*." syn match txr_hashbang "^#!.*" syn match txr_atat "@[ \t]*@" syn match txr_comment "@[ \t]*[#;].*" @@ -94,7 +96,6 @@ syn match txr_char "@[ \t]*\\x[0-9a-fa-f]\+" syn match txr_char "@[ \t]*\\[0-9]\+" syn match txr_variable "@[ \t]*[*]\?[ \t]*[A-Za-z_][A-Aa-z0-9_]*" syn match txr_regdir "@[ \t]*/\(\\/\|[^/]\)*/" -syn match txr_error "@[\t ]*[*]\?[\t ]*[^\t A-Za-z*{(\\\[/@]" syn match txr_chr "#\\x[A-Fa-f0-9]\+" contained syn match txr_chr "#\\[^ \t\nA-Za-z0-9_]" contained |