neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 57fc77ed29ad9005d893a9dc2f37b3ad53aec4e6
parent 54468c1c3c2e412e5e0d714101cdfbb44ae4600a
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Tue, 10 Feb 2026 07:06:07 +0800

Merge pull request #37798 from zeertzjq/vim-e92998e

vim-patch: runtime file updates
Diffstat:
Mruntime/doc/motion.txt | 6++++--
Mruntime/doc/options.txt | 8+++++++-
Mruntime/lua/vim/_meta/options.lua | 8+++++++-
Mruntime/syntax/nginx.vim | 6++----
Msrc/nvim/options.lua | 8+++++++-
5 files changed, 27 insertions(+), 9 deletions(-)

diff --git a/runtime/doc/motion.txt b/runtime/doc/motion.txt @@ -410,8 +410,10 @@ These commands move over words or WORDS. *word* A word consists of a sequence of letters, digits and underscores, or a sequence of other non-blank characters, separated with white space (spaces, -tabs, <EOL>). This can be changed with the 'iskeyword' option. An empty line -is also considered to be a word. +tabs, <EOL>). This can be changed with the 'iskeyword' option. For +characters above 255, a word ends when the Unicode character class changes +(e.g., between letters, subscripts, emojis, etc). An empty line is also +considered to be a word. *WORD* A WORD consists of a sequence of non-blank characters, separated with white space. An empty line is also considered to be a WORD. diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt @@ -3803,7 +3803,13 @@ A jump table for the options with a short description can be found at |Q_op|. "w", "*", "[i", etc. It is also used for "\k" in a |pattern|. See 'isfname' for a description of the format of this option. For '@' characters above 255 check the "word" character class (any character - that is not white space or punctuation). + that is categorized as a letter, number or emoji according to the + Unicode general category). + + Note that there is a difference between the "\k" character class and + the |word| motion. The former matches any word character, while the + latter stops at a change of the character class. + For C programs you could use "a-z,A-Z,48-57,_,.,-,>". For a help file it is set to all non-blank printable characters except "*", '"' and '|' (so that CTRL-] on a command finds the help for that diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua @@ -3718,7 +3718,13 @@ vim.go.isi = vim.go.isident --- "w", "*", "[i", etc. It is also used for "\k" in a `pattern`. See --- 'isfname' for a description of the format of this option. For '@' --- characters above 255 check the "word" character class (any character ---- that is not white space or punctuation). +--- that is categorized as a letter, number or emoji according to the +--- Unicode general category). +--- +--- Note that there is a difference between the "\k" character class and +--- the `word` motion. The former matches any word character, while the +--- latter stops at a change of the character class. +--- --- For C programs you could use "a-z,A-Z,48-57,_,.,-,>". --- For a help file it is set to all non-blank printable characters except --- "*", '"' and '|' (so that CTRL-] on a command finds the help for that diff --git a/runtime/syntax/nginx.vim b/runtime/syntax/nginx.vim @@ -1,8 +1,7 @@ " Vim syntax file " Language: nginx.conf " Maintainer: Chris Aumann <me@chr4.org> -" Last Change: Nov 25, 2023 -" 2025 Jun 08 by Vim Project: improve syntax (#17458) +" Last Change: Jan 09, 2026 if exists("b:current_syntax") finish @@ -390,7 +389,6 @@ syn keyword ngxDirective proxy_buffering syn keyword ngxDirective proxy_buffers syn keyword ngxDirective proxy_busy_buffers_size syn keyword ngxDirective proxy_cache -syn keyword ngxDirective proxy_cache_background_update syn keyword ngxDirective proxy_cache_bypass syn keyword ngxDirective proxy_cache_convert_head syn keyword ngxDirective proxy_cache_key @@ -2302,7 +2300,7 @@ let b:current_syntax = "nginx" " Enable nested LUA syntax highlighting unlet b:current_syntax syn include @LUA syntax/lua.vim -syn region ngxLua start=+^\s*\w\+_by_lua_block\s*{+ end=+}+me=s-1 contains=ngxBlock,@LUA +syn region ngxLua start=+^\s*\w\+_by_lua_block\s*\(\$\w\+\s*\)\?{+ end=+}+me=s-1 contains=ngxBlock,@LUA let b:current_syntax = "nginx" diff --git a/src/nvim/options.lua b/src/nvim/options.lua @@ -4895,7 +4895,13 @@ local options = { "w", "*", "[i", etc. It is also used for "\k" in a |pattern|. See 'isfname' for a description of the format of this option. For '@' characters above 255 check the "word" character class (any character - that is not white space or punctuation). + that is categorized as a letter, number or emoji according to the + Unicode general category). + + Note that there is a difference between the "\k" character class and + the |word| motion. The former matches any word character, while the + latter stops at a change of the character class. + For C programs you could use "a-z,A-Z,48-57,_,.,-,>". For a help file it is set to all non-blank printable characters except "*", '"' and '|' (so that CTRL-] on a command finds the help for that