Initial Commit
This commit is contained in:
commit
f2ff7bda11
18 changed files with 342 additions and 0 deletions
15
after/syntax/lua.vim
Executable file
15
after/syntax/lua.vim
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
|
||||
syn include @Vim $VIMRUNTIME/syntax/vim.vim
|
||||
syn region embedvim matchgroup=luaEmbedError start="vim\.api\.nvim_command(\[\[" end="\]\])" keepend contains=@Vim
|
||||
syn region embedvim matchgroup=luaEmbedError start="vim\.api\.nvim_command \[\[" end="\]\]" keepend contains=@Vim
|
||||
syn region embedvim matchgroup=luaEmbedError start="vim\.api\.nvim_exec(\[\[" end="\]\])" keepend contains=@Vim
|
||||
syn region embedvim matchgroup=luaEmbedError start="vim\.api\.nvim_exec \[\[" end="\]\]" keepend contains=@Vim
|
||||
syn region embedvim matchgroup=luaEmbedError start="vim\.cmd \[\[" end="\]\]" keepend contains=@Vim
|
||||
syn region embedvim matchgroup=luaEmbedError start="vim\.cmd(\[\[" end="\]\])" keepend contains=@Vim
|
||||
syn region embedvim matchgroup=luaEmbedError start="vim\.cmd \"" end="\"" keepend contains=@Vim
|
||||
syn region embedvim matchgroup=luaEmbedError start="vim\.cmd(\"" end="\")" keepend contains=@Vim
|
||||
syn region embedvim matchgroup=luaEmbedError start="vim\.cmd '" end="'" keepend contains=@Vim
|
||||
syn region embedvim matchgroup=luaEmbedError start="vim\.cmd('" end="')" keepend contains=@Vim
|
||||
|
||||
let b:current_syntax = 'lua'
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue