aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/syntax.txt
diff options
context:
space:
mode:
authorbrianhuster <phambinhanctb2004@gmail.com>2025-03-01 01:27:40 +0700
committerzeertzjq <zeertzjq@outlook.com>2025-03-02 06:46:26 +0800
commit2b0f967b7704dcc782aebc99ec79482c20b5feef (patch)
tree92a7b9d5e70a208f27334feb7b739d0b0bb9b1f5 /runtime/doc/syntax.txt
parentea4a7cc616641a0ceaad402de57023009c26cf49 (diff)
downloadrneovim-2b0f967b7704dcc782aebc99ec79482c20b5feef.tar.gz
rneovim-2b0f967b7704dcc782aebc99ec79482c20b5feef.tar.bz2
rneovim-2b0f967b7704dcc782aebc99ec79482c20b5feef.zip
vim-patch:00a00f5: runtime(lua): Update lua ftplugin and documentation
Problem: - The doc says the default `g:lua_subversion` is 2, but in fact it is 3 (see `runtime/syntax/lua.vim`) - `includeexpr` doesn't work with module in `init.lua` Solution: - Update documentation - Assign value to option `&include` - Add function `LuaInclude` and assign it to `l:&includeexpr` closes: vim/vim#16655 https://github.com/vim/vim/commit/00a00f5d3fc8dcf08e959c207a90f5902abc6a08 Co-authored-by: brianhuster <phambinhanctb2004@gmail.com> Co-authored-by: dkearns <dougkearns@gmail.com>
Diffstat (limited to 'runtime/doc/syntax.txt')
-rw-r--r--runtime/doc/syntax.txt10
1 files changed, 3 insertions, 7 deletions
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt
index 75d6d85183..3a19ee55c3 100644
--- a/runtime/doc/syntax.txt
+++ b/runtime/doc/syntax.txt
@@ -1870,13 +1870,9 @@ instead, and the name of your source file should be `*.pike`
LUA *lua.vim* *ft-lua-syntax*
-The Lua syntax file can be used for versions 4.0, 5.0, 5.1 and 5.2 (5.2 is
-the default). You can select one of these versions using the global variables
-lua_version and lua_subversion. For example, to activate Lua
-5.1 syntax highlighting, set the variables like this: >
-
- :let lua_version = 5
- :let lua_subversion = 1
+The Lua syntax file can be used for versions 4.0, 5.0+. You can select one of
+these versions using the global variables |g:lua_version| and
+|g:lua_subversion|.
MAIL *mail.vim* *ft-mail.vim*