Skip to content

Commit 7d46e29

Browse files
committed
Fix symbol namespace matching to be the same as kw ns
1 parent c513534 commit 7d46e29

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: clj/test/vim/syntax_test.clj

+1-2
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,7 @@
220220
:clojureDispatch
221221
:clojureSymbolNs
222222
:clojureSymbolNsSeparator
223-
:clojureSymbol
224-
:clojureParen])]])
223+
:clojureSymbol])]])
225224

226225
(comment (test #'keywords-test))
227226

Diff for: syntax/clojure.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ syntax region clojureString matchgroup=clojureStringDelimiter start=/"/ skip=/\\
7979

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

82-
syntax match clojureSymbolNs contained "\v[^/\[\(\{ ]+\ze/"
82+
syntax match clojureSymbolNs contained "\v[^ \n\r\t()\[\]{}";@^`~\\\/'#]+\ze\/"
8383
syntax match clojureSymbolNsSeparator contained "/"
8484
syntax match clojureSymbol "\v%([a-zA-Z!$&*_+=|<.>?-]|[^\x00-\x7F])+%(:?%([a-zA-Z0-9!#$%&*_+=|'<.>/?-]|[^\x00-\x7F]))*[#:]@1<!" contains=clojureSymbolNs,clojureSymbolNsSeparator
8585

0 commit comments

Comments
 (0)