Skip to content

Commit 7bc85e4

Browse files
committed
Merge pull request pangloss#162 from davidchambers/spell-checking
string: spell-check string literals
2 parents 2cfdae8 + cb0fa68 commit 7bc85e4

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)