mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
vim-patch:535b9e12d02f
runtime(typescript): Fix highlighting symbols after number literal (vim/vim#12911)
fixes vim/vim#12831
535b9e12d0
Co-authored-by: Herrington Darkholme <2883231+HerringtonDarkholme@users.noreply.github.com>
This commit is contained in:
parent
656be8a591
commit
3a876bd41b
@ -1,7 +1,7 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: TypeScript and TypeScriptReact
|
" Language: TypeScript and TypeScriptReact
|
||||||
" Maintainer: Herrington Darkholme
|
" Maintainer: Herrington Darkholme
|
||||||
" Last Change: 2023 Aug 13
|
" Last Change: 2023 Aug 24
|
||||||
" 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
|
||||||
@ -149,7 +149,7 @@ syntax match typescriptNumber /\<0[bB][01][01_]*\>/ nextgroup=@typescript
|
|||||||
syntax match typescriptNumber /\<0[oO][0-7][0-7_]*\>/ nextgroup=@typescriptSymbols skipwhite skipempty
|
syntax match typescriptNumber /\<0[oO][0-7][0-7_]*\>/ nextgroup=@typescriptSymbols skipwhite skipempty
|
||||||
syntax match typescriptNumber /\<0[xX][0-9a-fA-F][0-9a-fA-F_]*\>/ nextgroup=@typescriptSymbols skipwhite skipempty
|
syntax match typescriptNumber /\<0[xX][0-9a-fA-F][0-9a-fA-F_]*\>/ nextgroup=@typescriptSymbols skipwhite skipempty
|
||||||
syntax match typescriptNumber /\<\%(\d[0-9_]*\%(\.\d[0-9_]*\)\=\|\.\d[0-9_]*\)\%([eE][+-]\=\d[0-9_]*\)\=\>/
|
syntax match typescriptNumber /\<\%(\d[0-9_]*\%(\.\d[0-9_]*\)\=\|\.\d[0-9_]*\)\%([eE][+-]\=\d[0-9_]*\)\=\>/
|
||||||
\ nextgroup=typescriptSymbols skipwhite skipempty
|
\ nextgroup=@typescriptSymbols skipwhite skipempty
|
||||||
|
|
||||||
syntax region typescriptObjectLiteral matchgroup=typescriptBraces
|
syntax region typescriptObjectLiteral matchgroup=typescriptBraces
|
||||||
\ start=/{/ end=/}/
|
\ start=/{/ end=/}/
|
||||||
|
Loading…
Reference in New Issue
Block a user