diff options
author | Christian Clason <c.clason@uni-graz.at> | 2023-04-23 15:22:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-23 15:22:55 +0200 |
commit | e3f36377c156749bbdafc46d8a8cd017f378b4b5 (patch) | |
tree | acaaab31bc9e0bdaddc5765aa0b7d1acd11fbecf /runtime/doc/syntax.txt | |
parent | f17bb4f41102ecec7989bc4c14c626dc595e2f0b (diff) | |
download | rneovim-e3f36377c156749bbdafc46d8a8cd017f378b4b5.tar.gz rneovim-e3f36377c156749bbdafc46d8a8cd017f378b4b5.tar.bz2 rneovim-e3f36377c156749bbdafc46d8a8cd017f378b4b5.zip |
vim-patch:71badf9547e8 (#23285)
Update runtime files
https://github.com/vim/vim/commit/71badf9547e8f89571b9a095183671cbb333d528
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'runtime/doc/syntax.txt')
-rw-r--r-- | runtime/doc/syntax.txt | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index 9051375da2..00a5e1c8ad 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -2769,7 +2769,7 @@ unsetting all the other ones. If you use Python 2 or straddling code (Python 2 and 3 compatible), you can enforce the use of an older syntax file with support for Python 2 and up to Python 3.5. > - : let python_use_python2_syntax = 1 + :let python_use_python2_syntax = 1 This option will exclude all modern Python 3.6 or higher features. Note: Only existence of these options matters, not their value. @@ -3698,11 +3698,12 @@ The syntax script for zsh allows for syntax-based folding: > Vim understands three types of syntax items: 1. Keyword - It can only contain keyword characters, according to the 'iskeyword' - option. It cannot contain other syntax items. It will only match with a - complete word (there are no keyword characters before or after the match). - The keyword "if" would match in "if(a=b)", but not in "ifdef x", because - "(" is not a keyword character and "d" is. + It can only contain keyword characters, according to the characters + specified with |:syn-iskeyword| or the 'iskeyword' option. It cannot + contain other syntax items. It will only match with a complete word (there + are no keyword characters before or after the match). The keyword "if" + would match in "if(a=b)", but not in "ifdef x", because "(" is not a + keyword character and "d" is. 2. Match This is a match with a single regexp pattern. |