Skip to content

Commit c1b11a3

Browse files
committed
Syntax match "&" outside of vectors
When using a script like rainbow_parentheses.vim, the current syntax region may no longer be clojureVector, causing "&" to go unmatched. Thus, we match lone "&" unconditionally.
1 parent f8b27ce commit c1b11a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

syntax/clojure.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ syn match clojureDispatch "\(#^\|#'\)"
7070
syn match clojureDispatch "\^"
7171

7272
syn match clojureAnonArg contained "%\(\d\|&\)\?"
73-
syn match clojureVarArg contained "&"
73+
syn match clojureVarArg "&"
7474

7575
syn region clojureSexp matchgroup=clojureParen start="(" matchgroup=clojureParen end=")" contains=@clojureTopCluster
7676
syn region clojureAnonFn matchgroup=clojureParen start="#(" matchgroup=clojureParen end=")" contains=@clojureTopCluster,clojureAnonArg,clojureSexp

0 commit comments

Comments
 (0)