runtime(typescriptreact): fix highlighting nested and escaped quotes in string 
props (#14852)

Commit: 
https://github.com/vim/vim/commit/86071925ede1030d86e764054e36ef8ab56fc666
Author: Linda_pp <rh...@users.noreply.github.com>
Date:   Mon May 27 01:22:26 2024 +0900

    runtime(typescriptreact): fix highlighting nested and escaped quotes in 
string props (https://github.com/vim/vim/issues/14852)
    
    Signed-off-by: rhysd <lin90...@yahoo.co.jp>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/syntax/typescriptreact.vim 
b/runtime/syntax/typescriptreact.vim
index 9dc9a2b79..061ec4d81 100644
--- 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

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1sBGl1-008bjn-4M%40256bit.org.

Raspunde prin e-mail lui