commit ffbd09ef6acfbfac897be19d5ae847af6e6bd03d
parent 14a7644181fb3244d548e5d3a0fa23d67580def2
Author: Christian Clason <c.clason@uni-graz.at>
Date: Sun, 26 May 2024 20:08:13 +0200
vim-patch:8607192: runtime(typescriptreact): fix highlighting nested and escaped quotes in string props (vim/vim#14852)
https://github.com/vim/vim/commit/86071925ede1030d86e764054e36ef8ab56fc666
Co-authored-by: Linda_pp <rhysd@users.noreply.github.com>
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/runtime/syntax/typescriptreact.vim b/runtime/syntax/typescriptreact.vim
@@ -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