Skip to content

Commit cb0fa68

Browse files
committed
string: spell-check string literals
1 parent 2cfdae8 commit cb0fa68

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

syntax/javascript.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ syntax case match
8080
"" Syntax in the JavaScript code
8181
syntax match jsFuncCall /\k\+\%(\s*(\)\@=/
8282
syntax match jsSpecial "\v\\%(0|\\x\x\{2\}\|\\u\x\{4\}\|\c[A-Z]|.)"
83-
syntax region jsStringD start=+"+ skip=+\\\\\|\\$"+ end=+"+ contains=jsSpecial,@htmlPreproc
84-
syntax region jsStringS start=+'+ skip=+\\\\\|\\$'+ end=+'+ contains=jsSpecial,@htmlPreproc
83+
syntax region jsStringD start=+"+ skip=+\\\\\|\\$"+ end=+"+ contains=jsSpecial,@htmlPreproc,@Spell
84+
syntax region jsStringS start=+'+ skip=+\\\\\|\\$'+ end=+'+ contains=jsSpecial,@htmlPreproc,@Spell
8585
syntax region jsRegexpCharClass start=+\[+ skip=+\\.+ end=+\]+ contained
8686
syntax match jsRegexpBoundary "\v%(\<@![\^$]|\\[bB])" contained
8787
syntax match jsRegexpBackRef "\v\\[1-9][0-9]*" contained

0 commit comments

Comments
 (0)