Mercurial > ec-dotfiles
comparison vendor/vim-syntax/typescriptreact.vim @ 726:78469331407e default tip
Update syntaxes
author | nanaya <me@nanaya.net> |
---|---|
date | Mon, 19 Aug 2024 17:04:13 +0900 |
parents | 17cacf387f7c |
children |
comparison
equal
deleted
inserted
replaced
725:0a896ffe3029 | 726:78469331407e |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: TypeScript with React (JSX) | 2 " Language: TypeScript with React (JSX) |
3 " Maintainer: Bram Moolenaar | 3 " Maintainer: The Vim Project <https://github.com/vim/vim> |
4 " Last Change: 2019 Nov 30 | 4 " Last Change: 2024 May 26 |
5 " Based On: Herrington Darkholme's yats.vim | 5 " Based On: Herrington Darkholme's yats.vim |
6 " Changes: See https:github.com/HerringtonDarkholme/yats.vim | 6 " Changes: See https://github.com/HerringtonDarkholme/yats.vim |
7 " Credits: See yats.vim on github | 7 " Credits: See yats.vim on github |
8 | 8 |
9 if !exists("main_syntax") | 9 if !exists("main_syntax") |
10 if exists("b:current_syntax") | 10 if exists("b:current_syntax") |
11 finish | 11 finish |
116 syntax match tsxEqual +=+ display contained | 116 syntax match tsxEqual +=+ display contained |
117 \ nextgroup=tsxString skipwhite | 117 \ nextgroup=tsxString skipwhite |
118 | 118 |
119 " <tag id="sample"> | 119 " <tag id="sample"> |
120 " s~~~~~~e | 120 " s~~~~~~e |
121 syntax region tsxString contained start=+"+ end=+"+ contains=tsxEntity,@Spell display | 121 syntax region tsxString contained start=+"+ skip=+\\"+ end=+"+ contains=tsxEntity,@Spell display |
122 syntax region tsxString contained start=+'+ skip=+\\'+ end=+'+ contains=tsxEntity,@Spell display | |
122 | 123 |
123 " <tag key={this.props.key}> | 124 " <tag key={this.props.key}> |
124 " s~~~~~~~~~~~~~~e | 125 " s~~~~~~~~~~~~~~e |
125 syntax region tsxEscJs | 126 syntax region tsxEscJs |
126 \ contained | 127 \ contained |
127 \ contains=@typescriptValue,@tsxComment | 128 \ contains=@typescriptValue,@tsxComment,typescriptObjectSpread |
128 \ matchgroup=typescriptBraces | 129 \ matchgroup=typescriptBraces |
129 \ start=+{+ | 130 \ start=+{+ |
130 \ end=+}+ | 131 \ end=+}+ |
131 \ extend | 132 \ extend |
132 | 133 |