Skip to content

Commit ef606a1

Browse files
committed
Handle octal char escapes in strings
C-style octal literals, from \0 to \377.
1 parent 69197c5 commit ef606a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

syntax/clojure.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ syntax keyword clojureVariable *1 *2 *3 *agent* *allow-unresolved-vars* *assert*
3434
" * Must not contain any reader metacharacters except for ' and #
3535
syntax match clojureKeyword "\v<:{1,2}%([^ \n\r\t()\[\]{}";@^`~\\%/]+/)*[^ \n\r\t()\[\]{}";@^`~\\%/]+:@<!>"
3636

37-
syntax match clojureStringEscape "\\[\\btnfr"]\|\\u\x\{4\}" contained
37+
syntax match clojureStringEscape "\v\\%([\\btnfr"]|u\x{4}|[0-3]\o{2}|\o{1,2})" contained
3838

3939
syntax region clojureString start=/"/ skip=/\\"/ end=/"/ contains=clojureStringEscape
4040
syntax region clojureRegexp start=/\#"/ skip=/\\"/ end=/"/

0 commit comments

Comments
 (0)