summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--txr.vim2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 010c6676..50f68bbc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2012-01-25 Kaz Kylheku <kaz@kylheku.com>
+ * txr.vim (txr_chr): Fix for highlighting named characters
+ like #\newline.
+
+2012-01-25 Kaz Kylheku <kaz@kylheku.com>
+
* eval.c (dwim_s): New symbol variable.
(dwim_loc, op_dwim): New static functions.
(op_modplace): Support assignment to dwim forms
diff --git a/txr.vim b/txr.vim
index c7ace6a5..a49ca11a 100644
--- a/txr.vim
+++ b/txr.vim
@@ -95,7 +95,7 @@ syn match txr_char "@[ \t]*\\[0-9]\+"
syn match txr_variable "@[ \t]*[*]\?[A-Za-z_][A-Za-z0-9_]*"
syn match txr_chr "#\\x[A-Fa-f0-9]\+"
syn match txr_chr "#\\[a-zA-Z_][a-zA-Z0-9_]*"
-syn match txr_chr "#\\[^ \t\n]"
+syn match txr_chr "#\\[^ \t\na-zA-Z_]"
syn match txr_ncomment ";.*" contained
syn match txr_ident "[a-zA-Z0-9!$%&*+\-<=>?\\^_~]\+" contained