|
2 | 2 | " Language: Vim script |
3 | 3 | " Maintainer: Hirohito Higashi <h.east.727 ATMARK gmail.com> |
4 | 4 | " Doug Kearns <dougkearns@gmail.com> |
5 | | -" Last Change: 2025 Jan 09 |
| 5 | +" Last Change: 2025 Jan 19 |
6 | 6 | " Former Maintainer: Charles E. Campbell |
7 | 7 |
|
8 | 8 | " DO NOT CHANGE DIRECTLY. |
@@ -192,13 +192,13 @@ Vim9 syn keyword vim9Boolean true false |
192 | 192 | " Numbers {{{2 |
193 | 193 | " ======= |
194 | 194 | syn case ignore |
195 | | -syn match vimNumber '\<\d\+\%(\.\d\+\%(e[+-]\=\d\+\)\=\)\=' skipwhite nextgroup=vimGlobal,vimSubst1,vimCommand,@vimComment |
196 | | -syn match vimNumber '\<0b[01]\+' skipwhite nextgroup=vimGlobal,vimSubst1,vimCommand,@vimComment |
197 | | -syn match vimNumber '\<0o\=\o\+' skipwhite nextgroup=vimGlobal,vimSubst1,vimCommand,@vimComment |
198 | | -syn match vimNumber '\<0x\x\+' skipwhite nextgroup=vimGlobal,vimSubst1,vimCommand,@vimComment |
199 | | -syn match vimNumber '\<0z\>' skipwhite nextgroup=vimGlobal,vimSubst1,vimCommand,@vimComment |
200 | | -syn match vimNumber '\<0z\%(\x\x\)\+\%(\.\%(\x\x\)\+\)*' skipwhite nextgroup=vimGlobal,vimSubst1,vimCommand,@vimComment |
201 | | -syn match vimNumber '\%(^\|\A\)\zs#\x\{6}' skipwhite nextgroup=vimGlobal,vimSubst1,vimCommand,@vimComment |
| 195 | +syn match vimNumber '\<\d\+\%(\.\d\+\%(e[+-]\=\d\+\)\=\)\=' skipwhite nextgroup=vimGlobal,vimSubst1,@vimComment |
| 196 | +syn match vimNumber '\<0b[01]\+' skipwhite nextgroup=vimGlobal,vimSubst1,@vimComment |
| 197 | +syn match vimNumber '\<0o\=\o\+' skipwhite nextgroup=vimGlobal,vimSubst1,@vimComment |
| 198 | +syn match vimNumber '\<0x\x\+' skipwhite nextgroup=vimGlobal,vimSubst1,@vimComment |
| 199 | +syn match vimNumber '\<0z\>' skipwhite nextgroup=vimGlobal,vimSubst1,@vimComment |
| 200 | +syn match vimNumber '\<0z\%(\x\x\)\+\%(\.\%(\x\x\)\+\)*' skipwhite nextgroup=vimGlobal,vimSubst1,@vimComment |
| 201 | +syn match vimNumber '\%(^\|\A\)\zs#\x\{6}' skipwhite nextgroup=vimGlobal,vimSubst1,@vimComment |
202 | 202 | syn case match |
203 | 203 |
|
204 | 204 | " All vimCommands are contained by vimIsCommand. {{{2 |
@@ -281,10 +281,12 @@ syn keyword vimAugroupKey contained aug[roup] skipwhite nextgroup=vimAugroupBan |
281 | 281 | " Operators: {{{2 |
282 | 282 | " ========= |
283 | 283 | syn cluster vimOperGroup contains=vimEnvvar,vimFunc,vimFuncVar,vimOper,vimOperParen,vimNumber,vimString,vimRegister,@vimContinue,vim9Comment,vimVar,vimBoolean,vimNull |
284 | | -syn match vimOper "\a\@<!!" skipwhite nextgroup=vimString,vimSpecFile |
285 | | -syn match vimOper "||\|&&\|[-+*/%.]" skipwhite nextgroup=vimString,vimSpecFile |
286 | | -syn match vimOper "\%#=1\(==\|!=\|>=\|<=\|=\~\|!\~\|>\|<\|=\|!\~#\)[?#]\{0,2}" skipwhite nextgroup=vimString,vimSpecFile |
287 | | -syn match vimOper "\(\<is\|\<isnot\)[?#]\{0,2}\>" skipwhite nextgroup=vimString,vimSpecFile |
| 284 | +syn match vimOper "\a\@<!!" skipwhite nextgroup=vimString,vimSpecFile |
| 285 | +syn match vimOper "||\|&&\|[-+*/%.]" skipwhite nextgroup=vimString,vimSpecFile |
| 286 | +syn match vimOper "=" skipwhite nextgroup=vimString,vimSpecFile |
| 287 | +syn match vimOper "\%#=1\%(==\|!=\|>=\|<=\|=\~\|!\~\|>\|<\)[?#]\=" skipwhite nextgroup=vimString,vimSpecFile |
| 288 | +syn match vimOper "\<is\%(not\)\=\>" skipwhite nextgroup=vimString,vimSpecFile |
| 289 | +syn match vimOper "\<is\%(not\)\=[?#]" skipwhite nextgroup=vimString,vimSpecFile |
288 | 290 | syn region vimOperParen matchgroup=vimParenSep start="(" end=")" contains=@vimOperGroup |
289 | 291 | syn region vimOperParen matchgroup=vimSep start="#\={" end="}" contains=@vimOperGroup nextgroup=vimVar,vimFuncVar |
290 | 292 | if !exists("g:vimsyn_noerror") && !exists("g:vimsyn_noopererror") |
|
0 commit comments