Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7d46e29

Browse files
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

‎clj/test/vim/syntax_test.clj

Lines changed: 1 addition & 2 deletions
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

‎syntax/clojure.vim

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /