aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/lua.vim
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-04-08 19:53:41 +0200
committerGitHub <noreply@github.com>2022-04-08 19:53:41 +0200
commitd3068d34cc56a4c66f10a83922d2500f6ca9e651 (patch)
treea49b622f1965da108f3b98c7b129c38cf6ec0f08 /runtime/syntax/lua.vim
parentb4ec6af12a97a922fe7cd90523e397bb89c83802 (diff)
downloadrneovim-d3068d34cc56a4c66f10a83922d2500f6ca9e651.tar.gz
rneovim-d3068d34cc56a4c66f10a83922d2500f6ca9e651.tar.bz2
rneovim-d3068d34cc56a4c66f10a83922d2500f6ca9e651.zip
vim-patch:partial:cbaff5e06ec5 (#18042)
Update runtime files https://github.com/vim/vim/commit/cbaff5e06ec525d31dc44093125c42029e01d508 omit doc updates here
Diffstat (limited to 'runtime/syntax/lua.vim')
-rw-r--r--runtime/syntax/lua.vim11
1 files changed, 10 insertions, 1 deletions
diff --git a/runtime/syntax/lua.vim b/runtime/syntax/lua.vim
index f313c14e7a..b398e2e5c6 100644
--- a/runtime/syntax/lua.vim
+++ b/runtime/syntax/lua.vim
@@ -2,7 +2,7 @@
" Language: Lua 4.0, Lua 5.0, Lua 5.1 and Lua 5.2
" Maintainer: Marcus Aurelius Farias <masserahguard-lua 'at' yahoo com>
" First Author: Carlos Augusto Teixeira Mendes <cmendes 'at' inf puc-rio br>
-" Last Change: 2012 Aug 12
+" Last Change: 2022 Mar 31
" Options: lua_version = 4 or 5
" lua_subversion = 0 (4.0, 5.0) or 1 (5.1) or 2 (5.2)
" default 5.2
@@ -319,6 +319,15 @@ elseif lua_version == 5
syn match luaFunc /\<debug\.upvalueid\>/
syn match luaFunc /\<debug\.upvaluejoin\>/
endif
+ if lua_subversion >= 3
+ "https://www.lua.org/manual/5.3/manual.html#6.5
+ syn match luaFunc /\<utf8\.char\>/
+ syn match luaFunc /\<utf8\.charpattern\>/
+ syn match luaFunc /\<utf8\.codes\>/
+ syn match luaFunc /\<utf8\.codepoint\>/
+ syn match luaFunc /\<utf8\.len\>/
+ syn match luaFunc /\<utf8\.offset\>/
+ endif
endif
" Define the default highlighting.