@@ -75,18 +75,14 @@ syntax match clojureDispatch "\v#[\^'=<_]?"
7575" Clojure permits no more than 20 params.
7676syntax match clojureAnonArg " %\( 20\| 1\d\| [1-9]\| &\)\? "
7777
78- " Note: Although not mentioned in the official documenation prefixing the
79- " characters ".", "+", "*", "?", "{", "}", "[", "]", "(", and ")" with a "\"
80- " forms a legal escape sequence.
81- syntax match clojureRegexpEscape " \v\\ %(\\ |[tnrfae]|c[A-Z]|0[0-3]?[0-7]{1,2}|x\x {2}|u\x {4}|[.+*?{}[\] ()])" contained
78+ syntax match clojureRegexpEscape " \v\\ %(\\ |[tnrfae]|c[A-Z]|0[0-3]?[0-7]{1,2}|x\x {2}|u\x {4}|.)" contained
8279syntax region clojureRegexpQuoted start =/ \v\< @!\\ Q/ ms =e + 1 skip =/ \v\\\\ |\\ "/ end =/ \\ E/ me =s - 1 end =/ "/ me =s - 1 contained
8380syntax region clojureRegexpQuote start =/ \v\< @!\\ Q/ skip =/ \v\\\\ |\\ "/ end =/ \\ E/ end =/ "/ me =s - 1 contains =clojureRegexpQuoted keepend contained
8481syntax cluster clojureRegexpEscapes contains =clojureRegexpEscape,clojureRegexpQuote
8582" Charactar classes
8683syntax match clojureRegexpPredefinedCharClass " \v %(\\ [dDsSwW]|\. )" contained
87- " XXX: Should we distinguish between posix, java, and unicode character
88- " classes as in the documenation?
89- syntax match clojureRegexpPosixCharClass " \v\\ [pP]\{ %(Lower|Upper|ASCII|Alpha|Digit|Alnum|Punct|Graph|Print|Blank|Cntrl|XDigit|Space|IsLatin|InGreek|Lu|IsAlphabetic|Sc|java%(LowerCase|UpperCase|Whitespace|Mirrored))\} " contained
84+ syntax match clojureRegexpPosixCharClass " \v\\ [pP]\{ %(Lower|Upper|ASCII|Alpha|Digit|Alnum|Punct|Graph|Print|Blank|Cntrl|XDigit|Space|IsLatin|InGreek|Lu|IsAlphabetic|Sc)\} " contained
85+ syntax match clojureRegexpPosixCharClass " \v\\ [pP]\{ java%(Defined|Digit|ISOControl|IdentifierIgnorable|JavaIdentifierPart|JavaIdentifierStart|Letter|LetterOrDigit|LowerCase|Mirrored|SpaceChar|TitleCase|UnicodeIdentifierPart|UnicodeIdentifierStart|UpperCase|Whitespace)\} " contained
9086syntax region clojureRegexpCharClass start =" \\\@ <!\[ " end =" \\\@ <!\] " contained contains =clojureRegexpSpecialChar,clojureRegexpPredefinedCharClass,clojureRegexpPosixCharClass
9187syntax cluster clojureRegexpCharClasses contains =clojureRegexpPredefinedCharClass,clojureRegexpPosixCharClass,clojureRegexpCharClass
9288" Boundary
0 commit comments