Skip to content

Commit d46626d

Browse files
committed
Fix regression in clojureCharacter match
1 parent 5824456 commit d46626d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clj/test/vim_clojure_static/syntax_test.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
(comment (test #'test-number-literals))
8585

8686
(defsyntaxtest test-character-literals
87-
["%s"
87+
["[%s]"
8888
["\\0" character "\\a" character "\\Z" character
8989
"\\." character "\\\\" character "\\" character
9090
"\\o7" character "\\o07" character "\\o307" character

syntax/clojure.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ syntax match clojureStringEscape "\v\\%([\\btnfr"]|u\x{4}|[0-3]\o{2}|\o{1,2})" c
7676

7777
syntax region clojureString matchgroup=clojureStringDelimiter start=/"/ skip=/\\\\\|\\"/ end=/"/ contains=clojureStringEscape,@Spell
7878

79-
syntax match clojureCharacter "\v\\%(.$|o%([0-3]\o{2}|\o{1,2})|u\x{4}|newline|tab|space|return|backspace|formfeed)"
79+
syntax match clojureCharacter "\v\\%(o%([0-3]\o{2}|\o{1,2})|u\x{4}|newline|tab|space|return|backspace|formfeed|.)"
8080

8181
syntax match clojureSymbol "\v%([a-zA-Z!$&*_+=|<.>?-]|[^\x00-\x7F])+%(:?%([a-zA-Z0-9!#$%&*_+=|'<.>/?-]|[^\x00-\x7F]))*[#:]@1<!"
8282

0 commit comments

Comments
 (0)