Skip to content

Commit 69197c5

Browse files
committed
Remove unneeded patterns from String and Regexp
These appears to be cargo culted from the C syntax file which defines multibyte L"" string literals for C++. What the skip=/\\\\/ is for, I still don't know, but it appears to be useless. I will assume it was similarly cargo culted, and wait for bug reports.
1 parent 1631a82 commit 69197c5

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

syntax/clojure.vim

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ syntax match clojureKeyword "\v<:{1,2}%([^ \n\r\t()\[\]{}";@^`~\\%/]+/)*[^ \n\r\
3636

3737
syntax match clojureStringEscape "\\[\\btnfr"]\|\\u\x\{4\}" contained
3838

39-
syntax region clojureString start=/L\="/ skip=/\\\\\|\\"/ end=/"/ contains=clojureStringEscape
39+
syntax region clojureString start=/"/ skip=/\\"/ end=/"/ contains=clojureStringEscape
40+
syntax region clojureRegexp start=/\#"/ skip=/\\"/ end=/"/
4041

4142
syntax match clojureCharacter "\\."
4243
syntax match clojureCharacter "\\o\o\{3\}"
@@ -74,8 +75,6 @@ syntax match clojureAnonArg "%\(20\|1\d\|[1-9]\|&\)\?"
7475

7576
syntax match clojureSymbol "\v([a-zA-Z!$&*_+=|<.>?-]|[^\x00-\x7F])+(:?([a-zA-Z0-9!#$%&*_+=|'<.>?-]|[^\x00-\x7F]))*[#:]@<!"
7677

77-
syntax region clojureRegexp start=/L\=\#"/ skip=/\\\\\|\\"/ end=/"/
78-
7978
syntax match clojureComment ";.*$" contains=clojureTodo,@Spell
8079
syntax match clojureComment "#!.*$"
8180

0 commit comments

Comments
 (0)