]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(typescriptreact): fix highlighting nested and escaped quotes in string props...
authorLinda_pp <rhysd@users.noreply.github.com>
Sun, 26 May 2024 16:22:26 +0000 (01:22 +0900)
committerGitHub <noreply@github.com>
Sun, 26 May 2024 16:22:26 +0000 (18:22 +0200)
Signed-off-by: rhysd <lin90162@yahoo.co.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/syntax/typescriptreact.vim

index 9dc9a2b79732ad558b1c80b116a43306badd763a..061ec4d81ec118cb780637d759045973fbe5a69a 100644 (file)
@@ -1,7 +1,7 @@
 " Vim syntax file
 " Language:     TypeScript with React (JSX)
 " Maintainer:   The Vim Project <https://github.com/vim/vim>
-" Last Change:  2024 May 24
+" Last Change:  2024 May 26
 " Based On:     Herrington Darkholme's yats.vim
 " Changes:      See https://github.com/HerringtonDarkholme/yats.vim
 " Credits:      See yats.vim on github
@@ -118,7 +118,8 @@ syntax match tsxEqual +=+ display contained
 
 " <tag id="sample">
 "         s~~~~~~e
-syntax region tsxString contained start=+["']+ end=+["']+ contains=tsxEntity,@Spell display
+syntax region tsxString contained start=+"+ skip=+\\"+ end=+"+ contains=tsxEntity,@Spell display
+syntax region tsxString contained start=+'+ skip=+\\'+ end=+'+ contains=tsxEntity,@Spell display
 
 " <tag key={this.props.key}>
 "          s~~~~~~~~~~~~~~e