Skip to content

Commit d086657

Browse files
Tilman Listmawww
authored andcommitted
Fix string highlighting in rc/filetype/lisp.kak
This commit updates the shared/lisp/string highlighter so that it does not recognize `"` as the start of a string if it is escaped by `#\`. Closes #3547
1 parent 1f63773 commit d086657

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rc/filetype/lisp.kak

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ provide-module lisp %{
3333

3434
add-highlighter shared/lisp regions
3535
add-highlighter shared/lisp/code default-region group
36-
add-highlighter shared/lisp/string region '"' (?<!\\)(\\\\)*" fill string
37-
add-highlighter shared/lisp/comment region ';' '$' fill comment
36+
add-highlighter shared/lisp/string region (?<!#\\)" (?<!\\)(\\\\)*" fill string
37+
add-highlighter shared/lisp/comment region ';' '$' fill comment
3838

3939
add-highlighter shared/lisp/code/ regex (#?(['`:]|,@?))?\b[a-zA-Z][\w!$%&*+./:<=>?@^_~-]* 0:variable
4040
add-highlighter shared/lisp/code/ regex \b(nil|true|false)\b 0:value

0 commit comments

Comments
 (0)