mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	vim-patch:8607192: runtime(typescriptreact): fix highlighting nested and escaped quotes in string props (vim/vim#14852)
86071925ed
Co-authored-by: Linda_pp <rhysd@users.noreply.github.com>
			
			
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
				
			|||||||
" Vim syntax file
 | 
					" Vim syntax file
 | 
				
			||||||
" Language:     TypeScript with React (JSX)
 | 
					" Language:     TypeScript with React (JSX)
 | 
				
			||||||
" Maintainer:   The Vim Project <https://github.com/vim/vim>
 | 
					" 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
 | 
					" Based On:     Herrington Darkholme's yats.vim
 | 
				
			||||||
" Changes:      See https://github.com/HerringtonDarkholme/yats.vim
 | 
					" Changes:      See https://github.com/HerringtonDarkholme/yats.vim
 | 
				
			||||||
" Credits:      See yats.vim on github
 | 
					" Credits:      See yats.vim on github
 | 
				
			||||||
@@ -118,7 +118,8 @@ syntax match tsxEqual +=+ display contained
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
" <tag id="sample">
 | 
					" <tag id="sample">
 | 
				
			||||||
"         s~~~~~~e
 | 
					"         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}>
 | 
					" <tag key={this.props.key}>
 | 
				
			||||||
"          s~~~~~~~~~~~~~~e
 | 
					"          s~~~~~~~~~~~~~~e
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user