Skip to content

Commit 3d0f7e6

Browse files
nopromptguns
authored andcommitted
Place boundaries around keywords
1 parent edf13b4 commit 3d0f7e6

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

syntax/clojure.vim

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ syntax keyword clojureVariable *1 *2 *3 *agent* *allow-unresolved-vars* *assert*
3232
" * Must not end in a : or /
3333
" * Must not have two adjacent colons except at the beginning
3434
" * Must not contain any reader metacharacters except for ' and #
35-
syntax match clojureKeyword "\v:{1,2}%([^ \n\r\t()\[\]{}";@^`~\\%/]+/)*[^ \n\r\t()\[\]{}";@^`~\\%/]+:@<!"
35+
syntax match clojureKeyword "\v<:{1,2}%([^ \n\r\t()\[\]{}";@^`~\\%/]+/)*[^ \n\r\t()\[\]{}";@^`~\\%/]+:@<!>"
3636

3737
syntax region clojureString start=/L\="/ skip=/\\\\\|\\"/ end=/"/
3838

@@ -52,10 +52,6 @@ for s:radix in range(2, 36)
5252
endfor
5353
unlet! s:radixChars s:radix
5454

55-
let s:idChars = "a-zA-Z0-9.$!*_+=#<>-\\'"
56-
execute 'syntax match clojureSymbol "\v[a-zA-Z.$!*_+=<>-]+(:['. s:idChars . ']+|[' . s:idChars .'])*"'
57-
unlet! s:idChars
58-
5955
syntax match clojureNumber "\<-\=[0-9]\+\(\.[0-9]*\)\=\(M\|\([eE][-+]\?[0-9]\+\)\)\?\>"
6056
syntax match clojureNumber "\<-\=[0-9]\+N\?\>"
6157
syntax match clojureNumber "\<-\=0x[0-9a-fA-F]\+\>"

0 commit comments

Comments
 (0)