|
3 | 3 | " Maintainer: Hirohito Higashi <h.east.727 ATMARK gmail.com> |
4 | 4 | " Doug Kearns <dougkearns@gmail.com> |
5 | 5 | " URL: https://github.com/vim-jp/syntax-vim-ex |
6 | | -" Last Change: 2024 Jul 18 |
| 6 | +" Last Change: 2024 Aug 16 |
7 | 7 | " Former Maintainer: Charles E. Campbell |
8 | 8 |
|
9 | 9 | " DO NOT CHANGE DIRECTLY. |
@@ -525,7 +525,13 @@ VimL syn keyword vimUnlet unl[et] skipwhite nextgroup=vimUnletBang,vimUnletVars |
525 | 525 | syn match vimUnletBang contained "!" skipwhite nextgroup=vimUnletVars |
526 | 526 | syn region vimUnletVars contained start="$\I\|\h" skip="\n\s*\\" end="$" end="|" contains=vimVar,vimEnvvar,vimContinue,vimString,vimNumber |
527 | 527 |
|
528 | | -VimFoldh syn region vimLetHereDoc matchgroup=vimLetHereDocStart start='=<<\s*\%(trim\s\+\%(eval\s\+\)\=\|eval\s\+\%(trim\s\+\)\=\)\=\z(\L\S*\)' matchgroup=vimLetHereDocStop end='^\s*\z1\s*$' extend |
| 528 | +" Note: This incorrectly matches end markers with leading whitespace even if |
| 529 | +" "trim" was not specified. Matching :let indent for "trim" indented |
| 530 | +" end markers would require a contained :let that cannot be restricted |
| 531 | +" to the start pattern. A common internal testing use of heredocs is to |
| 532 | +" specify code blocks where :let commonly appears in the heredoc text. |
| 533 | +VimFoldh syn region vimLetHereDoc matchgroup=vimLetHereDocStart start='=<<\s*\%(trim\s\+\)\=\z(\L\S*\)' matchgroup=vimLetHereDocStop end='^\s*\z1$' extend |
| 534 | +VimFoldh syn region vimLetHereDoc matchgroup=vimLetHereDocStart start='=<<\s*\%(trim\s\+\)\=eval\s\+\|eval\s\+\%(trim\s\+\)\=\z(\L\S*\)' matchgroup=vimLetHereDocStop end='^\s*\z1$' contains=vimStringInterpolationExpr,vimStringInterpolationBrace extend |
529 | 535 |
|
530 | 536 | Vim9 syn keyword vim9Const const skipwhite nextgroup=vim9Variable,vim9VariableList |
531 | 537 | Vim9 syn keyword vim9Final final skipwhite nextgroup=vim9Variable,vim9VariableList |
|
0 commit comments