Skip to content

Commit 5c96edb

Browse files
nopromptguns
authored andcommitted
Improve symbol highlighting, extend clojureAnonArg
1 parent 3d0f7e6 commit 5c96edb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

syntax/clojure.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,13 @@ syntax match clojureUnquote "\~"
6565
syntax match clojureUnquote "\~@"
6666
syntax match clojureMeta "\^"
6767
syntax match clojureDeref "@"
68-
syntax match clojureAnonArg "%\(\d\|&\)\?"
68+
69+
" Clojure permits no more than 20 params.
70+
syntax match clojureAnonArg "%\([12][0-9]\|[1-9]\|&\)\?"
6971
syntax match clojureDispatch "\v#[\^'=<_]?"
7072

73+
syntax match clojureSymbol "\v[a-zA-Z!$&*_+=|<.>?-](:?[a-zA-Z0-9!#$&*_+=|'<.>?-])+[#:]@<!"
74+
7175
syntax region clojureRegexp start=/L\=\#"/ skip=/\\\\\|\\"/ end=/"/
7276

7377
syntax match clojureComment ";.*$" contains=clojureTodo,@Spell

0 commit comments

Comments
 (0)