Update
This commit is contained in:
parent
aebef2c2e7
commit
671078ef6c
@ -112,7 +112,7 @@ If you need full functionality of any plugin, please use it directly with your p
|
||||
- [lua](https://github.com/tbastos/vim-lua) (syntax, indent)
|
||||
- [mako](https://github.com/sophacles/vim-bundle-mako) (syntax, indent, ftplugin)
|
||||
- [markdown](https://github.com/plasticboy/vim-markdown) (syntax, indent)
|
||||
- [mathematica](https://github.com/voldikss/vim-mma) (syntax, autoload, ftplugin)
|
||||
- [mathematica](https://github.com/voldikss/vim-mma) (syntax, ftplugin)
|
||||
- [mdx](https://github.com/jxnblk/vim-mdx-js) (syntax)
|
||||
- [meson](https://github.com/mesonbuild/meson) (syntax, indent, ftplugin)
|
||||
- [moonscript](https://github.com/leafo/moonscript-vim) (syntax, indent, ftplugin)
|
||||
@ -160,7 +160,7 @@ If you need full functionality of any plugin, please use it directly with your p
|
||||
- [swift](https://github.com/keith/swift.vim) (syntax, indent, ftplugin)
|
||||
- [sxhkd](https://github.com/baskerville/vim-sxhkdrc) (syntax)
|
||||
- [systemd](https://github.com/wgwoods/vim-systemd-syntax) (syntax)
|
||||
- [terraform](https://github.com/hashivim/vim-terraform) (syntax, indent, ftplugin)
|
||||
- [terraform](https://github.com/hashivim/vim-terraform) (syntax, indent, autoload, ftplugin)
|
||||
- [textile](https://github.com/timcharper/textile.vim) (syntax, ftplugin)
|
||||
- [thrift](https://github.com/solarnz/thrift.vim) (syntax)
|
||||
- [tmux](https://github.com/keith/tmux.vim) (syntax, ftplugin)
|
||||
|
@ -1,85 +0,0 @@
|
||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'terraform') != -1
|
||||
finish
|
||||
endif
|
||||
|
||||
if !exists('g:terraform_align')
|
||||
let g:terraform_align = 0
|
||||
endif
|
||||
|
||||
if !exists('g:terraform_remap_spacebar')
|
||||
let g:terraform_remap_spacebar = 0
|
||||
endif
|
||||
|
||||
if !exists('g:terraform_fold_sections')
|
||||
let g:terraform_fold_sections = 0
|
||||
endif
|
||||
|
||||
if g:terraform_align && exists(':Tabularize')
|
||||
inoremap <buffer> <silent> = =<Esc>:call <SID>terraformalign()<CR>a
|
||||
function! s:terraformalign()
|
||||
let p = '^.*=[^>]*$'
|
||||
if exists(':Tabularize') && getline('.') =~# '^.*=' && (getline(line('.')-1) =~# p || getline(line('.')+1) =~# p)
|
||||
let column = strlen(substitute(getline('.')[0:col('.')],'[^=]','','g'))
|
||||
let position = strlen(matchstr(getline('.')[0:col('.')],'.*=\s*\zs.*'))
|
||||
Tabularize/=/l1
|
||||
normal! 0
|
||||
call search(repeat('[^=]*=',column).'\s\{-\}'.repeat('.',position),'ce',line('.'))
|
||||
endif
|
||||
endfunction
|
||||
endif
|
||||
|
||||
if g:terraform_fold_sections
|
||||
function! TerraformFolds()
|
||||
let thisline = getline(v:lnum)
|
||||
if match(thisline, '^resource') >= 0
|
||||
return ">1"
|
||||
elseif match(thisline, '^provider') >= 0
|
||||
return ">1"
|
||||
elseif match(thisline, '^module') >= 0
|
||||
return ">1"
|
||||
elseif match(thisline, '^variable') >= 0
|
||||
return ">1"
|
||||
elseif match(thisline, '^output') >= 0
|
||||
return ">1"
|
||||
elseif match(thisline, '^data') >= 0
|
||||
return ">1"
|
||||
elseif match(thisline, '^terraform') >= 0
|
||||
return ">1"
|
||||
elseif match(thisline, '^locals') >= 0
|
||||
return ">1"
|
||||
else
|
||||
return "="
|
||||
endif
|
||||
endfunction
|
||||
setlocal foldmethod=expr
|
||||
setlocal foldexpr=TerraformFolds()
|
||||
setlocal foldlevel=1
|
||||
|
||||
function! TerraformFoldText()
|
||||
let foldsize = (v:foldend-v:foldstart)
|
||||
return getline(v:foldstart).' ('.foldsize.' lines)'
|
||||
endfunction
|
||||
setlocal foldtext=TerraformFoldText()
|
||||
endif
|
||||
|
||||
" Re-map the space bar to fold and unfold
|
||||
if get(g:, "terraform_remap_spacebar", 1)
|
||||
"inoremap <space> <C-O>za
|
||||
nnoremap <space> za
|
||||
onoremap <space> <C-C>za
|
||||
vnoremap <space> zf
|
||||
endif
|
||||
|
||||
" Match the identation put in place by Hashicorp and :TerraformFmt, https://github.com/hashivim/vim-terraform/issues/21
|
||||
if get(g:, "terraform_align", 1)
|
||||
setlocal tabstop=2
|
||||
setlocal softtabstop=2
|
||||
setlocal shiftwidth=2
|
||||
endif
|
||||
|
||||
" Set the commentstring
|
||||
if exists('g:terraform_commentstring')
|
||||
let &l:commentstring=g:terraform_commentstring
|
||||
else
|
||||
setlocal commentstring=#%s
|
||||
endif
|
File diff suppressed because it is too large
Load Diff
@ -18,6 +18,10 @@ function! go#config#VersionWarning() abort
|
||||
return get(g:, 'go_version_warning', 1)
|
||||
endfunction
|
||||
|
||||
function! go#config#NullModuleWarning() abort
|
||||
return get(g:, 'go_null_module_warning', 1)
|
||||
endfunction
|
||||
|
||||
function! go#config#BuildTags() abort
|
||||
return get(g:, 'go_build_tags', '')
|
||||
endfunction
|
||||
@ -118,7 +122,7 @@ function! go#config#ListAutoclose() abort
|
||||
endfunction
|
||||
|
||||
function! go#config#InfoMode() abort
|
||||
return get(g:, 'go_info_mode', 'gocode')
|
||||
return get(g:, 'go_info_mode', 'gopls')
|
||||
endfunction
|
||||
|
||||
function! go#config#GuruScope() abort
|
||||
@ -183,7 +187,7 @@ function! go#config#DefReuseBuffer() abort
|
||||
endfunction
|
||||
|
||||
function! go#config#DefMode() abort
|
||||
return get(g:, 'go_def_mode', 'guru')
|
||||
return get(g:, 'go_def_mode', 'gopls')
|
||||
endfunction
|
||||
|
||||
function! go#config#DeclsIncludes() abort
|
||||
|
@ -3,7 +3,7 @@ if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'julia') != -1
|
||||
endif
|
||||
|
||||
" This file is autogenerated from the script 'generate_latex_symbols_table.jl'
|
||||
" The symbols are based on Julia version 1.1.0-DEV.695
|
||||
" The symbols are based on Julia version 1.3.0-DEV.263
|
||||
|
||||
scriptencoding utf-8
|
||||
|
||||
@ -392,6 +392,7 @@ function! julia_latex_symbols#get_dict()
|
||||
\ '\trademark': '™',
|
||||
\ '\:tm:': '™',
|
||||
\ '\bbZ': 'ℤ',
|
||||
\ '\ohm': 'Ω',
|
||||
\ '\mho': '℧',
|
||||
\ '\frakZ': 'ℨ',
|
||||
\ '\turnediota': '℩',
|
||||
@ -498,8 +499,8 @@ function! julia_latex_symbols#get_dict()
|
||||
\ '\circlearrowright': '↻',
|
||||
\ '\leftharpoonup': '↼',
|
||||
\ '\leftharpoondown': '↽',
|
||||
\ '\upharpoonleft': '↾',
|
||||
\ '\upharpoonright': '↿',
|
||||
\ '\upharpoonright': '↾',
|
||||
\ '\upharpoonleft': '↿',
|
||||
\ '\rightharpoonup': '⇀',
|
||||
\ '\rightharpoondown': '⇁',
|
||||
\ '\downharpoonright': '⇂',
|
||||
|
25
autoload/terraform.vim
Normal file
25
autoload/terraform.vim
Normal file
@ -0,0 +1,25 @@
|
||||
if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'terraform') != -1
|
||||
finish
|
||||
endif
|
||||
|
||||
" Adapted from vim-hclfmt:
|
||||
" https://github.com/fatih/vim-hclfmt/blob/master/autoload/fmt.vim
|
||||
function! terraform#fmt()
|
||||
if !filereadable(expand('%:p'))
|
||||
return
|
||||
endif
|
||||
let l:curw = winsaveview()
|
||||
let l:tmpfile = tempname() . '.tf'
|
||||
call writefile(getline(1, '$'), l:tmpfile)
|
||||
let output = system('terraform fmt -write ' . l:tmpfile)
|
||||
if v:shell_error == 0
|
||||
try | silent undojoin | catch | endtry
|
||||
call rename(l:tmpfile, resolve(expand('%')))
|
||||
silent edit!
|
||||
let &syntax = &syntax
|
||||
else
|
||||
echo output
|
||||
call delete(l:tmpfile)
|
||||
endif
|
||||
call winrestview(l:curw)
|
||||
endfunction
|
@ -1202,9 +1202,15 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'rust') == -1
|
||||
" rust, from rust.vim in rust-lang/rust.vim
|
||||
" vint: -ProhibitAutocmdWithNoGroup
|
||||
|
||||
autocmd BufRead,BufNewFile *.rs setf rust
|
||||
autocmd BufRead,BufNewFile *.rs call s:set_rust_filetype()
|
||||
autocmd BufRead,BufNewFile Cargo.toml setf FALLBACK cfg
|
||||
|
||||
function! s:set_rust_filetype() abort
|
||||
if &filetype !=# 'rust'
|
||||
set filetype=rust
|
||||
endif
|
||||
endfunction
|
||||
|
||||
" vim: set et sw=4 sts=4 ts=8:
|
||||
augroup end
|
||||
endif
|
||||
@ -1294,10 +1300,10 @@ endif
|
||||
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'terraform') == -1
|
||||
augroup filetypedetect
|
||||
" terraform, from terraform.vim in hashivim/vim-terraform
|
||||
au BufRead,BufNewFile *.tf setlocal filetype=terraform
|
||||
au BufRead,BufNewFile *.tfvars setlocal filetype=terraform
|
||||
au BufRead,BufNewFile *.tfstate setlocal filetype=json
|
||||
au BufRead,BufNewFile *.tfstate.backup setlocal filetype=json
|
||||
autocmd BufRead,BufNewFile *.tf set filetype=terraform
|
||||
autocmd BufRead,BufNewFile *.tfvars set filetype=terraform
|
||||
autocmd BufRead,BufNewFile *.tfstate set filetype=json
|
||||
autocmd BufRead,BufNewFile *.tfstate.backup set filetype=json
|
||||
augroup end
|
||||
endif
|
||||
|
||||
|
@ -2,7 +2,7 @@ if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'kotlin') != -1
|
||||
finish
|
||||
endif
|
||||
|
||||
if exists("b:did_ftplugin") | finish | endif
|
||||
if exists('b:did_ftplugin') | finish | endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
setlocal comments=://
|
||||
|
@ -12,11 +12,14 @@ if (exists("b:did_ftplugin"))
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
|
||||
setlocal
|
||||
\ comments=:#
|
||||
\ commentstring=#\ %s
|
||||
\ iskeyword+=-
|
||||
|
||||
if get(g:, 'nix_recommended_style', 1)
|
||||
setlocal
|
||||
\ shiftwidth=2
|
||||
\ softtabstop=2
|
||||
\ expandtab
|
||||
\ iskeyword+=-
|
||||
endif
|
||||
|
@ -2,12 +2,18 @@ if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'plantuml') != -1
|
||||
finish
|
||||
endif
|
||||
|
||||
scriptencoding utf-8
|
||||
" Vim filetype plugin file
|
||||
" Language: PlantUML
|
||||
" Maintainer: Anders Thøgersen <first name at bladre dot dk>
|
||||
" License: VIM LICENSE
|
||||
|
||||
if exists('b:loaded_plantuml_plugin')
|
||||
finish
|
||||
endif
|
||||
let b:loaded_plantuml_plugin = 1
|
||||
let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
let s:cpo_save = &cpoptions
|
||||
set cpoptions&vim
|
||||
|
||||
if !exists('g:plantuml_executable_script')
|
||||
let g:plantuml_executable_script='plantuml'
|
||||
@ -21,10 +27,13 @@ if exists('loaded_matchit')
|
||||
\ ',\<rnote\>:\<endrnote\>' .
|
||||
\ ',\<hnote\>:\<endhnote\>' .
|
||||
\ ',\<title\>:\<endtitle\>' .
|
||||
\ ',\<\while\>:\<endwhile\>'
|
||||
\ ',\<\while\>:\<endwhile\>' .
|
||||
\ ',@startuml:@enduml'
|
||||
endif
|
||||
|
||||
let &l:makeprg=g:plantuml_executable_script . ' ' . fnameescape(expand('%'))
|
||||
if get(g:, 'plantuml_set_makeprg', 1)
|
||||
let &l:makeprg=g:plantuml_executable_script . ' %'
|
||||
endif
|
||||
|
||||
setlocal comments=s1:/',mb:',ex:'/,:' commentstring=/'%s'/ formatoptions-=t formatoptions+=croql
|
||||
|
||||
@ -33,5 +42,5 @@ let b:endwise_words = 'loop,group,alt,note,legend'
|
||||
let b:endwise_pattern = '^\s*\zs\<\(loop\|group\|alt\|note\ze[^:]*$\|legend\)\>.*$'
|
||||
let b:endwise_syngroups = 'plantumlKeyword'
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
let &cpoptions = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
@ -5,71 +5,154 @@ endif
|
||||
" terraform.vim - basic vim/terraform integration
|
||||
" Maintainer: HashiVim <https://github.com/hashivim>
|
||||
|
||||
set formatoptions-=t
|
||||
|
||||
if exists("g:loaded_terraform") || v:version < 700 || &cp || !executable('terraform')
|
||||
if exists('b:did_ftplugin') || v:version < 700 || &compatible
|
||||
finish
|
||||
endif
|
||||
let g:loaded_terraform = 1
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
if !exists("g:terraform_fmt_on_save") || !filereadable(expand("%:p"))
|
||||
let s:cpo_save = &cpoptions
|
||||
|
||||
setlocal formatoptions-=t
|
||||
let b:undo_ftplugin = 'setlocal formatoptions<'
|
||||
|
||||
" Include hyphens as keyword characters so that a keyword appearing as part of
|
||||
" a longer name doesn't get partially highlighted.
|
||||
setlocal iskeyword+=-
|
||||
let b:undo_ftplugin .= ' iskeyword<'
|
||||
|
||||
set cpoptions&vim
|
||||
|
||||
if !exists('g:terraform_align')
|
||||
let g:terraform_align = 0
|
||||
endif
|
||||
|
||||
if !exists('g:terraform_remap_spacebar')
|
||||
let g:terraform_remap_spacebar = 0
|
||||
endif
|
||||
|
||||
if !exists('g:terraform_fold_sections')
|
||||
let g:terraform_fold_sections = 0
|
||||
endif
|
||||
|
||||
if g:terraform_align && exists(':Tabularize')
|
||||
inoremap <buffer> <silent> = =<Esc>:call <SID>terraformalign()<CR>a
|
||||
function! s:terraformalign()
|
||||
let p = '^.*=[^>]*$'
|
||||
if exists(':Tabularize') && getline('.') =~# '^.*=' && (getline(line('.')-1) =~# p || getline(line('.')+1) =~# p)
|
||||
let column = strlen(substitute(getline('.')[0:col('.')],'[^=]','','g'))
|
||||
let position = strlen(matchstr(getline('.')[0:col('.')],'.*=\s*\zs.*'))
|
||||
Tabularize/=/l1
|
||||
normal! 0
|
||||
call search(repeat('[^=]*=',column).'\s\{-\}'.repeat('.',position),'ce',line('.'))
|
||||
endif
|
||||
endfunction
|
||||
endif
|
||||
|
||||
if g:terraform_fold_sections
|
||||
function! TerraformFolds()
|
||||
let thisline = getline(v:lnum)
|
||||
if match(thisline, '^resource') >= 0
|
||||
return '>1'
|
||||
elseif match(thisline, '^provider') >= 0
|
||||
return '>1'
|
||||
elseif match(thisline, '^module') >= 0
|
||||
return '>1'
|
||||
elseif match(thisline, '^variable') >= 0
|
||||
return '>1'
|
||||
elseif match(thisline, '^output') >= 0
|
||||
return '>1'
|
||||
elseif match(thisline, '^data') >= 0
|
||||
return '>1'
|
||||
elseif match(thisline, '^terraform') >= 0
|
||||
return '>1'
|
||||
elseif match(thisline, '^locals') >= 0
|
||||
return '>1'
|
||||
else
|
||||
return '='
|
||||
endif
|
||||
endfunction
|
||||
setlocal foldmethod=expr
|
||||
setlocal foldexpr=TerraformFolds()
|
||||
setlocal foldlevel=1
|
||||
let b:undo_ftplugin .= ' foldmethod< foldexpr< foldlevel<'
|
||||
|
||||
function! TerraformFoldText()
|
||||
let foldsize = (v:foldend-v:foldstart)
|
||||
return getline(v:foldstart).' ('.foldsize.' lines)'
|
||||
endfunction
|
||||
setlocal foldtext=TerraformFoldText()
|
||||
let b:undo_ftplugin .= ' foldtext<'
|
||||
endif
|
||||
|
||||
" Re-map the space bar to fold and unfold
|
||||
if get(g:, 'terraform_remap_spacebar', 1)
|
||||
"inoremap <space> <C-O>za
|
||||
nnoremap <space> za
|
||||
onoremap <space> <C-C>za
|
||||
vnoremap <space> zf
|
||||
endif
|
||||
|
||||
" Set the commentstring
|
||||
if exists('g:terraform_commentstring')
|
||||
let &l:commentstring=g:terraform_commentstring
|
||||
else
|
||||
setlocal commentstring=#%s
|
||||
endif
|
||||
let b:undo_ftplugin .= ' commentstring<'
|
||||
|
||||
if !exists('g:terraform_fmt_on_save')
|
||||
let g:terraform_fmt_on_save = 0
|
||||
endif
|
||||
|
||||
function! s:commands(A, L, P)
|
||||
return join([
|
||||
\ "apply",
|
||||
\ "console",
|
||||
\ "destroy",
|
||||
\ "env",
|
||||
\ "fmt",
|
||||
\ "get",
|
||||
\ "graph",
|
||||
\ "import",
|
||||
\ "init",
|
||||
\ "output",
|
||||
\ "plan",
|
||||
\ "providers",
|
||||
\ "push",
|
||||
\ "refresh",
|
||||
\ "show",
|
||||
\ "taint",
|
||||
\ "untaint",
|
||||
\ "validate",
|
||||
\ "version",
|
||||
\ "workspace",
|
||||
\ "debug",
|
||||
\ "force-unlock",
|
||||
\ "state"
|
||||
\ ], "\n")
|
||||
return [
|
||||
\ 'apply',
|
||||
\ 'console',
|
||||
\ 'destroy',
|
||||
\ 'env',
|
||||
\ 'fmt',
|
||||
\ 'get',
|
||||
\ 'graph',
|
||||
\ 'import',
|
||||
\ 'init',
|
||||
\ 'output',
|
||||
\ 'plan',
|
||||
\ 'providers',
|
||||
\ 'push',
|
||||
\ 'refresh',
|
||||
\ 'show',
|
||||
\ 'taint',
|
||||
\ 'untaint',
|
||||
\ 'validate',
|
||||
\ 'version',
|
||||
\ 'workspace',
|
||||
\ '0.12checklist',
|
||||
\ 'debug',
|
||||
\ 'force-unlock',
|
||||
\ 'state'
|
||||
\ ]
|
||||
endfunction
|
||||
|
||||
" Adapted from vim-hclfmt:
|
||||
" https://github.com/fatih/vim-hclfmt/blob/master/autoload/fmt.vim
|
||||
function! terraform#fmt()
|
||||
let l:curw = winsaveview()
|
||||
let l:tmpfile = tempname() . ".tf"
|
||||
call writefile(getline(1, "$"), l:tmpfile)
|
||||
let output = system("terraform fmt -write " . l:tmpfile)
|
||||
if v:shell_error == 0
|
||||
try | silent undojoin | catch | endtry
|
||||
call rename(l:tmpfile, resolve(expand("%")))
|
||||
silent edit!
|
||||
let &syntax = &syntax
|
||||
else
|
||||
echo output
|
||||
call delete(l:tmpfile)
|
||||
endif
|
||||
call winrestview(l:curw)
|
||||
endfunction
|
||||
let &cpoptions = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
augroup terraform
|
||||
if !executable('terraform')
|
||||
finish
|
||||
endif
|
||||
|
||||
let s:cpo_save = &cpoptions
|
||||
|
||||
command! -nargs=+ -complete=customlist,s:commands -buffer Terraform execute '!terraform '.<q-args>. ' -no-color'
|
||||
command! -nargs=0 -buffer TerraformFmt call terraform#fmt()
|
||||
let b:undo_ftplugin .= '|delcommand Terraform|delcommand TerraformFmt'
|
||||
|
||||
if get(g:, 'terraform_fmt_on_save', 1)
|
||||
augroup terraform
|
||||
autocmd!
|
||||
autocmd BufEnter *
|
||||
\ command! -nargs=+ -complete=custom,s:commands Terraform execute '!terraform '.<q-args>. ' -no-color'
|
||||
autocmd BufEnter * command! -nargs=0 TerraformFmt call terraform#fmt()
|
||||
if get(g:, "terraform_fmt_on_save", 1)
|
||||
autocmd BufWritePre *.tf call terraform#fmt()
|
||||
autocmd BufWritePre *.tfvars call terraform#fmt()
|
||||
endif
|
||||
augroup END
|
||||
augroup END
|
||||
endif
|
||||
|
||||
let &cpoptions = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
@ -52,12 +52,12 @@ if !exists('g:python_pep8_indent_searchpair_timeout')
|
||||
endif
|
||||
|
||||
let s:block_rules = {
|
||||
\ '^\s*elif\>': ['if', 'elif'],
|
||||
\ '^\s*except\>': ['try', 'except'],
|
||||
\ '^\s*finally\>': ['try', 'except', 'else']
|
||||
\ '^\s*elif\>': [['if', 'elif'], ['else']],
|
||||
\ '^\s*except\>': [['try', 'except'], []],
|
||||
\ '^\s*finally\>': [['try', 'except', 'else'], []]
|
||||
\ }
|
||||
let s:block_rules_multiple = {
|
||||
\ '^\s*else\>': ['if', 'elif', 'for', 'try', 'except'],
|
||||
\ '^\s*else\>': [['if', 'elif', 'for', 'try', 'except'], []]
|
||||
\ }
|
||||
" Pairs to look for when searching for opening parenthesis.
|
||||
" The value is the maximum offset in lines.
|
||||
@ -73,13 +73,15 @@ let s:stop_statement = '^\s*\(break\|continue\|raise\|return\|pass\)\>'
|
||||
let s:skip_after_opening_paren = 'synIDattr(synID(line("."), col("."), 0), "name") ' .
|
||||
\ '=~? "\\vcomment|jedi\\S"'
|
||||
|
||||
let s:special_chars_syn_pattern = "\\vstring|comment|^pythonbytes%(contents)=$|pythonTodo|jedi\\S"
|
||||
|
||||
if !get(g:, 'python_pep8_indent_skip_concealed', 0) || !has('conceal')
|
||||
" Skip strings and comments. Return 1 for chars to skip.
|
||||
" jedi* refers to syntax definitions from jedi-vim for call signatures, which
|
||||
" are inserted temporarily into the buffer.
|
||||
function! s:_skip_special_chars(line, col)
|
||||
return synIDattr(synID(a:line, a:col, 0), 'name')
|
||||
\ =~? "\\vstring|comment|^pythonbytes%(contents)=$|jedi\\S"
|
||||
\ =~? s:special_chars_syn_pattern
|
||||
endfunction
|
||||
else
|
||||
" Also ignore anything concealed.
|
||||
@ -94,7 +96,7 @@ else
|
||||
|
||||
function! s:_skip_special_chars(line, col)
|
||||
return synIDattr(synID(a:line, a:col, 0), 'name')
|
||||
\ =~? "\\vstring|comment|^pythonbytes%(contents)=$|jedi\\S"
|
||||
\ =~? s:special_chars_syn_pattern
|
||||
\ || s:is_concealed(a:line, a:col)
|
||||
endfunction
|
||||
endif
|
||||
@ -152,15 +154,23 @@ function! s:find_start_of_multiline_statement(lnum)
|
||||
endfunction
|
||||
|
||||
" Find possible indent(s) of the block starter that matches the current line.
|
||||
function! s:find_start_of_block(lnum, types, multiple)
|
||||
function! s:find_start_of_block(lnum, types, skip, multiple) abort
|
||||
let r = []
|
||||
let re = '\V\^\s\*\('.join(a:types, '\|').'\)\>'
|
||||
if !empty(a:skip)
|
||||
let re_skip = '\V\^\s\*\('.join(a:skip, '\|').'\)\>'
|
||||
else
|
||||
let re_skip = ''
|
||||
endif
|
||||
let lnum = a:lnum
|
||||
let last_indent = indent(lnum) + 1
|
||||
while lnum > 0 && last_indent > 0
|
||||
let indent = indent(lnum)
|
||||
if indent < last_indent
|
||||
if getline(lnum) =~# re
|
||||
let line = getline(lnum)
|
||||
if !empty(re_skip) && line =~# re_skip
|
||||
let last_indent = indent
|
||||
elseif line =~# re
|
||||
if !a:multiple
|
||||
return [indent]
|
||||
endif
|
||||
@ -217,6 +227,11 @@ function! s:indent_like_opening_paren(lnum)
|
||||
let res = base
|
||||
else
|
||||
let res = base + s:sw()
|
||||
|
||||
" Special case for parenthesis.
|
||||
if text[paren_col-1] ==# '(' && getline(a:lnum) !~# '\v\)\s*:?\s*$'
|
||||
return res
|
||||
endif
|
||||
endif
|
||||
else
|
||||
" Indent to match position of opening paren.
|
||||
@ -241,14 +256,16 @@ function! s:indent_like_block(lnum)
|
||||
let text = getline(a:lnum)
|
||||
for [multiple, block_rules] in [
|
||||
\ [0, s:block_rules],
|
||||
\ [1, s:block_rules_multiple]]
|
||||
for [line_re, blocks] in items(block_rules)
|
||||
\ [1, s:block_rules_multiple],
|
||||
\ ]
|
||||
for [line_re, blocks_ignore] in items(block_rules)
|
||||
if text !~# line_re
|
||||
continue
|
||||
endif
|
||||
|
||||
let indents = s:find_start_of_block(a:lnum - 1, blocks, multiple)
|
||||
if !len(indents)
|
||||
let [blocks, skip] = blocks_ignore
|
||||
let indents = s:find_start_of_block(a:lnum - 1, blocks, skip, multiple)
|
||||
if empty(indents)
|
||||
return -1
|
||||
endif
|
||||
if len(indents) == 1
|
||||
|
@ -5,9 +5,9 @@ endif
|
||||
" Vim indent file
|
||||
" Language: Kotlin
|
||||
" Maintainer: Alexander Udalov
|
||||
" Latest Revision: 15 July 2017
|
||||
" Latest Revision: 26 May 2019
|
||||
|
||||
if exists("b:did_indent")
|
||||
if exists('b:did_indent')
|
||||
finish
|
||||
endif
|
||||
let b:did_indent = 1
|
||||
@ -45,24 +45,14 @@ function! GetKotlinIndent()
|
||||
|
||||
let prev_open_paren = prev =~ '^.*(\s*$'
|
||||
let cur_close_paren = cur =~ '^\s*).*$'
|
||||
|
||||
if prev_open_paren && !cur_close_paren
|
||||
return prev_indent + 2 * &shiftwidth
|
||||
endif
|
||||
|
||||
if cur_close_paren && !prev_open_paren
|
||||
return prev_indent - 2 * &shiftwidth
|
||||
endif
|
||||
|
||||
|
||||
let prev_open_brace = prev =~ '^.*\({\|->\)\s*$'
|
||||
let cur_close_brace = cur =~ '^\s*}.*$'
|
||||
|
||||
if prev_open_brace && !cur_close_brace
|
||||
if prev_open_paren && !cur_close_paren || prev_open_brace && !cur_close_brace
|
||||
return prev_indent + &shiftwidth
|
||||
endif
|
||||
|
||||
if cur_close_brace && !prev_open_brace
|
||||
if cur_close_paren && !prev_open_paren || cur_close_brace && !prev_open_brace
|
||||
return prev_indent - &shiftwidth
|
||||
endif
|
||||
|
||||
|
@ -174,66 +174,101 @@ endfun
|
||||
" [-- <ELEMENT ? - - ...> --]
|
||||
call <SID>HtmlIndentPush('a')
|
||||
call <SID>HtmlIndentPush('abbr')
|
||||
call <SID>HtmlIndentPush('acronym')
|
||||
call <SID>HtmlIndentPush('address')
|
||||
call <SID>HtmlIndentPush('applet')
|
||||
call <SID>HtmlIndentPush('article')
|
||||
call <SID>HtmlIndentPush('aside')
|
||||
call <SID>HtmlIndentPush('audio')
|
||||
call <SID>HtmlIndentPush('b')
|
||||
call <SID>HtmlIndentPush('bdi')
|
||||
call <SID>HtmlIndentPush('bdo')
|
||||
call <SID>HtmlIndentPush('big')
|
||||
call <SID>HtmlIndentPush('blockquote')
|
||||
call <SID>HtmlIndentPush('button')
|
||||
call <SID>HtmlIndentPush('canvas')
|
||||
call <SID>HtmlIndentPush('caption')
|
||||
call <SID>HtmlIndentPush('center')
|
||||
call <SID>HtmlIndentPush('cite')
|
||||
call <SID>HtmlIndentPush('code')
|
||||
call <SID>HtmlIndentPush('colgroup')
|
||||
call <SID>HtmlIndentPush('content')
|
||||
call <SID>HtmlIndentPush('data')
|
||||
call <SID>HtmlIndentPush('datalist')
|
||||
call <SID>HtmlIndentPush('del')
|
||||
call <SID>HtmlIndentPush('details')
|
||||
call <SID>HtmlIndentPush('dfn')
|
||||
call <SID>HtmlIndentPush('dialog')
|
||||
call <SID>HtmlIndentPush('dir')
|
||||
call <SID>HtmlIndentPush('div')
|
||||
call <SID>HtmlIndentPush('dl')
|
||||
call <SID>HtmlIndentPush('element')
|
||||
call <SID>HtmlIndentPush('em')
|
||||
call <SID>HtmlIndentPush('fieldset')
|
||||
call <SID>HtmlIndentPush('font')
|
||||
call <SID>HtmlIndentPush('figcaption')
|
||||
call <SID>HtmlIndentPush('figure')
|
||||
call <SID>HtmlIndentPush('footer')
|
||||
call <SID>HtmlIndentPush('form')
|
||||
call <SID>HtmlIndentPush('frameset')
|
||||
call <SID>HtmlIndentPush('h1')
|
||||
call <SID>HtmlIndentPush('h2')
|
||||
call <SID>HtmlIndentPush('h3')
|
||||
call <SID>HtmlIndentPush('h4')
|
||||
call <SID>HtmlIndentPush('h5')
|
||||
call <SID>HtmlIndentPush('h6')
|
||||
call <SID>HtmlIndentPush('header')
|
||||
call <SID>HtmlIndentPush('hgroup')
|
||||
call <SID>HtmlIndentPush('i')
|
||||
call <SID>HtmlIndentPush('iframe')
|
||||
call <SID>HtmlIndentPush('ins')
|
||||
call <SID>HtmlIndentPush('kbd')
|
||||
call <SID>HtmlIndentPush('label')
|
||||
call <SID>HtmlIndentPush('legend')
|
||||
call <SID>HtmlIndentPush('li')
|
||||
call <SID>HtmlIndentPush('main')
|
||||
call <SID>HtmlIndentPush('map')
|
||||
call <SID>HtmlIndentPush('mark')
|
||||
call <SID>HtmlIndentPush('MediaStream')
|
||||
call <SID>HtmlIndentPush('menu')
|
||||
call <SID>HtmlIndentPush('noframes')
|
||||
call <SID>HtmlIndentPush('menuitem')
|
||||
call <SID>HtmlIndentPush('meter')
|
||||
call <SID>HtmlIndentPush('nav')
|
||||
call <SID>HtmlIndentPush('noembed')
|
||||
call <SID>HtmlIndentPush('noscript')
|
||||
call <SID>HtmlIndentPush('object')
|
||||
call <SID>HtmlIndentPush('ol')
|
||||
call <SID>HtmlIndentPush('optgroup')
|
||||
call <SID>HtmlIndentPush('option')
|
||||
call <SID>HtmlIndentPush('output')
|
||||
call <SID>HtmlIndentPush('picture')
|
||||
call <SID>HtmlIndentPush('pre')
|
||||
call <SID>HtmlIndentPush('progress')
|
||||
call <SID>HtmlIndentPush('q')
|
||||
call <SID>HtmlIndentPush('rb')
|
||||
call <SID>HtmlIndentPush('rp')
|
||||
call <SID>HtmlIndentPush('rt')
|
||||
call <SID>HtmlIndentPush('rtc')
|
||||
call <SID>HtmlIndentPush('ruby')
|
||||
call <SID>HtmlIndentPush('s')
|
||||
call <SID>HtmlIndentPush('samp')
|
||||
call <SID>HtmlIndentPush('script')
|
||||
call <SID>HtmlIndentPush('section')
|
||||
call <SID>HtmlIndentPush('select')
|
||||
call <SID>HtmlIndentPush('shadow')
|
||||
call <SID>HtmlIndentPush('slot')
|
||||
call <SID>HtmlIndentPush('small')
|
||||
call <SID>HtmlIndentPush('span')
|
||||
call <SID>HtmlIndentPush('strong')
|
||||
call <SID>HtmlIndentPush('style')
|
||||
call <SID>HtmlIndentPush('sub')
|
||||
call <SID>HtmlIndentPush('summary')
|
||||
call <SID>HtmlIndentPush('sup')
|
||||
call <SID>HtmlIndentPush('table')
|
||||
call <SID>HtmlIndentPush('template')
|
||||
call <SID>HtmlIndentPush('textarea')
|
||||
call <SID>HtmlIndentPush('time')
|
||||
call <SID>HtmlIndentPush('title')
|
||||
call <SID>HtmlIndentPush('tt')
|
||||
call <SID>HtmlIndentPush('u')
|
||||
call <SID>HtmlIndentPush('ul')
|
||||
call <SID>HtmlIndentPush('var')
|
||||
call <SID>HtmlIndentPush('video')
|
||||
|
||||
" For some reason the default HTML indentation script doesn't consider these
|
||||
" elements to be worthy of indentation.
|
||||
@ -260,6 +295,44 @@ if !exists('g:html_indent_strict_table')
|
||||
call <SID>HtmlIndentPush('thead')
|
||||
endif
|
||||
|
||||
" [-- <OBSOLETE ELEMENTS ? - - ...> --]
|
||||
call <SID>HtmlIndentPush('abbr')
|
||||
call <SID>HtmlIndentPush('acronym')
|
||||
call <SID>HtmlIndentPush('applet')
|
||||
call <SID>HtmlIndentPush('audio')
|
||||
call <SID>HtmlIndentPush('basefont')
|
||||
call <SID>HtmlIndentPush('bgsound')
|
||||
call <SID>HtmlIndentPush('big')
|
||||
call <SID>HtmlIndentPush('blink')
|
||||
call <SID>HtmlIndentPush('center')
|
||||
call <SID>HtmlIndentPush('command')
|
||||
call <SID>HtmlIndentPush('content')
|
||||
call <SID>HtmlIndentPush('dir')
|
||||
call <SID>HtmlIndentPush('element')
|
||||
call <SID>HtmlIndentPush('embed')
|
||||
call <SID>HtmlIndentPush('font')
|
||||
call <SID>HtmlIndentPush('frame')
|
||||
call <SID>HtmlIndentPush('frameset')
|
||||
call <SID>HtmlIndentPush('image')
|
||||
call <SID>HtmlIndentPush('img')
|
||||
call <SID>HtmlIndentPush('isindex')
|
||||
call <SID>HtmlIndentPush('keygen')
|
||||
call <SID>HtmlIndentPush('listing')
|
||||
call <SID>HtmlIndentPush('marquee')
|
||||
call <SID>HtmlIndentPush('menuitem')
|
||||
call <SID>HtmlIndentPush('multicol')
|
||||
call <SID>HtmlIndentPush('nextid')
|
||||
call <SID>HtmlIndentPush('nobr')
|
||||
call <SID>HtmlIndentPush('noembed')
|
||||
call <SID>HtmlIndentPush('noframes')
|
||||
call <SID>HtmlIndentPush('object')
|
||||
call <SID>HtmlIndentPush('plaintext')
|
||||
call <SID>HtmlIndentPush('shadow')
|
||||
call <SID>HtmlIndentPush('spacer')
|
||||
call <SID>HtmlIndentPush('strike')
|
||||
call <SID>HtmlIndentPush('tt')
|
||||
call <SID>HtmlIndentPush('xmp')
|
||||
|
||||
" [-- <Mako Elements> --]
|
||||
call <SID>MakoIndentPush('%def')
|
||||
call <SID>MakoIndentPush('%block')
|
||||
|
@ -2,6 +2,12 @@ if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'plantuml') != -1
|
||||
finish
|
||||
endif
|
||||
|
||||
scriptencoding utf-8
|
||||
" Vim indent file
|
||||
" Language: PlantUML
|
||||
" Maintainer: Anders Thøgersen <first name at bladre dot dk>
|
||||
" License: VIM LICENSE
|
||||
|
||||
if exists('b:did_indent')
|
||||
finish
|
||||
endif
|
||||
@ -15,14 +21,6 @@ if exists('*GetPlantUMLIndent')
|
||||
finish
|
||||
endif
|
||||
|
||||
let s:incIndent =
|
||||
\ '^\s*\%(loop\|alt\|opt\|group\|critical\|else\|legend\|box\|if\|while\)\>\|' .
|
||||
\ '^\s*ref\>[^:]*$\|' .
|
||||
\ '^\s*[hr]\?note\>\%(\%("[^"]*" \<as\>\)\@![^:]\)*$\|' .
|
||||
\ '^\s*title\s*$\|' .
|
||||
\ '^\s*skinparam\>.*{\s*$\|' .
|
||||
\ '^\s*\%(state\|class\|partition\|rectangle\|enum\|interface\|namespace\|object\)\>.*{'
|
||||
|
||||
let s:decIndent = '^\s*\%(end\|else\|}\)'
|
||||
|
||||
function! GetPlantUMLIndent(...) abort
|
||||
@ -38,6 +36,8 @@ function! GetPlantUMLIndent(...) abort
|
||||
let pline = getline(pnum)
|
||||
let cline = getline(clnum)
|
||||
|
||||
let s:incIndent = s:getIncIndent()
|
||||
|
||||
if cline =~ s:decIndent
|
||||
if pline =~ s:incIndent
|
||||
return pindent
|
||||
@ -57,3 +57,33 @@ function! s:insidePlantUMLTags(lnum) abort
|
||||
call cursor(a:lnum, 1)
|
||||
return search('@startuml', 'Wbn') && search('@enduml', 'Wn')
|
||||
endfunction
|
||||
|
||||
function! s:listSyntax(syntaxKeyword) abort
|
||||
" Get a list of words assigned to a syntax keyword
|
||||
" The 'syntax list <syntax keyword>' command returns
|
||||
" a string with the keyword itself, followed by xxx,
|
||||
" on which we can split to extract the keywords string.
|
||||
" This string must then be split on whitespace
|
||||
let syntaxWords = split(
|
||||
\ execute('syntax list ' . a:syntaxKeyword),
|
||||
\ a:syntaxKeyword . ' xxx ')[-1]
|
||||
return split(syntaxWords)
|
||||
endfunction
|
||||
|
||||
function! s:typeKeywordIncPattern() abort
|
||||
" Extract keywords for plantumlTypeKeyword, returning the inc pattern
|
||||
let syntaxWords = join(s:listSyntax('plantumlTypeKeyword'), '\\\|')
|
||||
return '^\s*\%(' . syntaxWords . '\)\>.*{'
|
||||
endfunction
|
||||
|
||||
function! s:getIncIndent() abort
|
||||
" Function to determine the s:incIndent pattern
|
||||
return
|
||||
\ '^\s*\%(class\|object\|interface\|partition\|rectangle\|enum\|namespace\)\>.*{\s*$\|' .
|
||||
\ '^\s*\%(loop\|alt\|opt\|group\|critical\|else\|legend\|box\|if\|while\|fork\|split\)\>\|' .
|
||||
\ '^\s*ref\>[^:]*$\|' .
|
||||
\ '^\s*[hr]\?note\>\%(\%("[^"]*" \<as\>\)\@![^:]\)*$\|' .
|
||||
\ '^\s*title\s*$\|' .
|
||||
\ '^\s*skinparam\>.*{\s*$\|' .
|
||||
\ s:typeKeywordIncPattern()
|
||||
endfunction
|
||||
|
@ -52,12 +52,12 @@ if !exists('g:python_pep8_indent_searchpair_timeout')
|
||||
endif
|
||||
|
||||
let s:block_rules = {
|
||||
\ '^\s*elif\>': ['if', 'elif'],
|
||||
\ '^\s*except\>': ['try', 'except'],
|
||||
\ '^\s*finally\>': ['try', 'except', 'else']
|
||||
\ '^\s*elif\>': [['if', 'elif'], ['else']],
|
||||
\ '^\s*except\>': [['try', 'except'], []],
|
||||
\ '^\s*finally\>': [['try', 'except', 'else'], []]
|
||||
\ }
|
||||
let s:block_rules_multiple = {
|
||||
\ '^\s*else\>': ['if', 'elif', 'for', 'try', 'except'],
|
||||
\ '^\s*else\>': [['if', 'elif', 'for', 'try', 'except'], []]
|
||||
\ }
|
||||
" Pairs to look for when searching for opening parenthesis.
|
||||
" The value is the maximum offset in lines.
|
||||
@ -73,13 +73,15 @@ let s:stop_statement = '^\s*\(break\|continue\|raise\|return\|pass\)\>'
|
||||
let s:skip_after_opening_paren = 'synIDattr(synID(line("."), col("."), 0), "name") ' .
|
||||
\ '=~? "\\vcomment|jedi\\S"'
|
||||
|
||||
let s:special_chars_syn_pattern = "\\vstring|comment|^pythonbytes%(contents)=$|pythonTodo|jedi\\S"
|
||||
|
||||
if !get(g:, 'python_pep8_indent_skip_concealed', 0) || !has('conceal')
|
||||
" Skip strings and comments. Return 1 for chars to skip.
|
||||
" jedi* refers to syntax definitions from jedi-vim for call signatures, which
|
||||
" are inserted temporarily into the buffer.
|
||||
function! s:_skip_special_chars(line, col)
|
||||
return synIDattr(synID(a:line, a:col, 0), 'name')
|
||||
\ =~? "\\vstring|comment|^pythonbytes%(contents)=$|jedi\\S"
|
||||
\ =~? s:special_chars_syn_pattern
|
||||
endfunction
|
||||
else
|
||||
" Also ignore anything concealed.
|
||||
@ -94,7 +96,7 @@ else
|
||||
|
||||
function! s:_skip_special_chars(line, col)
|
||||
return synIDattr(synID(a:line, a:col, 0), 'name')
|
||||
\ =~? "\\vstring|comment|^pythonbytes%(contents)=$|jedi\\S"
|
||||
\ =~? s:special_chars_syn_pattern
|
||||
\ || s:is_concealed(a:line, a:col)
|
||||
endfunction
|
||||
endif
|
||||
@ -152,15 +154,23 @@ function! s:find_start_of_multiline_statement(lnum)
|
||||
endfunction
|
||||
|
||||
" Find possible indent(s) of the block starter that matches the current line.
|
||||
function! s:find_start_of_block(lnum, types, multiple)
|
||||
function! s:find_start_of_block(lnum, types, skip, multiple) abort
|
||||
let r = []
|
||||
let re = '\V\^\s\*\('.join(a:types, '\|').'\)\>'
|
||||
if !empty(a:skip)
|
||||
let re_skip = '\V\^\s\*\('.join(a:skip, '\|').'\)\>'
|
||||
else
|
||||
let re_skip = ''
|
||||
endif
|
||||
let lnum = a:lnum
|
||||
let last_indent = indent(lnum) + 1
|
||||
while lnum > 0 && last_indent > 0
|
||||
let indent = indent(lnum)
|
||||
if indent < last_indent
|
||||
if getline(lnum) =~# re
|
||||
let line = getline(lnum)
|
||||
if !empty(re_skip) && line =~# re_skip
|
||||
let last_indent = indent
|
||||
elseif line =~# re
|
||||
if !a:multiple
|
||||
return [indent]
|
||||
endif
|
||||
@ -217,6 +227,11 @@ function! s:indent_like_opening_paren(lnum)
|
||||
let res = base
|
||||
else
|
||||
let res = base + s:sw()
|
||||
|
||||
" Special case for parenthesis.
|
||||
if text[paren_col-1] ==# '(' && getline(a:lnum) !~# '\v\)\s*:?\s*$'
|
||||
return res
|
||||
endif
|
||||
endif
|
||||
else
|
||||
" Indent to match position of opening paren.
|
||||
@ -241,14 +256,16 @@ function! s:indent_like_block(lnum)
|
||||
let text = getline(a:lnum)
|
||||
for [multiple, block_rules] in [
|
||||
\ [0, s:block_rules],
|
||||
\ [1, s:block_rules_multiple]]
|
||||
for [line_re, blocks] in items(block_rules)
|
||||
\ [1, s:block_rules_multiple],
|
||||
\ ]
|
||||
for [line_re, blocks_ignore] in items(block_rules)
|
||||
if text !~# line_re
|
||||
continue
|
||||
endif
|
||||
|
||||
let indents = s:find_start_of_block(a:lnum - 1, blocks, multiple)
|
||||
if !len(indents)
|
||||
let [blocks, skip] = blocks_ignore
|
||||
let indents = s:find_start_of_block(a:lnum - 1, blocks, skip, multiple)
|
||||
if empty(indents)
|
||||
return -1
|
||||
endif
|
||||
if len(indents) == 1
|
||||
|
@ -3,20 +3,31 @@ if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'terraform') != -
|
||||
endif
|
||||
|
||||
" Only load this file if no other indent file was loaded
|
||||
if exists("b:did_indent")
|
||||
if exists('b:did_indent')
|
||||
finish
|
||||
endif
|
||||
let b:did_indent = 1
|
||||
|
||||
let s:cpo_save = &cpoptions
|
||||
set cpoptions&vim
|
||||
|
||||
setlocal nolisp
|
||||
setlocal autoindent sw=2 ts=2
|
||||
setlocal autoindent shiftwidth=2 tabstop=2 softtabstop=2
|
||||
setlocal indentexpr=TerraformIndent(v:lnum)
|
||||
setlocal indentkeys+=<:>,0=},0=)
|
||||
let b:undo_indent = 'setlocal lisp< autoindent< shiftwidth< tabstop< softtabstop<'
|
||||
\ . ' indentexpr< indentkeys<'
|
||||
|
||||
if exists("*TerraformIndent")
|
||||
let &cpoptions = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
if exists('*TerraformIndent')
|
||||
finish
|
||||
endif
|
||||
|
||||
let s:cpo_save = &cpoptions
|
||||
set cpoptions&vim
|
||||
|
||||
function! TerraformIndent(lnum)
|
||||
" Beginning of the file should have no indent
|
||||
if a:lnum == 0
|
||||
@ -32,8 +43,8 @@ function! TerraformIndent(lnum)
|
||||
let thisindent = previndent
|
||||
|
||||
" Config block starting with [ { ( should increase the indent level
|
||||
if prevline =~ '[\[{\(]\s*$'
|
||||
let thisindent += &sw
|
||||
if prevline =~# '[\[{\(]\s*$'
|
||||
let thisindent += &shiftwidth
|
||||
endif
|
||||
|
||||
" Current line without comments should continue the indent level
|
||||
@ -41,9 +52,12 @@ function! TerraformIndent(lnum)
|
||||
|
||||
" Config block ending with ) } ] should get the indentation
|
||||
" level from the initial config block
|
||||
if thisline =~ '^\s*[\)}\]]'
|
||||
let thisindent -= &sw
|
||||
if thisline =~# '^\s*[\)}\]]'
|
||||
let thisindent -= &shiftwidth
|
||||
endif
|
||||
|
||||
return thisindent
|
||||
endfunction
|
||||
|
||||
let &cpoptions = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
@ -19,7 +19,7 @@ endif
|
||||
syn keyword dockerfileKeywords FROM AS MAINTAINER RUN CMD COPY
|
||||
syn keyword dockerfileKeywords EXPOSE ADD ENTRYPOINT
|
||||
syn keyword dockerfileKeywords VOLUME USER WORKDIR ONBUILD
|
||||
syn keyword dockerfileKeywords LABEL ARG HEALTHCHECK SHELL
|
||||
syn keyword dockerfileKeywords LABEL ARG HEALTHCHECK SHELL STOPSIGNAL
|
||||
|
||||
" Bash statements
|
||||
setlocal iskeyword+=-
|
||||
|
@ -30,9 +30,13 @@ syn keyword carpSyntax add-cflag add-lib project load reload let-do ignore
|
||||
syn keyword carpSyntax fmt mac-only linux-only windows-only use-all when
|
||||
syn keyword carpSyntax unless defn-do comment forever-do case and* or*
|
||||
syn keyword carpSyntax str* println* break doc sig hidden private
|
||||
syn keyword carpSyntax while-do const-assert save-docs defproject
|
||||
syn keyword carpSyntax relative-include not-on-windows load-and-use
|
||||
syn keyword carpSyntax deftest
|
||||
syn match carpSyntax "\vc(a|d){1,4}r"
|
||||
|
||||
syn keyword carpFunc Int Float Double Bool String Char Array Fn Ref Long λ
|
||||
syn keyword carpFunc Maybe Map Result Set Pair
|
||||
syn keyword carpFunc Pattern
|
||||
syn keyword carpFunc not or and + - * / = /= >= <= > < inc dec
|
||||
syn keyword carpFunc println print get-line from-string mod random
|
||||
@ -45,6 +49,7 @@ syn keyword carpFunc bit-shift-right bit-and bit-or bit-xor bit-not safe-add
|
||||
syn keyword carpFunc safe-sub safe-mul even? odd? cmp allocate repeat-indexed
|
||||
syn keyword carpFunc sanitize-addresses memory-balance reset-memory-balance!
|
||||
syn keyword carpFunc log-memory-balance! memory-logged assert-balanced trace
|
||||
syn keyword carpFunc assert
|
||||
syn keyword carpFunc pi e swap! update! char-at tail head split-by words lines
|
||||
syn keyword carpFunc pad-left pad-right count-char empty? random-sized substring
|
||||
syn keyword carpFunc prefix-string suffix-string starts-with? ends-with?
|
||||
@ -54,7 +59,24 @@ syn keyword carpFunc from-float tan asin atan cosh sinh tanh exp frexp ldexp
|
||||
syn keyword carpFunc log log10 modf pow ceil clamp approx refstr foreach
|
||||
syn keyword carpFunc => ==> repeat nth replicate range raw aset aset!
|
||||
syn keyword carpFunc push-back pop-back sort index-of element-count
|
||||
|
||||
syn keyword carpFunc apply unsafe-from from just? nothing? ptr from-ptr
|
||||
syn keyword carpFunc map and-then unwrap-or-zero or-else unwrap-or-else
|
||||
syn keyword carpFunc unsafe-from-success from-success unsafe-from-error
|
||||
syn keyword carpFunc from-error to-maybe success? error? to-result
|
||||
syn keyword carpFunc create create-with-len put put! get-with-default get
|
||||
syn keyword carpFunc get-maybe update update-with-default contains? remove
|
||||
syn keyword carpFunc all? for-each endo-map kv-reduce vals keys from-array
|
||||
syn keyword carpFunc to-array subset? union difference intersection
|
||||
syn keyword carpFunc init-from-refs
|
||||
syn keyword carpFunc car cdr caar cadr cdar cddr caaar caadr cadar cdaar caddr
|
||||
syn keyword carpFunc cdadr cddar cdddr caaaar caaadr caaddr cadaar cadadr caddar
|
||||
syn keyword carpFunc cadddr cdaaar cdaadr cdadar cdaddr cddaar cddadr cdddar
|
||||
syn keyword carpFunc cddddr
|
||||
syn keyword carpFunc private? hidden?
|
||||
syn keyword carpFunc print-sig print-doc
|
||||
syn keyword carpFunc assert-op assert-equal assert-not-equal assert-true
|
||||
syn keyword carpFunc assert-false assert-exit print-test-results with-test
|
||||
syn keyword carpFunc dir-from-path file-from-path
|
||||
|
||||
syn match carpSymbol ,\k+, contained
|
||||
syn match carpTodo /\v<(FIXME|NOTE|TODO|OPTIMIZE)/ containedin=carpComment,carpString
|
||||
|
@ -4,14 +4,14 @@ endif
|
||||
|
||||
" Vim syntax file
|
||||
" Program: CMake - Cross-Platform Makefile Generator
|
||||
" Version: cmake version 3.14.20190402-g56ae2
|
||||
" Version: cmake version 3.14.20190529-g067a4f
|
||||
" Language: CMake
|
||||
" Author: Andy Cedilnik <andy.cedilnik@kitware.com>,
|
||||
" Nicholas Hutchinson <nshutchinson@gmail.com>,
|
||||
" Patrick Boettcher <patrick.boettcher@posteo.de>
|
||||
" Maintainer: Dimitri Merejkowsky <d.merej@gmail.com>
|
||||
" Former Maintainer: Karthik Krishnan <karthik.krishnan@kitware.com>
|
||||
" Last Change: 2019 Apr 15
|
||||
" Last Change: 2019 May 29
|
||||
"
|
||||
" Licence: The CMake license applies to this file. See
|
||||
" https://cmake.org/licensing
|
||||
@ -39,12 +39,13 @@ syn region cmakeVariableValue start="${" end="}" contained oneline contains=cmak
|
||||
|
||||
syn region cmakeEnvironment start="$ENV{" end="}" contained oneline contains=cmakeTodo
|
||||
|
||||
syn region cmakeArguments start="(" end=")" contains=ALLBUT,cmakeCommand,cmakeCommandConditional,cmakeCommandRepeat,cmakeCommandDeprecated,cmakeCommandManuallyAdded,cmakeArguments,cmakeTodo
|
||||
syn region cmakeArguments start="(" end=")" contains=ALLBUT,cmakeGeneratorExpressions,cmakeCommand,cmakeCommandConditional,cmakeCommandRepeat,cmakeCommandDeprecated,cmakeCommandManuallyAdded,cmakeArguments,cmakeTodo
|
||||
|
||||
syn case match
|
||||
|
||||
syn keyword cmakeProperty contained
|
||||
\ ABSTRACT
|
||||
\ ADDITIONAL_CLEAN_FILES
|
||||
\ ADDITIONAL_MAKE_CLEAN_FILES
|
||||
\ ADVANCED
|
||||
\ ALIASED_TARGET
|
||||
@ -251,6 +252,7 @@ syn keyword cmakeProperty contained
|
||||
\ MANUALLY_ADDED_DEPENDENCIES
|
||||
\ MEASUREMENT
|
||||
\ MODIFIED
|
||||
\ MSVC_RUNTIME_LIBRARY
|
||||
\ NAME
|
||||
\ NO_SONAME
|
||||
\ NO_SYSTEM_FROM_IMPORTED
|
||||
@ -300,6 +302,10 @@ syn keyword cmakeProperty contained
|
||||
\ SUBDIRECTORIES
|
||||
\ SUFFIX
|
||||
\ SYMBOLIC
|
||||
\ Swift_DEPENDENCIES_FILE
|
||||
\ Swift_DIAGNOSTICS_FILE
|
||||
\ Swift_MODULE_DIRECTORY
|
||||
\ Swift_MODULE_NAME
|
||||
\ TARGET_ARCHIVES_MAY_BE_SHARED_LIBS
|
||||
\ TARGET_MESSAGES
|
||||
\ TARGET_SUPPORTS_SHARED_LIBS
|
||||
@ -332,9 +338,11 @@ syn keyword cmakeProperty contained
|
||||
\ VS_INCLUDE_IN_VSIX
|
||||
\ VS_IOT_EXTENSIONS_VERSION
|
||||
\ VS_IOT_STARTUP_TASK
|
||||
\ VS_JUST_MY_CODE_DEBUGGING
|
||||
\ VS_KEYWORD
|
||||
\ VS_MOBILE_EXTENSIONS_VERSION
|
||||
\ VS_NO_SOLUTION_DEPLOY
|
||||
\ VS_PROJECT_IMPORT
|
||||
\ VS_RESOURCE_GENERATOR
|
||||
\ VS_SCC_AUXPATH
|
||||
\ VS_SCC_LOCALPATH
|
||||
@ -917,6 +925,7 @@ syn keyword cmakeVariable contained
|
||||
\ CMAKE_ERROR_DEPRECATED
|
||||
\ CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION
|
||||
\ CMAKE_EXECUTABLE_SUFFIX
|
||||
\ CMAKE_EXECUTE_PROCESS_COMMAND_ECHO
|
||||
\ CMAKE_EXE_LINKER_FLAGS
|
||||
\ CMAKE_EXE_LINKER_FLAGS_INIT
|
||||
\ CMAKE_EXPORT_COMPILE_COMMANDS
|
||||
@ -933,6 +942,7 @@ syn keyword cmakeVariable contained
|
||||
\ CMAKE_FIND_PACKAGE_NAME
|
||||
\ CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY
|
||||
\ CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY
|
||||
\ CMAKE_FIND_PACKAGE_PREFER_CONFIG
|
||||
\ CMAKE_FIND_PACKAGE_RESOLVE_SYMLINKS
|
||||
\ CMAKE_FIND_PACKAGE_SORT_DIRECTION
|
||||
\ CMAKE_FIND_PACKAGE_SORT_ORDER
|
||||
@ -943,6 +953,7 @@ syn keyword cmakeVariable contained
|
||||
\ CMAKE_FIND_ROOT_PATH_MODE_PACKAGE
|
||||
\ CMAKE_FIND_ROOT_PATH_MODE_PROGRAM
|
||||
\ CMAKE_FOLDER
|
||||
\ CMAKE_FRAMEWORK
|
||||
\ CMAKE_FRAMEWORK_PATH
|
||||
\ CMAKE_Fortran
|
||||
\ CMAKE_Fortran_ANDROID_TOOLCHAIN_MACHINE
|
||||
@ -1136,6 +1147,7 @@ syn keyword cmakeVariable contained
|
||||
\ CMAKE_MODULE_LINKER_FLAGS_INIT
|
||||
\ CMAKE_MODULE_PATH
|
||||
\ CMAKE_MSVCIDE_RUN_PATH
|
||||
\ CMAKE_MSVC_RUNTIME_LIBRARY
|
||||
\ CMAKE_NETRC
|
||||
\ CMAKE_NETRC_FILE
|
||||
\ CMAKE_NINJA_OUTPUT_PATH_PREFIX
|
||||
@ -1155,6 +1167,7 @@ syn keyword cmakeVariable contained
|
||||
\ CMAKE_PROJECT_DESCRIPTION
|
||||
\ CMAKE_PROJECT_HOMEPAGE_URL
|
||||
\ CMAKE_PROJECT_INCLUDE
|
||||
\ CMAKE_PROJECT_INCLUDE_BEFORE
|
||||
\ CMAKE_PROJECT_NAME
|
||||
\ CMAKE_PROJECT_VERSION
|
||||
\ CMAKE_PROJECT_VERSION_MAJOR
|
||||
@ -1311,6 +1324,7 @@ syn keyword cmakeVariable contained
|
||||
\ CMAKE_Swift_LINKER_WRAPPER_FLAG
|
||||
\ CMAKE_Swift_LINKER_WRAPPER_FLAG_SEP
|
||||
\ CMAKE_Swift_LINK_EXECUTABLE
|
||||
\ CMAKE_Swift_MODULE_DIRECTORY
|
||||
\ CMAKE_Swift_OUTPUT_EXTENSION
|
||||
\ CMAKE_Swift_PLATFORM_ID
|
||||
\ CMAKE_Swift_SIMULATE_ID
|
||||
@ -1346,9 +1360,11 @@ syn keyword cmakeVariable contained
|
||||
\ CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD
|
||||
\ CMAKE_VS_INCLUDE_PACKAGE_TO_DEFAULT_BUILD
|
||||
\ CMAKE_VS_INTEL_Fortran_PROJECT_VERSION
|
||||
\ CMAKE_VS_JUST_MY_CODE_DEBUGGING
|
||||
\ CMAKE_VS_MSBUILD_COMMAND
|
||||
\ CMAKE_VS_NsightTegra_VERSION
|
||||
\ CMAKE_VS_PLATFORM_NAME
|
||||
\ CMAKE_VS_PLATFORM_NAME_DEFAULT
|
||||
\ CMAKE_VS_PLATFORM_TOOLSET
|
||||
\ CMAKE_VS_PLATFORM_TOOLSET_CUDA
|
||||
\ CMAKE_VS_PLATFORM_TOOLSET_HOST_ARCHITECTURE
|
||||
@ -1463,6 +1479,7 @@ syn keyword cmakeVariable contained
|
||||
\ CTEST_UPDATE_COMMAND
|
||||
\ CTEST_UPDATE_OPTIONS
|
||||
\ CTEST_UPDATE_VERSION_ONLY
|
||||
\ CTEST_UPDATE_VERSION_OVERRIDE
|
||||
\ CTEST_USE_LAUNCHERS
|
||||
\ CYGWIN
|
||||
\ ENV
|
||||
@ -1541,6 +1558,7 @@ syn keyword cmakeKWExternalProject contained
|
||||
\ EP_UPDATE_DISCONNECTED
|
||||
\ EXCLUDE_FROM_ALL
|
||||
\ FORCE
|
||||
\ GHS
|
||||
\ GIT_CONFIG
|
||||
\ GIT_PROGRESS
|
||||
\ GIT_REMOTE_NAME
|
||||
@ -1570,6 +1588,7 @@ syn keyword cmakeKWExternalProject contained
|
||||
\ LOG_TEST
|
||||
\ LOG_UPDATE
|
||||
\ MAKE_EXE
|
||||
\ MULTI
|
||||
\ NAMES
|
||||
\ NETRC
|
||||
\ NETRC_FILE
|
||||
@ -1635,6 +1654,8 @@ syn keyword cmakeKWadd_custom_command contained
|
||||
\ GENERATED
|
||||
\ IMPLICIT_DEPENDS
|
||||
\ INCLUDE_DIRECTORIES
|
||||
\ JOB_POOL
|
||||
\ JOB_POOLS
|
||||
\ JOIN
|
||||
\ MAIN_DEPENDENCY
|
||||
\ NOT
|
||||
@ -1660,6 +1681,8 @@ syn keyword cmakeKWadd_custom_target contained
|
||||
\ DEPENDS
|
||||
\ GENERATED
|
||||
\ INCLUDE_DIRECTORIES
|
||||
\ JOB_POOL
|
||||
\ JOB_POOLS
|
||||
\ JOIN
|
||||
\ SOURCES
|
||||
\ TARGET_PROPERTY
|
||||
@ -1715,6 +1738,7 @@ syn keyword cmakeKWadd_library contained
|
||||
\ POST_BUILD
|
||||
\ PRE_BUILD
|
||||
\ PRE_LINK
|
||||
\ PUBLIC_HEADER
|
||||
\ RUNTIME_OUTPUT_DIRECTORY
|
||||
\ SHARED
|
||||
\ STATIC
|
||||
@ -1729,6 +1753,7 @@ syn keyword cmakeKWadd_link_options contained
|
||||
\ LINKER
|
||||
\ LINK_OPTIONS
|
||||
\ SHELL
|
||||
\ STATIC_LIBRARY_OPTIONS
|
||||
\ UNIX_COMMAND
|
||||
\ _LINKER_WRAPPER_FLAG
|
||||
\ _LINKER_WRAPPER_FLAG_SEP
|
||||
@ -1985,6 +2010,7 @@ syn keyword cmakeKWexecute_process contained
|
||||
\ ANSI
|
||||
\ AUTO
|
||||
\ COMMAND
|
||||
\ COMMAND_ECHO
|
||||
\ ENCODING
|
||||
\ ERROR_FILE
|
||||
\ ERROR_QUIET
|
||||
@ -2000,6 +2026,8 @@ syn keyword cmakeKWexecute_process contained
|
||||
\ RESULTS_VARIABLE
|
||||
\ RESULT_VARIABLE
|
||||
\ RFC
|
||||
\ STDERR
|
||||
\ STDOUT
|
||||
\ TIMEOUT
|
||||
\ UTF
|
||||
\ VERBATIM
|
||||
@ -2049,6 +2077,7 @@ syn keyword cmakeKWfile contained
|
||||
\ FILES_MATCHING
|
||||
\ FILE_PERMISSIONS
|
||||
\ FOLLOW_SYMLINKS
|
||||
\ FOLLOW_SYMLINK_CHAIN
|
||||
\ FUNCTION
|
||||
\ GENERATE
|
||||
\ GLOB
|
||||
@ -2157,6 +2186,7 @@ syn keyword cmakeKWfind_library contained
|
||||
|
||||
syn keyword cmakeKWfind_package contained
|
||||
\ ABI
|
||||
\ BUNDLE
|
||||
\ CMAKE_DISABLE_FIND_PACKAGE_
|
||||
\ CMAKE_FIND_ROOT_PATH_BOTH
|
||||
\ COMPONENTS
|
||||
@ -2165,6 +2195,7 @@ syn keyword cmakeKWfind_package contained
|
||||
\ DEC
|
||||
\ DVAR
|
||||
\ EXACT
|
||||
\ FRAMEWORK
|
||||
\ HINTS
|
||||
\ MODULE
|
||||
\ NAMES
|
||||
@ -2574,11 +2605,15 @@ syn keyword cmakeKWmath contained
|
||||
|
||||
syn keyword cmakeKWmessage contained
|
||||
\ AUTHOR_WARNING
|
||||
\ DEBUG
|
||||
\ DEPRECATION
|
||||
\ FATAL_ERROR
|
||||
\ GUI
|
||||
\ NOTICE
|
||||
\ SEND_ERROR
|
||||
\ STATUS
|
||||
\ TRACE
|
||||
\ VERBOSE
|
||||
\ WARNING
|
||||
|
||||
syn keyword cmakeKWoption contained
|
||||
@ -2700,6 +2735,7 @@ syn keyword cmakeKWstring contained
|
||||
\ RANDOM
|
||||
\ RANDOM_SEED
|
||||
\ REGEX
|
||||
\ REPEAT
|
||||
\ REPLACE
|
||||
\ REVERSE
|
||||
\ RFC
|
||||
@ -2796,7 +2832,6 @@ syn keyword cmakeKWtarget_link_libraries contained
|
||||
\ LINK_PUBLIC
|
||||
\ OBJECT
|
||||
\ OLD
|
||||
\ OSX
|
||||
\ PRIVATE
|
||||
\ PUBLIC
|
||||
\ SHARED
|
||||
@ -2817,6 +2852,7 @@ syn keyword cmakeKWtarget_link_options contained
|
||||
\ PRIVATE
|
||||
\ PUBLIC
|
||||
\ SHELL
|
||||
\ STATIC_LIBRARY_OPTIONS
|
||||
\ UNIX_COMMAND
|
||||
\ _LINKER_WRAPPER_FLAG
|
||||
\ _LINKER_WRAPPER_FLAG_SEP
|
||||
@ -2915,6 +2951,8 @@ syn keyword cmakeKWwrite_file contained
|
||||
syn keyword cmakeGeneratorExpressions contained
|
||||
\ AND
|
||||
\ ANGLE
|
||||
\ ARCHIVE_OUTPUT_NAME
|
||||
\ ARCHIVE_OUTPUT_NAME_
|
||||
\ BAR
|
||||
\ BOOL
|
||||
\ BUILD_INTERFACE
|
||||
@ -2924,8 +2962,11 @@ syn keyword cmakeGeneratorExpressions contained
|
||||
\ COMPILE_DEFINITIONS
|
||||
\ COMPILE_FEATURES
|
||||
\ COMPILE_LANGUAGE
|
||||
\ COMPILE_LANG_AND_ID
|
||||
\ COMPILING_CUDA
|
||||
\ COMPILING_CXX
|
||||
\ COMPILING_CXX_WITH_CLANG
|
||||
\ COMPILING_CXX_WITH_INTEL
|
||||
\ COMPILING_C_WITH_CLANG
|
||||
\ CONFIG
|
||||
\ CONFIGURATION
|
||||
\ CUDA_COMPILER_ID
|
||||
@ -2938,14 +2979,19 @@ syn keyword cmakeGeneratorExpressions contained
|
||||
\ C_COMPILER_VERSION
|
||||
\ C_STANDARD
|
||||
\ DEBUG_MODE
|
||||
\ DEBUG_POSTFIX
|
||||
\ EXCLUDE
|
||||
\ EXPORT
|
||||
\ FALSE
|
||||
\ FILTER
|
||||
\ FOO_EXTRA_THINGS
|
||||
\ GENERATE
|
||||
\ GENEX_EVAL
|
||||
\ GNU
|
||||
\ IF
|
||||
\ IGNORE
|
||||
\ IMPORT_PREFIX
|
||||
\ IMPORT_SUFFIX
|
||||
\ INCLUDE_DIRECTORIES
|
||||
\ INSTALL_INTERFACE
|
||||
\ INSTALL_PREFIX
|
||||
@ -2953,6 +2999,9 @@ syn keyword cmakeGeneratorExpressions contained
|
||||
\ IN_LIST
|
||||
\ JOIN
|
||||
\ LANG
|
||||
\ LANG_COMPILER_ID
|
||||
\ LIBRARY_OUTPUT_NAME
|
||||
\ LIBRARY_OUTPUT_NAME_
|
||||
\ LINK_LIBRARIES
|
||||
\ LINK_ONLY
|
||||
\ LOWER_CASE
|
||||
@ -2960,9 +3009,10 @@ syn keyword cmakeGeneratorExpressions contained
|
||||
\ MAP_IMPORTED_CONFIG_
|
||||
\ NO
|
||||
\ NOT
|
||||
\ OBJECT_LIBRARY
|
||||
\ OFF
|
||||
\ OLD_COMPILER
|
||||
\ OUTPUT_NAME
|
||||
\ OUTPUT_NAME_
|
||||
\ PDB_NAME
|
||||
\ PDB_NAME_
|
||||
\ PDB_OUTPUT_DIRECTORY
|
||||
@ -2971,6 +3021,9 @@ syn keyword cmakeGeneratorExpressions contained
|
||||
\ POSIX
|
||||
\ PRIVATE
|
||||
\ PUBLIC
|
||||
\ REMOVE_DUPLICATES
|
||||
\ RUNTIME_OUTPUT_NAME
|
||||
\ RUNTIME_OUTPUT_NAME_
|
||||
\ SDK
|
||||
\ SEMICOLON
|
||||
\ SHELL_PATH
|
||||
@ -2979,15 +3032,22 @@ syn keyword cmakeGeneratorExpressions contained
|
||||
\ TARGET_BUNDLE_DIR
|
||||
\ TARGET_EXISTS
|
||||
\ TARGET_FILE
|
||||
\ TARGET_FILE_BASE_NAME
|
||||
\ TARGET_FILE_DIR
|
||||
\ TARGET_FILE_NAME
|
||||
\ TARGET_FILE_PREFIX
|
||||
\ TARGET_FILE_SUFFIX
|
||||
\ TARGET_GENEX_EVAL
|
||||
\ TARGET_LINKER_FILE
|
||||
\ TARGET_LINKER_FILE_BASE_NAME
|
||||
\ TARGET_LINKER_FILE_DIR
|
||||
\ TARGET_LINKER_FILE_NAME
|
||||
\ TARGET_LINKER_FILE_PREFIX
|
||||
\ TARGET_LINKER_FILE_SUFFIX
|
||||
\ TARGET_NAME_IF_EXISTS
|
||||
\ TARGET_OBJECTS
|
||||
\ TARGET_PDB_FILE
|
||||
\ TARGET_PDB_FILE_BASE_NAME
|
||||
\ TARGET_PDB_FILE_DIR
|
||||
\ TARGET_PDB_FILE_NAME
|
||||
\ TARGET_POLICY
|
||||
@ -3001,6 +3061,7 @@ syn keyword cmakeGeneratorExpressions contained
|
||||
\ VERSION_GREATER_EQUAL
|
||||
\ VERSION_LESS
|
||||
\ VERSION_LESS_EQUAL
|
||||
\ _POSTFIX
|
||||
|
||||
syn case ignore
|
||||
|
||||
|
@ -5,18 +5,16 @@ endif
|
||||
" Vim syntax file
|
||||
" Language: Kotlin
|
||||
" Maintainer: Alexander Udalov
|
||||
" Latest Revision: 14 January 2019
|
||||
" Latest Revision: 26 May 2019
|
||||
|
||||
if exists("b:current_syntax")
|
||||
if exists('b:current_syntax')
|
||||
finish
|
||||
endif
|
||||
|
||||
let b:current_syntax = "kotlin"
|
||||
|
||||
syn keyword ktStatement break continue return
|
||||
syn keyword ktConditional if else when
|
||||
syn keyword ktRepeat do for while
|
||||
syn keyword ktOperator as in is by
|
||||
syn keyword ktOperator in is by
|
||||
syn keyword ktKeyword get set out super this where
|
||||
syn keyword ktException try catch finally throw
|
||||
|
||||
@ -33,6 +31,8 @@ syn keyword ktConstant null
|
||||
|
||||
syn keyword ktModifier data tailrec lateinit reified external inline noinline crossinline const operator infix suspend
|
||||
|
||||
syn match ktOperator "\v\?:|::|\<\=? | \>\=?|[!=]\=\=?|<as>\??|[-!%&*+/|]"
|
||||
|
||||
syn keyword ktTodo TODO FIXME XXX contained
|
||||
syn match ktShebang "\v^#!.*$"
|
||||
syn match ktLineComment "\v//.*$" contains=ktTodo,@Spell
|
||||
@ -69,48 +69,48 @@ syn match ktEscapedName "\v`.*`"
|
||||
syn match ktExclExcl "!!"
|
||||
syn match ktArrow "->"
|
||||
|
||||
hi def link ktStatement Statement
|
||||
hi def link ktConditional Conditional
|
||||
hi def link ktRepeat Repeat
|
||||
hi def link ktOperator Operator
|
||||
hi def link ktKeyword Keyword
|
||||
hi def link ktException Exception
|
||||
hi def link ktReservedKeyword Error
|
||||
|
||||
hi def link ktInclude Include
|
||||
|
||||
hi link ktStatement Statement
|
||||
hi link ktConditional Conditional
|
||||
hi link ktRepeat Repeat
|
||||
hi link ktOperator Operator
|
||||
hi link ktKeyword Keyword
|
||||
hi link ktException Exception
|
||||
hi link ktReservedKeyword Error
|
||||
hi def link ktType Type
|
||||
hi def link ktModifier StorageClass
|
||||
hi def link ktStructure Structure
|
||||
hi def link ktTypedef Typedef
|
||||
|
||||
hi link ktInclude Include
|
||||
hi def link ktBoolean Boolean
|
||||
hi def link ktConstant Constant
|
||||
|
||||
hi link ktType Type
|
||||
hi link ktModifier StorageClass
|
||||
hi link ktStructure Structure
|
||||
hi link ktTypedef Typedef
|
||||
hi def link ktTodo Todo
|
||||
hi def link ktShebang Comment
|
||||
hi def link ktLineComment Comment
|
||||
hi def link ktComment Comment
|
||||
hi def link ktCommentMatchGroup Comment
|
||||
hi def link ktDocComment Comment
|
||||
hi def link ktDocTag Special
|
||||
hi def link ktDocTagParam Identifier
|
||||
|
||||
hi link ktBoolean Boolean
|
||||
hi link ktConstant Constant
|
||||
hi def link ktSpecialChar SpecialChar
|
||||
hi def link ktSpecialCharError Error
|
||||
hi def link ktString String
|
||||
hi def link ktCharacter Character
|
||||
|
||||
hi link ktTodo Todo
|
||||
hi link ktShebang Comment
|
||||
hi link ktLineComment Comment
|
||||
hi link ktComment Comment
|
||||
hi link ktCommentMatchGroup Comment
|
||||
hi link ktDocComment Comment
|
||||
hi link ktDocTag Special
|
||||
hi link ktDocTagParam Identifier
|
||||
hi def link ktAnnotation Identifier
|
||||
hi def link ktLabel Identifier
|
||||
|
||||
hi link ktSpecialChar SpecialChar
|
||||
hi link ktSpecialCharError Error
|
||||
hi link ktString String
|
||||
hi link ktCharacter Character
|
||||
hi def link ktSimpleInterpolation Identifier
|
||||
hi def link ktComplexInterpolationBrace Identifier
|
||||
|
||||
hi link ktAnnotation Identifier
|
||||
hi link ktLabel Identifier
|
||||
hi def link ktNumber Number
|
||||
hi def link ktFloat Float
|
||||
|
||||
hi link ktSimpleInterpolation Identifier
|
||||
hi link ktComplexInterpolationBrace Identifier
|
||||
hi def link ktExclExcl Special
|
||||
hi def link ktArrow Structure
|
||||
|
||||
hi link ktNumber Number
|
||||
hi link ktFloat Float
|
||||
|
||||
hi link ktExclExcl Special
|
||||
hi link ktArrow Structure
|
||||
let b:current_syntax = 'kotlin'
|
||||
|
@ -40,6 +40,7 @@ syn region nixInterpolation matchgroup=nixInterpolationDelimiter start="\${" end
|
||||
|
||||
syn match nixSimpleStringSpecial /\\\%([nrt"\\$]\|$\)/ contained
|
||||
syn match nixStringSpecial /''['$]/ contained
|
||||
syn match nixStringSpecial /\$\$/ contained
|
||||
syn match nixStringSpecial /''\\[nrt]/ contained
|
||||
|
||||
syn match nixInvalidSimpleStringEscape /\\[^nrt"\\$]/ contained
|
||||
|
@ -2,27 +2,27 @@ if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'plantuml') != -1
|
||||
finish
|
||||
endif
|
||||
|
||||
scriptencoding utf-8
|
||||
" Vim syntax file
|
||||
" Language: PlantUML
|
||||
" Maintainer: Anders Thøgersen <first name at bladre dot dk>
|
||||
" License: VIM LICENSE
|
||||
if exists('b:current_syntax')
|
||||
finish
|
||||
endif
|
||||
|
||||
scriptencoding utf-8
|
||||
|
||||
if v:version < 600
|
||||
syntax clear
|
||||
endif
|
||||
|
||||
let s:cpo_orig=&cpo
|
||||
set cpo&vim
|
||||
let s:cpo_orig=&cpoptions
|
||||
set cpoptions&vim
|
||||
|
||||
let b:current_syntax = 'plantuml'
|
||||
|
||||
syntax sync minlines=100
|
||||
|
||||
syntax match plantumlPreProc /\%(^@startuml\|^@enduml\)\|!\%(define|definelong|else|enddefinelong|endif|if|ifdef|ifndef|include|pragma|undef\)\s*.*/ contains=plantumlDir
|
||||
syntax match plantumlPreProc /\%(^@startuml\|^@enduml\)\|!\%(define\|definelong\|else\|enddefinelong\|endif\|exit\|if\|ifdef\|ifndef\|include\|pragma\|undef\)\s*.*/ contains=plantumlDir
|
||||
syntax region plantumlDir start=/\s\+/ms=s+1 end=/$/ contained
|
||||
|
||||
syntax keyword plantumlTypeKeyword abstract actor agent archimate artifact boundary card cloud component control
|
||||
@ -32,10 +32,10 @@ syntax keyword plantumlTypeKeyword queue rectangle stack state storage usecase
|
||||
syntax keyword plantumlClassKeyword class interface
|
||||
|
||||
syntax keyword plantumlKeyword activate again also alt as autonumber bottom box break caption center create
|
||||
syntax keyword plantumlKeyword critical deactivate destroy down else elseif end endif endwhile footbox footer
|
||||
syntax keyword plantumlKeyword fork group header hide hnote if is kill left legend link loop namespace newpage
|
||||
syntax keyword plantumlKeyword note of on opt over package page par partition ref repeat return right rnote
|
||||
syntax keyword plantumlKeyword rotate show skin skinparam start stop title top up while
|
||||
syntax keyword plantumlKeyword critical deactivate destroy down else elseif end endif endsplit endwhile footbox
|
||||
syntax keyword plantumlKeyword footer fork group header hide hnote if is kill left legend link loop namespace
|
||||
syntax keyword plantumlKeyword newpage note of on opt over package page par partition ref repeat return right
|
||||
syntax keyword plantumlKeyword rnote rotate show skin skinparam split start stop title top up while
|
||||
" Not in 'java - jar plantuml.jar - language' output
|
||||
syntax keyword plantumlKeyword then detach sprite
|
||||
|
||||
@ -63,12 +63,18 @@ syntax keyword plantumlColor Sienna Silver SkyBlue SlateBlue SlateGray SlateGrey
|
||||
syntax keyword plantumlColor TECHNOLOGY Tan Teal Thistle Tomato Turquoise Violet Wheat White WhiteSmoke
|
||||
syntax keyword plantumlColor Yellow YellowGreen
|
||||
|
||||
" Arrows - Differentiate between horizontal and vertical arrows
|
||||
syntax match plantumlHorizontalArrow /\%([-\.]\%(|>\|>\|\*\|o\>\|\\\\\|\\\|\/\/\|\/\|\.\|-\)\|\%(<|\|<\|\*\|\<o\|\\\\\|\\\|\/\/\|\/\)[\.-]\)\%(\[[^\]]*\]\)\?/ contains=plantumlLabel
|
||||
syntax match plantumlDirectedOrVerticalArrowLR /[-\.]\%(le\?f\?t\?\|ri\?g\?h\?t\?\|up\?\|do\?w\?n\?\)\?[-\.]\%(|>\|>>\|>\|\*\|o\>\|\\\\\|\\\|\/\/\|\/\|\.\|-\)\%(\[[^\]]*\]\)\?/ contains=plantumlLabel
|
||||
syntax match plantumlDirectedOrVerticalArrowRL /\%(<|\|<<\|<\|\*\|\<o\|\\\\\|\\\|\/\/\|\/\)[-\.]\%(le\?f\?t\?\|ri\?g\?h\?t\?\|up\?\|do\?w\?n\?\)\?[-\.]\%(\[[^\]]*\]\)\?/ contains=plantumlLabel
|
||||
syntax region plantumlLabel start=/\[/ms=s+1 end=/\]/me=s-1 contained contains=plantumlText
|
||||
syntax match plantumlText /\%([0-9A-Za-z\0xc0-\0xff]\|\s\|[\.,;_-]\)\+/ contained
|
||||
" Arrows
|
||||
syntax match plantumlArrow /.\@=\([.-]\)\1\+\ze\s*\%(\w\|(\)/
|
||||
|
||||
syntax match plantumlClassRelationLR /\([-.]\)\1*\%(\w\{,5\}\1\+\)\?\%(|>\|>\|*\|o\|x\|#\|{\|+\|\^\)/ contains=plantumlArrowDirectedLine
|
||||
syntax match plantumlClassRelationRL /\%(<|\|<\|*\|o\|x\|#\|}\|+\|\^\)\([-.]\)\1*\%(\w\{,5\}\1\+\)\?/ contains=plantumlArrowDirectedLine
|
||||
|
||||
syntax match plantumlArrowLR /\[\?\([-.]\)\1*\%(\w\{,5}\1\+\)\?\(>\|\\\|\/\)\2\?[ox]\?\]\?\%(\[[^\]]*\]\)\?/ contains=plantumlText,plantumlArrowDirectedLine
|
||||
syntax match plantumlArrowRL /\[\?[ox]\?\(<\|\\\|\/\)\1\?\([-.]\)\2*\%(\w\{,5}\2\+\)\?\]\?\%(\[[^\]]*\]\)\?/ contains=plantumlText,plantumlArrowDirectedLine
|
||||
syntax match plantumlArrowBoth /[ox]\?\(<\|\\\|\/\)\1\?\([-.]\)\2*\%(\w\{,5}\2\+\)\?\(>\|\\\|\/\)\3\?[ox]\?/ contains=plantumlArrowDirectedLine
|
||||
syntax region plantumlText oneline start=/\[/ms=s+1 end=/\]/me=s-1 contained
|
||||
|
||||
syntax match plantumlArrowDirectedLine /\([-.]\)\%(l\%[eft]\|r\%[ight]\|up\?\|d\%[own]\)\1/ contained
|
||||
|
||||
" Note
|
||||
syntax region plantumlNoteMultiLine start=/\%(^\s*[rh]\?note\)\@<=\s\%([^:"]\+$\)\@=/ end=/^\%(\s*end \?[rh]\?note$\)\@=/ contains=plantumlSpecialString,plantumlNoteMultiLineStart
|
||||
@ -103,7 +109,7 @@ syntax region plantumlMultilineComment start=/\/'/ end=/'\// contains=plantumlCo
|
||||
syntax match plantumlColonLine /\S\@<=\s*\zs:.\+$/ contains=plantumlSpecialString
|
||||
|
||||
" Stereotypes
|
||||
syntax match plantumlStereotype /<<.\{-1,}>>/ contains=plantumlSpecialString
|
||||
syntax match plantumlStereotype /<<[^-.]\+>>/ contains=plantumlSpecialString
|
||||
|
||||
" Activity diagram
|
||||
syntax match plantumlActivityThing /([^)]*)/
|
||||
@ -114,6 +120,8 @@ syntax match plantumlActivityLabel /\%(^\%(#\S\+\)\?\)\@<=:\_[^;|<>/\]}]\+[;|<>/
|
||||
syntax match plantumlSequenceDivider /^\s*==[^=]\+==\s*$/
|
||||
syntax match plantumlSequenceSpace /^\s*|||\+\s*$/
|
||||
syntax match plantumlSequenceSpace /^\s*||\d\+||\+\s*$/
|
||||
syntax match plantumlSequenceDelay /^\.\{3}$/
|
||||
syntax region plantumlText oneline matchgroup=plantumlSequenceDelay start=/^\.\{3}/ end=/\.\{3}$/
|
||||
|
||||
" Usecase diagram
|
||||
syntax match plantumlUsecaseActor /:.\{-1,}:/ contains=plantumlSpecialString
|
||||
@ -288,10 +296,13 @@ highlight default link plantumlTypeKeyword Type
|
||||
highlight default link plantumlPreProc PreProc
|
||||
highlight default link plantumlDir Constant
|
||||
highlight default link plantumlColor Constant
|
||||
highlight default link plantumlHorizontalArrow Identifier
|
||||
highlight default link plantumlDirectedOrVerticalArrowLR Identifier
|
||||
highlight default link plantumlDirectedOrVerticalArrowRL Identifier
|
||||
highlight default link plantumlLabel Special
|
||||
highlight default link plantumlArrow Identifier
|
||||
highlight default link plantumlArrowBoth Identifier
|
||||
highlight default link plantumlArrowLR Identifier
|
||||
highlight default link plantumlArrowRL Identifier
|
||||
highlight default link plantumlArrowDirectedLine Identifier
|
||||
highlight default link plantumlClassRelationLR Identifier
|
||||
highlight default link plantumlClassRelationRL Identifier
|
||||
highlight default link plantumlText Label
|
||||
highlight default link plantumlClass Type
|
||||
highlight default link plantumlClassPublic Structure
|
||||
@ -301,6 +312,7 @@ highlight default link plantumlClassPackPrivate Function
|
||||
highlight default link plantumlClassSeparator Comment
|
||||
highlight default link plantumlSequenceDivider Comment
|
||||
highlight default link plantumlSequenceSpace Comment
|
||||
highlight default link plantumlSequenceDelay Identifier
|
||||
highlight default link plantumlSpecialString Special
|
||||
highlight default link plantumlString String
|
||||
highlight default link plantumlComment Comment
|
||||
@ -314,5 +326,5 @@ highlight default link plantumlNoteMultiLine String
|
||||
highlight default link plantumlUsecaseActor String
|
||||
highlight default link plantumlStereotype Type
|
||||
|
||||
let &cpo=s:cpo_orig
|
||||
let &cpoptions=s:cpo_orig
|
||||
unlet s:cpo_orig
|
||||
|
@ -94,16 +94,21 @@ execute 'syn match rstSubstitutionDefinition contained' .
|
||||
\ ' /|.*|\_s\+/ nextgroup=@rstDirectives'
|
||||
|
||||
function! s:DefineOneInlineMarkup(name, start, middle, end, char_left, char_right)
|
||||
execute 'syn match rstEscape'.a:name.' +\\\\\|\\'.a:start.'+'.' contained'
|
||||
|
||||
execute 'syn region rst' . a:name .
|
||||
\ ' start=+' . a:char_left . '\zs' . a:start .
|
||||
\ '\ze[^[:space:]' . a:char_right . a:start[strlen(a:start) - 1] . ']+' .
|
||||
\ a:middle .
|
||||
\ ' end=+\S' . a:end . '\ze\%($\|\s\|[''"’)\]}>/:.,;!?\\-]\)+'
|
||||
\ ' end=+' . a:end . '\ze\%($\|\s\|[''"’)\]}>/:.,;!?\\-]\)+' .
|
||||
\ ' contains=rstEscape' . a:name
|
||||
|
||||
execute 'hi def link rstEscape'.a:name.' Special'
|
||||
endfunction
|
||||
|
||||
function! s:DefineInlineMarkup(name, start, middle, end)
|
||||
let middle = a:middle != "" ?
|
||||
\ (' skip=+\\\\\|\\' . a:middle . '+') :
|
||||
\ (' skip=+\\\\\|\\' . a:middle . '\|\s' . a:middle . '+') :
|
||||
\ ""
|
||||
|
||||
call s:DefineOneInlineMarkup(a:name, a:start, middle, a:end, "'", "'")
|
||||
|
@ -76,7 +76,7 @@ syn match rustMacroRepeatCount ".\?[*+]" contained
|
||||
syn match rustMacroVariable "$\w\+"
|
||||
|
||||
" Reserved (but not yet used) keywords {{{2
|
||||
syn keyword rustReservedKeyword alignof become do offsetof priv pure sizeof typeof unsized abstract virtual final override
|
||||
syn keyword rustReservedKeyword become do priv typeof unsized abstract virtual final override
|
||||
|
||||
" Built-in types {{{2
|
||||
syn keyword rustType isize usize char bool u8 u16 u32 u64 u128 f32
|
||||
|
@ -5,14 +5,10 @@ endif
|
||||
" Forked from Larry Gilbert's syntax file
|
||||
" github.com/L2G/vim-syntax-terraform
|
||||
|
||||
if exists("b:current_syntax")
|
||||
if exists('b:current_syntax')
|
||||
finish
|
||||
endif
|
||||
|
||||
" Include hyphens as keyword characters so that a keyword appearing as part of
|
||||
" a longer name doesn't get partially highlighted.
|
||||
setlocal iskeyword+=-
|
||||
|
||||
syn case match
|
||||
|
||||
syn keyword terraSection connection output provider variable data terraform locals
|
||||
@ -37,6 +33,7 @@ syn keyword terraDataTypeBI
|
||||
\ alicloud_cs_kubernetes_clusters
|
||||
\ alicloud_cs_managed_kubernetes_clusters
|
||||
\ alicloud_db_instances
|
||||
\ alicloud_ddoscoo_instances
|
||||
\ alicloud_disks
|
||||
\ alicloud_dns_domain_groups
|
||||
\ alicloud_dns_domain_records
|
||||
@ -46,6 +43,9 @@ syn keyword terraDataTypeBI
|
||||
\ alicloud_drds_instances
|
||||
\ alicloud_eips
|
||||
\ alicloud_elasticsearch_instances
|
||||
\ alicloud_ess_scaling_configurations
|
||||
\ alicloud_ess_scaling_groups
|
||||
\ alicloud_ess_scaling_rules
|
||||
\ alicloud_fc_functions
|
||||
\ alicloud_fc_services
|
||||
\ alicloud_fc_triggers
|
||||
@ -60,14 +60,19 @@ syn keyword terraDataTypeBI
|
||||
\ alicloud_mns_topic_subscriptions
|
||||
\ alicloud_mns_topics
|
||||
\ alicloud_mongo_instances
|
||||
\ alicloud_mongodb_instances
|
||||
\ alicloud_nas_access_groups
|
||||
\ alicloud_nas_access_rules
|
||||
\ alicloud_nas_file_systems
|
||||
\ alicloud_nas_mount_targets
|
||||
\ alicloud_nas_protocols
|
||||
\ alicloud_nat_gateways
|
||||
\ alicloud_network_interfaces
|
||||
\ alicloud_oss_bucket_objects
|
||||
\ alicloud_oss_buckets
|
||||
\ alicloud_ots_instance_attachments
|
||||
\ alicloud_ots_instances
|
||||
\ alicloud_ots_tables
|
||||
\ alicloud_pvtz_zone_records
|
||||
\ alicloud_pvtz_zones
|
||||
\ alicloud_ram_account_alias
|
||||
@ -90,7 +95,10 @@ syn keyword terraDataTypeBI
|
||||
\ alicloud_slb_server_certificates
|
||||
\ alicloud_slb_server_groups
|
||||
\ alicloud_slbs
|
||||
\ alicloud_snapshots
|
||||
\ alicloud_snat_entries
|
||||
\ alicloud_ssl_vpn_client_certs
|
||||
\ alicloud_ssl_vpn_servers
|
||||
\ alicloud_vpcs
|
||||
\ alicloud_vpn_connections
|
||||
\ alicloud_vpn_customer_gateways
|
||||
@ -142,6 +150,7 @@ syn keyword terraDataTypeBI
|
||||
\ aws_ec2_transit_gateway_route_table
|
||||
\ aws_ec2_transit_gateway_vpc_attachment
|
||||
\ aws_ec2_transit_gateway_vpn_attachment
|
||||
\ aws_ecr_image
|
||||
\ aws_ecr_repository
|
||||
\ aws_ecs_cluster
|
||||
\ aws_ecs_container_definition
|
||||
@ -183,6 +192,7 @@ syn keyword terraDataTypeBI
|
||||
\ aws_kms_secrets
|
||||
\ aws_lambda_function
|
||||
\ aws_lambda_invocation
|
||||
\ aws_lambda_layer_version
|
||||
\ aws_launch_configuration
|
||||
\ aws_launch_template
|
||||
\ aws_lb
|
||||
@ -196,6 +206,7 @@ syn keyword terraDataTypeBI
|
||||
\ aws_partition
|
||||
\ aws_prefix_list
|
||||
\ aws_pricing_product
|
||||
\ aws_ram_resource_share
|
||||
\ aws_rds_cluster
|
||||
\ aws_redshift_cluster
|
||||
\ aws_redshift_service_account
|
||||
@ -237,10 +248,15 @@ syn keyword terraDataTypeBI
|
||||
\ azurerm_app_service_plan
|
||||
\ azurerm_application_insights
|
||||
\ azurerm_application_security_group
|
||||
\ azurerm_automation_variable_bool
|
||||
\ azurerm_automation_variable_datetime
|
||||
\ azurerm_automation_variable_int
|
||||
\ azurerm_automation_variable_string
|
||||
\ azurerm_availability_set
|
||||
\ azurerm_azuread_application
|
||||
\ azurerm_azuread_service_principal
|
||||
\ azurerm_batch_account
|
||||
\ azurerm_batch_certificate
|
||||
\ azurerm_batch_pool
|
||||
\ azurerm_builtin_role_definition
|
||||
\ azurerm_cdn_profile
|
||||
@ -251,12 +267,16 @@ syn keyword terraDataTypeBI
|
||||
\ azurerm_dev_test_lab
|
||||
\ azurerm_dns_zone
|
||||
\ azurerm_eventhub_namespace
|
||||
\ azurerm_express_route_circuit
|
||||
\ azurerm_firewall
|
||||
\ azurerm_hdinsight_cluster
|
||||
\ azurerm_image
|
||||
\ azurerm_key_vault
|
||||
\ azurerm_key_vault_access_policy
|
||||
\ azurerm_key_vault_key
|
||||
\ azurerm_key_vault_secret
|
||||
\ azurerm_kubernetes_cluster
|
||||
\ azurerm_kubernetes_service_versions
|
||||
\ azurerm_lb
|
||||
\ azurerm_lb_backend_address_pool
|
||||
\ azurerm_log_analytics_workspace
|
||||
@ -288,10 +308,12 @@ syn keyword terraDataTypeBI
|
||||
\ azurerm_snapshot
|
||||
\ azurerm_storage_account
|
||||
\ azurerm_storage_account_sas
|
||||
\ azurerm_stream_analytics_job
|
||||
\ azurerm_subnet
|
||||
\ azurerm_subscription
|
||||
\ azurerm_subscriptions
|
||||
\ azurerm_traffic_manager_geographical_location
|
||||
\ azurerm_user_assigned_identity
|
||||
\ azurerm_virtual_machine
|
||||
\ azurerm_virtual_network
|
||||
\ azurerm_virtual_network_gateway
|
||||
@ -361,6 +383,8 @@ syn keyword terraDataTypeBI
|
||||
\ flexibleengine_dcs_maintainwindow_v1
|
||||
\ flexibleengine_dcs_product_v1
|
||||
\ flexibleengine_images_image_v2
|
||||
\ flexibleengine_kms_data_key_v1
|
||||
\ flexibleengine_kms_key_v1
|
||||
\ flexibleengine_networking_network_v2
|
||||
\ flexibleengine_networking_secgroup_v2
|
||||
\ flexibleengine_rds_flavors_v1
|
||||
@ -400,6 +424,7 @@ syn keyword terraDataTypeBI
|
||||
\ google_compute_instance_group
|
||||
\ google_compute_lb_ip_ranges
|
||||
\ google_compute_network
|
||||
\ google_compute_node_types
|
||||
\ google_compute_region_instance_group
|
||||
\ google_compute_regions
|
||||
\ google_compute_ssl_policy
|
||||
@ -425,6 +450,7 @@ syn keyword terraDataTypeBI
|
||||
\ google_project_services
|
||||
\ google_projects
|
||||
\ google_service_account
|
||||
\ google_service_account_access_token
|
||||
\ google_service_account_key
|
||||
\ google_storage_bucket_object
|
||||
\ google_storage_object_signed_url
|
||||
@ -432,6 +458,12 @@ syn keyword terraDataTypeBI
|
||||
\ google_storage_transfer_project_service_account
|
||||
\ google_tpu_tensorflow_versions
|
||||
\ grafana_data_source
|
||||
\ gridscale_ipv4
|
||||
\ gridscale_ipv6
|
||||
\ gridscale_network
|
||||
\ gridscale_sshkey
|
||||
\ gridscale_storage
|
||||
\ gridscale_template
|
||||
\ hcloud_datacenter
|
||||
\ hcloud_datacenters
|
||||
\ hcloud_floating_ip
|
||||
@ -481,6 +513,17 @@ syn keyword terraDataTypeBI
|
||||
\ huaweicloud_vpc_subnet_ids_v1
|
||||
\ huaweicloud_vpc_subnet_v1
|
||||
\ huaweicloud_vpc_v1
|
||||
\ ignition_config
|
||||
\ ignition_directory
|
||||
\ ignition_disk
|
||||
\ ignition_file
|
||||
\ ignition_filesystem
|
||||
\ ignition_group
|
||||
\ ignition_link
|
||||
\ ignition_networkd_unit
|
||||
\ ignition_raid
|
||||
\ ignition_systemd_unit
|
||||
\ ignition_user
|
||||
\ kubernetes_secret
|
||||
\ kubernetes_service
|
||||
\ kubernetes_storage_class
|
||||
@ -488,6 +531,7 @@ syn keyword terraDataTypeBI
|
||||
\ linode_domain
|
||||
\ linode_image
|
||||
\ linode_instance_type
|
||||
\ linode_networking_ip
|
||||
\ linode_profile
|
||||
\ linode_region
|
||||
\ linode_sshkey
|
||||
@ -535,6 +579,7 @@ syn keyword terraDataTypeBI
|
||||
\ nsxt_switching_profile
|
||||
\ nsxt_transport_zone
|
||||
\ null_data_source
|
||||
\ nutanix_category_key
|
||||
\ nutanix_cluster
|
||||
\ nutanix_clusters
|
||||
\ nutanix_image
|
||||
@ -584,6 +629,7 @@ syn keyword terraDataTypeBI
|
||||
\ oci_core_drg_attachments
|
||||
\ oci_core_drgs
|
||||
\ oci_core_fast_connect_provider_service
|
||||
\ oci_core_fast_connect_provider_service_key
|
||||
\ oci_core_fast_connect_provider_services
|
||||
\ oci_core_images
|
||||
\ oci_core_instance
|
||||
@ -607,6 +653,7 @@ syn keyword terraDataTypeBI
|
||||
\ oci_core_nat_gateway
|
||||
\ oci_core_nat_gateways
|
||||
\ oci_core_peer_region_for_remote_peerings
|
||||
\ oci_core_private_ip
|
||||
\ oci_core_private_ips
|
||||
\ oci_core_public_ip
|
||||
\ oci_core_public_ips
|
||||
@ -619,6 +666,7 @@ syn keyword terraDataTypeBI
|
||||
\ oci_core_shapes
|
||||
\ oci_core_subnet
|
||||
\ oci_core_subnets
|
||||
\ oci_core_vcn
|
||||
\ oci_core_vcns
|
||||
\ oci_core_virtual_circuit
|
||||
\ oci_core_virtual_circuit_bandwidth_shapes
|
||||
@ -675,6 +723,7 @@ syn keyword terraDataTypeBI
|
||||
\ oci_file_storage_exports
|
||||
\ oci_file_storage_file_systems
|
||||
\ oci_file_storage_mount_targets
|
||||
\ oci_file_storage_snapshot
|
||||
\ oci_file_storage_snapshots
|
||||
\ oci_health_checks_http_monitor
|
||||
\ oci_health_checks_http_monitors
|
||||
@ -690,9 +739,11 @@ syn keyword terraDataTypeBI
|
||||
\ oci_identity_availability_domains
|
||||
\ oci_identity_compartment
|
||||
\ oci_identity_compartments
|
||||
\ oci_identity_cost_tracking_tags
|
||||
\ oci_identity_customer_secret_keys
|
||||
\ oci_identity_dynamic_groups
|
||||
\ oci_identity_fault_domains
|
||||
\ oci_identity_group
|
||||
\ oci_identity_groups
|
||||
\ oci_identity_identity_provider_groups
|
||||
\ oci_identity_identity_providers
|
||||
@ -707,6 +758,7 @@ syn keyword terraDataTypeBI
|
||||
\ oci_identity_tag_namespaces
|
||||
\ oci_identity_tags
|
||||
\ oci_identity_tenancy
|
||||
\ oci_identity_user
|
||||
\ oci_identity_user_group_memberships
|
||||
\ oci_identity_users
|
||||
\ oci_kms_decrypted_data
|
||||
@ -786,6 +838,7 @@ syn keyword terraDataTypeBI
|
||||
\ openstack_identity_role_v3
|
||||
\ openstack_identity_user_v3
|
||||
\ openstack_images_image_v2
|
||||
\ openstack_networking_addressscope_v2
|
||||
\ openstack_networking_floatingip_v2
|
||||
\ openstack_networking_network_v2
|
||||
\ openstack_networking_port_ids_v2
|
||||
@ -822,8 +875,10 @@ syn keyword terraDataTypeBI
|
||||
\ opentelekomcloud_kms_data_key_v1
|
||||
\ opentelekomcloud_kms_key_v1
|
||||
\ opentelekomcloud_networking_network_v2
|
||||
\ opentelekomcloud_networking_port_v2
|
||||
\ opentelekomcloud_networking_secgroup_v2
|
||||
\ opentelekomcloud_rds_flavors_v1
|
||||
\ opentelekomcloud_rds_flavors_v3
|
||||
\ opentelekomcloud_rts_software_config_v1
|
||||
\ opentelekomcloud_rts_software_deployment_v1
|
||||
\ opentelekomcloud_rts_stack_resource_v1
|
||||
@ -864,6 +919,7 @@ syn keyword terraDataTypeBI
|
||||
\ profitbricks_location
|
||||
\ profitbricks_resource
|
||||
\ profitbricks_snapshot
|
||||
\ rancher2_setting
|
||||
\ rancher_certificate
|
||||
\ rancher_environment
|
||||
\ rancher_setting
|
||||
@ -922,9 +978,15 @@ syn keyword terraDataTypeBI
|
||||
\ tencentcloud_availability_zones
|
||||
\ tencentcloud_container_cluster_instances
|
||||
\ tencentcloud_container_clusters
|
||||
\ tencentcloud_cos_bucket_object
|
||||
\ tencentcloud_cos_buckets
|
||||
\ tencentcloud_eip
|
||||
\ tencentcloud_image
|
||||
\ tencentcloud_instance_types
|
||||
\ tencentcloud_mysql_backup_list
|
||||
\ tencentcloud_mysql_instance
|
||||
\ tencentcloud_mysql_parameter_list
|
||||
\ tencentcloud_mysql_zone_config
|
||||
\ tencentcloud_nats
|
||||
\ tencentcloud_route_table
|
||||
\ tencentcloud_security_group
|
||||
@ -944,6 +1006,7 @@ syn keyword terraDataTypeBI
|
||||
\ triton_image
|
||||
\ triton_network
|
||||
\ triton_package
|
||||
\ ucloud_db_instances
|
||||
\ ucloud_disks
|
||||
\ ucloud_eips
|
||||
\ ucloud_images
|
||||
@ -951,8 +1014,12 @@ syn keyword terraDataTypeBI
|
||||
\ ucloud_lb_attachments
|
||||
\ ucloud_lb_listeners
|
||||
\ ucloud_lb_rules
|
||||
\ ucloud_lb_ssls
|
||||
\ ucloud_lbs
|
||||
\ ucloud_projects
|
||||
\ ucloud_security_groups
|
||||
\ ucloud_subnets
|
||||
\ ucloud_vpcs
|
||||
\ ucloud_zones
|
||||
\ vault_approle_auth_backend_role_id
|
||||
\ vault_aws_access_credentials
|
||||
@ -986,6 +1053,7 @@ syn keyword terraDataTypeBI
|
||||
\ yandex_resourcemanager_cloud
|
||||
\ yandex_resourcemanager_folder
|
||||
\ yandex_vpc_network
|
||||
\ yandex_vpc_route_table
|
||||
\ yandex_vpc_subnet
|
||||
""" end data sources
|
||||
|
||||
@ -1060,6 +1128,7 @@ syn keyword terraResourceTypeBI
|
||||
\ alicloud_kms_key
|
||||
\ alicloud_kvstore_backup_policy
|
||||
\ alicloud_kvstore_instance
|
||||
\ alicloud_launch_template
|
||||
\ alicloud_log_machine_group
|
||||
\ alicloud_log_project
|
||||
\ alicloud_log_store
|
||||
@ -1070,11 +1139,13 @@ syn keyword terraResourceTypeBI
|
||||
\ alicloud_mns_topic
|
||||
\ alicloud_mns_topic_subscription
|
||||
\ alicloud_mongodb_instance
|
||||
\ alicloud_mongodb_sharding_instance
|
||||
\ alicloud_nas_access_group
|
||||
\ alicloud_nas_access_rule
|
||||
\ alicloud_nas_file_system
|
||||
\ alicloud_nas_mount_target
|
||||
\ alicloud_nat_gateway
|
||||
\ alicloud_network_acl
|
||||
\ alicloud_network_interface
|
||||
\ alicloud_network_interface_attachment
|
||||
\ alicloud_oss_bucket
|
||||
@ -1113,6 +1184,8 @@ syn keyword terraResourceTypeBI
|
||||
\ alicloud_slb_rule
|
||||
\ alicloud_slb_server_certificate
|
||||
\ alicloud_slb_server_group
|
||||
\ alicloud_snapshot
|
||||
\ alicloud_snapshot_policy
|
||||
\ alicloud_snat_entry
|
||||
\ alicloud_ssl_vpn_client_cert
|
||||
\ alicloud_ssl_vpn_server
|
||||
@ -1182,6 +1255,7 @@ syn keyword terraResourceTypeBI
|
||||
\ aws_autoscaling_policy
|
||||
\ aws_autoscaling_schedule
|
||||
\ aws_backup_plan
|
||||
\ aws_backup_selection
|
||||
\ aws_backup_vault
|
||||
\ aws_batch_compute_environment
|
||||
\ aws_batch_job_definition
|
||||
@ -1245,6 +1319,7 @@ syn keyword terraResourceTypeBI
|
||||
\ aws_db_cluster_snapshot
|
||||
\ aws_db_event_subscription
|
||||
\ aws_db_instance
|
||||
\ aws_db_instance_role_association
|
||||
\ aws_db_option_group
|
||||
\ aws_db_parameter_group
|
||||
\ aws_db_security_group
|
||||
@ -1275,6 +1350,7 @@ syn keyword terraResourceTypeBI
|
||||
\ aws_dx_connection_association
|
||||
\ aws_dx_gateway
|
||||
\ aws_dx_gateway_association
|
||||
\ aws_dx_gateway_association_proposal
|
||||
\ aws_dx_hosted_private_virtual_interface
|
||||
\ aws_dx_hosted_private_virtual_interface_accepter
|
||||
\ aws_dx_hosted_public_virtual_interface
|
||||
@ -1459,6 +1535,7 @@ syn keyword terraResourceTypeBI
|
||||
\ aws_opsworks_user_profile
|
||||
\ aws_organizations_account
|
||||
\ aws_organizations_organization
|
||||
\ aws_organizations_organizational_unit
|
||||
\ aws_organizations_policy
|
||||
\ aws_organizations_policy_attachment
|
||||
\ aws_pinpoint_adm_channel
|
||||
@ -1509,9 +1586,11 @@ syn keyword terraResourceTypeBI
|
||||
\ aws_s3_bucket_object
|
||||
\ aws_s3_bucket_policy
|
||||
\ aws_s3_bucket_public_access_block
|
||||
\ aws_sagemaker_endpoint
|
||||
\ aws_sagemaker_endpoint_configuration
|
||||
\ aws_sagemaker_model
|
||||
\ aws_sagemaker_notebook_instance
|
||||
\ aws_sagemaker_notebook_instance_lifecycle_configuration
|
||||
\ aws_secretsmanager_secret
|
||||
\ aws_secretsmanager_secret_version
|
||||
\ aws_security_group
|
||||
@ -1530,6 +1609,7 @@ syn keyword terraResourceTypeBI
|
||||
\ aws_ses_domain_identity
|
||||
\ aws_ses_domain_identity_verification
|
||||
\ aws_ses_domain_mail_from
|
||||
\ aws_ses_email_identity
|
||||
\ aws_ses_event_destination
|
||||
\ aws_ses_identity_notification_topic
|
||||
\ aws_ses_receipt_filter
|
||||
@ -1538,6 +1618,7 @@ syn keyword terraResourceTypeBI
|
||||
\ aws_ses_template
|
||||
\ aws_sfn_activity
|
||||
\ aws_sfn_state_machine
|
||||
\ aws_shield_protection
|
||||
\ aws_simpledb_domain
|
||||
\ aws_snapshot_create_volume_permission
|
||||
\ aws_sns_platform_application
|
||||
@ -1617,6 +1698,8 @@ syn keyword terraResourceTypeBI
|
||||
\ aws_wafregional_web_acl_association
|
||||
\ aws_wafregional_xss_match_set
|
||||
\ aws_worklink_fleet
|
||||
\ aws_worklink_website_certificate_authority_association
|
||||
\ aws_xray_sampling_rule
|
||||
\ azure_affinity_group
|
||||
\ azure_data_disk
|
||||
\ azure_dns_server
|
||||
@ -1641,6 +1724,10 @@ syn keyword terraResourceTypeBI
|
||||
\ azurerm_api_management
|
||||
\ azurerm_api_management_api
|
||||
\ azurerm_api_management_api_operation
|
||||
\ azurerm_api_management_api_operation_policy
|
||||
\ azurerm_api_management_api_policy
|
||||
\ azurerm_api_management_api_schema
|
||||
\ azurerm_api_management_api_version_set
|
||||
\ azurerm_api_management_authorization_server
|
||||
\ azurerm_api_management_certificate
|
||||
\ azurerm_api_management_group
|
||||
@ -1650,6 +1737,7 @@ syn keyword terraResourceTypeBI
|
||||
\ azurerm_api_management_product
|
||||
\ azurerm_api_management_product_api
|
||||
\ azurerm_api_management_product_group
|
||||
\ azurerm_api_management_product_policy
|
||||
\ azurerm_api_management_property
|
||||
\ azurerm_api_management_subscription
|
||||
\ azurerm_api_management_user
|
||||
@ -1661,6 +1749,7 @@ syn keyword terraResourceTypeBI
|
||||
\ azurerm_application_gateway
|
||||
\ azurerm_application_insights
|
||||
\ azurerm_application_insights_api_key
|
||||
\ azurerm_application_insights_web_test
|
||||
\ azurerm_application_security_group
|
||||
\ azurerm_automation_account
|
||||
\ azurerm_automation_credential
|
||||
@ -1669,12 +1758,17 @@ syn keyword terraResourceTypeBI
|
||||
\ azurerm_automation_module
|
||||
\ azurerm_automation_runbook
|
||||
\ azurerm_automation_schedule
|
||||
\ azurerm_automation_variable_bool
|
||||
\ azurerm_automation_variable_datetime
|
||||
\ azurerm_automation_variable_int
|
||||
\ azurerm_automation_variable_string
|
||||
\ azurerm_autoscale_setting
|
||||
\ azurerm_availability_set
|
||||
\ azurerm_azuread_application
|
||||
\ azurerm_azuread_service_principal
|
||||
\ azurerm_azuread_service_principal_password
|
||||
\ azurerm_batch_account
|
||||
\ azurerm_batch_certificate
|
||||
\ azurerm_batch_pool
|
||||
\ azurerm_cdn_endpoint
|
||||
\ azurerm_cdn_profile
|
||||
@ -1684,6 +1778,20 @@ syn keyword terraResourceTypeBI
|
||||
\ azurerm_container_registry
|
||||
\ azurerm_container_service
|
||||
\ azurerm_cosmosdb_account
|
||||
\ azurerm_cosmosdb_cassandra_keyspace
|
||||
\ azurerm_cosmosdb_mongo_collection
|
||||
\ azurerm_cosmosdb_mongo_database
|
||||
\ azurerm_cosmosdb_sql_database
|
||||
\ azurerm_cosmosdb_table
|
||||
\ azurerm_data_factory
|
||||
\ azurerm_data_factory_dataset_mysql
|
||||
\ azurerm_data_factory_dataset_postgresql
|
||||
\ azurerm_data_factory_dataset_sql_server_table
|
||||
\ azurerm_data_factory_linked_service_data_lake_storage_gen2
|
||||
\ azurerm_data_factory_linked_service_mysql
|
||||
\ azurerm_data_factory_linked_service_postgresql
|
||||
\ azurerm_data_factory_linked_service_sql_server
|
||||
\ azurerm_data_factory_pipeline
|
||||
\ azurerm_data_lake_analytics_account
|
||||
\ azurerm_data_lake_analytics_firewall_rule
|
||||
\ azurerm_data_lake_store
|
||||
@ -1720,11 +1828,21 @@ syn keyword terraResourceTypeBI
|
||||
\ azurerm_express_route_circuit_peering
|
||||
\ azurerm_firewall
|
||||
\ azurerm_firewall_application_rule_collection
|
||||
\ azurerm_firewall_nat_rule_collection
|
||||
\ azurerm_firewall_network_rule_collection
|
||||
\ azurerm_function_app
|
||||
\ azurerm_hdinsight_hadoop_cluster
|
||||
\ azurerm_hdinsight_hbase_cluster
|
||||
\ azurerm_hdinsight_interactive_query_cluster
|
||||
\ azurerm_hdinsight_kafka_cluster
|
||||
\ azurerm_hdinsight_ml_services_cluster
|
||||
\ azurerm_hdinsight_rserver_cluster
|
||||
\ azurerm_hdinsight_spark_cluster
|
||||
\ azurerm_hdinsight_storm_cluster
|
||||
\ azurerm_image
|
||||
\ azurerm_iothub
|
||||
\ azurerm_iothub_consumer_group
|
||||
\ azurerm_iothub_shared_access_policy
|
||||
\ azurerm_key_vault
|
||||
\ azurerm_key_vault_access_policy
|
||||
\ azurerm_key_vault_certificate
|
||||
@ -1769,11 +1887,15 @@ syn keyword terraResourceTypeBI
|
||||
\ azurerm_mysql_firewall_rule
|
||||
\ azurerm_mysql_server
|
||||
\ azurerm_mysql_virtual_network_rule
|
||||
\ azurerm_network_connection_monitor
|
||||
\ azurerm_network_ddos_protection_plan
|
||||
\ azurerm_network_interface
|
||||
\ azurerm_network_interface_application_gateway_backend_address_pool_association
|
||||
\ azurerm_network_interface_application_security_group_association
|
||||
\ azurerm_network_interface_backend_address_pool_association
|
||||
\ azurerm_network_interface_nat_rule_association
|
||||
\ azurerm_network_packet_capture
|
||||
\ azurerm_network_profile
|
||||
\ azurerm_network_security_group
|
||||
\ azurerm_network_security_rule
|
||||
\ azurerm_network_watcher
|
||||
@ -1790,6 +1912,7 @@ syn keyword terraResourceTypeBI
|
||||
\ azurerm_postgresql_server
|
||||
\ azurerm_postgresql_virtual_network_rule
|
||||
\ azurerm_public_ip
|
||||
\ azurerm_public_ip_prefix
|
||||
\ azurerm_recovery_services_protected_vm
|
||||
\ azurerm_recovery_services_protection_policy_vm
|
||||
\ azurerm_recovery_services_vault
|
||||
@ -1833,6 +1956,14 @@ syn keyword terraResourceTypeBI
|
||||
\ azurerm_storage_queue
|
||||
\ azurerm_storage_share
|
||||
\ azurerm_storage_table
|
||||
\ azurerm_stream_analytics_function_javascript_udf
|
||||
\ azurerm_stream_analytics_job
|
||||
\ azurerm_stream_analytics_output_blob
|
||||
\ azurerm_stream_analytics_output_eventhub
|
||||
\ azurerm_stream_analytics_output_servicebus_queue
|
||||
\ azurerm_stream_analytics_stream_input_blob
|
||||
\ azurerm_stream_analytics_stream_input_eventhub
|
||||
\ azurerm_stream_analytics_stream_input_iothub
|
||||
\ azurerm_subnet
|
||||
\ azurerm_subnet_network_security_group_association
|
||||
\ azurerm_subnet_route_table_association
|
||||
@ -1953,12 +2084,14 @@ syn keyword terraResourceTypeBI
|
||||
\ cloudflare_access_policy
|
||||
\ cloudflare_access_rule
|
||||
\ cloudflare_account_member
|
||||
\ cloudflare_argo
|
||||
\ cloudflare_custom_pages
|
||||
\ cloudflare_filter
|
||||
\ cloudflare_firewall_rule
|
||||
\ cloudflare_load_balancer
|
||||
\ cloudflare_load_balancer_monitor
|
||||
\ cloudflare_load_balancer_pool
|
||||
\ cloudflare_logpush_job
|
||||
\ cloudflare_page_rule
|
||||
\ cloudflare_rate_limit
|
||||
\ cloudflare_record
|
||||
@ -1971,6 +2104,7 @@ syn keyword terraResourceTypeBI
|
||||
\ cloudflare_zone_settings_override
|
||||
\ cloudscale_floating_ip
|
||||
\ cloudscale_server
|
||||
\ cloudscale_volume
|
||||
\ cloudstack_affinity_group
|
||||
\ cloudstack_disk
|
||||
\ cloudstack_egress_firewall
|
||||
@ -2001,6 +2135,8 @@ syn keyword terraResourceTypeBI
|
||||
\ cobbler_repo
|
||||
\ cobbler_snippet
|
||||
\ cobbler_system
|
||||
\ consul_acl_policy
|
||||
\ consul_acl_token
|
||||
\ consul_agent_service
|
||||
\ consul_autopilot_config
|
||||
\ consul_catalog_entry
|
||||
@ -2017,8 +2153,10 @@ syn keyword terraResourceTypeBI
|
||||
\ datadog_metric_metadata
|
||||
\ datadog_monitor
|
||||
\ datadog_screenboard
|
||||
\ datadog_synthetics_test
|
||||
\ datadog_timeboard
|
||||
\ datadog_user
|
||||
\ digitalocean_cdn
|
||||
\ digitalocean_certificate
|
||||
\ digitalocean_database_cluster
|
||||
\ digitalocean_domain
|
||||
@ -2030,6 +2168,7 @@ syn keyword terraResourceTypeBI
|
||||
\ digitalocean_kubernetes_cluster
|
||||
\ digitalocean_kubernetes_node_pool
|
||||
\ digitalocean_loadbalancer
|
||||
\ digitalocean_project
|
||||
\ digitalocean_record
|
||||
\ digitalocean_spaces_bucket
|
||||
\ digitalocean_ssh_key
|
||||
@ -2067,6 +2206,7 @@ syn keyword terraResourceTypeBI
|
||||
\ flexibleengine_compute_floatingip_associate_v2
|
||||
\ flexibleengine_compute_floatingip_v2
|
||||
\ flexibleengine_compute_instance_v2
|
||||
\ flexibleengine_compute_interface_attach_v2
|
||||
\ flexibleengine_compute_keypair_v2
|
||||
\ flexibleengine_compute_servergroup_v2
|
||||
\ flexibleengine_compute_volume_attach_v2
|
||||
@ -2087,6 +2227,7 @@ syn keyword terraResourceTypeBI
|
||||
\ flexibleengine_fw_policy_v2
|
||||
\ flexibleengine_fw_rule_v2
|
||||
\ flexibleengine_images_image_v2
|
||||
\ flexibleengine_kms_key_v1
|
||||
\ flexibleengine_lb_certificate_v2
|
||||
\ flexibleengine_lb_l7policy_v2
|
||||
\ flexibleengine_lb_l7rule_v2
|
||||
@ -2098,6 +2239,7 @@ syn keyword terraResourceTypeBI
|
||||
\ flexibleengine_mls_instance_v1
|
||||
\ flexibleengine_mrs_cluster_v1
|
||||
\ flexibleengine_mrs_job_v1
|
||||
\ flexibleengine_nat_dnat_rule_v2
|
||||
\ flexibleengine_nat_gateway_v2
|
||||
\ flexibleengine_nat_snat_rule_v2
|
||||
\ flexibleengine_networking_floatingip_associate_v2
|
||||
@ -2130,9 +2272,34 @@ syn keyword terraResourceTypeBI
|
||||
\ flexibleengine_vpc_route_v2
|
||||
\ flexibleengine_vpc_subnet_v1
|
||||
\ flexibleengine_vpc_v1
|
||||
\ fortios_firewall_object_address
|
||||
\ fortios_firewall_object_addressgroup
|
||||
\ fortios_firewall_object_ippool
|
||||
\ fortios_firewall_object_service
|
||||
\ fortios_firewall_object_servicegroup
|
||||
\ fortios_firewall_object_vip
|
||||
\ fortios_firewall_object_vipgroup
|
||||
\ fortios_firewall_security_policy
|
||||
\ fortios_log_fortianalyzer_setting
|
||||
\ fortios_log_syslog_setting
|
||||
\ fortios_networking_interface_port
|
||||
\ fortios_networking_route_static
|
||||
\ fortios_system_admin_administrator
|
||||
\ fortios_system_admin_profiles
|
||||
\ fortios_system_apiuser_setting
|
||||
\ fortios_system_license_forticare
|
||||
\ fortios_system_license_vdom
|
||||
\ fortios_system_license_vm
|
||||
\ fortios_system_setting_dns
|
||||
\ fortios_system_setting_global
|
||||
\ fortios_system_setting_ntp
|
||||
\ fortios_system_vdom_setting
|
||||
\ fortios_vpn_ipsec_phase1interface
|
||||
\ fortios_vpn_ipsec_phase2interface
|
||||
\ github_branch_protection
|
||||
\ github_issue_label
|
||||
\ github_membership
|
||||
\ github_organization_block
|
||||
\ github_organization_project
|
||||
\ github_organization_webhook
|
||||
\ github_project_column
|
||||
@ -2147,6 +2314,7 @@ syn keyword terraResourceTypeBI
|
||||
\ github_user_gpg_key
|
||||
\ github_user_invitation_accepter
|
||||
\ github_user_ssh_key
|
||||
\ gitlab_branch_protection
|
||||
\ gitlab_deploy_key
|
||||
\ gitlab_group
|
||||
\ gitlab_group_membership
|
||||
@ -2158,6 +2326,8 @@ syn keyword terraResourceTypeBI
|
||||
\ gitlab_project_hook
|
||||
\ gitlab_project_membership
|
||||
\ gitlab_project_variable
|
||||
\ gitlab_service_slack
|
||||
\ gitlab_tag_protection
|
||||
\ gitlab_user
|
||||
\ google_access_context_manager_access_level
|
||||
\ google_access_context_manager_access_policy
|
||||
@ -2182,7 +2352,9 @@ syn keyword terraResourceTypeBI
|
||||
\ google_compute_attached_disk
|
||||
\ google_compute_autoscaler
|
||||
\ google_compute_backend_bucket
|
||||
\ google_compute_backend_bucket_signed_url_key
|
||||
\ google_compute_backend_service
|
||||
\ google_compute_backend_service_signed_url_key
|
||||
\ google_compute_disk
|
||||
\ google_compute_firewall
|
||||
\ google_compute_forwarding_rule
|
||||
@ -2196,11 +2368,17 @@ syn keyword terraResourceTypeBI
|
||||
\ google_compute_instance_from_template
|
||||
\ google_compute_instance_group
|
||||
\ google_compute_instance_group_manager
|
||||
\ google_compute_instance_iam_binding
|
||||
\ google_compute_instance_iam_member
|
||||
\ google_compute_instance_iam_policy
|
||||
\ google_compute_instance_template
|
||||
\ google_compute_interconnect_attachment
|
||||
\ google_compute_managed_ssl_certificate
|
||||
\ google_compute_network
|
||||
\ google_compute_network_endpoint_group
|
||||
\ google_compute_network_peering
|
||||
\ google_compute_node_group
|
||||
\ google_compute_node_template
|
||||
\ google_compute_project_metadata
|
||||
\ google_compute_project_metadata_item
|
||||
\ google_compute_region_autoscaler
|
||||
@ -2224,6 +2402,7 @@ syn keyword terraResourceTypeBI
|
||||
\ google_compute_subnetwork_iam_policy
|
||||
\ google_compute_target_http_proxy
|
||||
\ google_compute_target_https_proxy
|
||||
\ google_compute_target_instance
|
||||
\ google_compute_target_pool
|
||||
\ google_compute_target_ssl_proxy
|
||||
\ google_compute_target_tcp_proxy
|
||||
@ -2235,17 +2414,27 @@ syn keyword terraResourceTypeBI
|
||||
\ google_container_node_pool
|
||||
\ google_dataflow_job
|
||||
\ google_dataproc_cluster
|
||||
\ google_dataproc_cluster_iam_binding
|
||||
\ google_dataproc_cluster_iam_member
|
||||
\ google_dataproc_cluster_iam_policy
|
||||
\ google_dataproc_job
|
||||
\ google_dataproc_job_iam_binding
|
||||
\ google_dataproc_job_iam_member
|
||||
\ google_dataproc_job_iam_policy
|
||||
\ google_dns_managed_zone
|
||||
\ google_dns_policy
|
||||
\ google_dns_record_set
|
||||
\ google_endpoints_service
|
||||
\ google_filestore_instance
|
||||
\ google_firestore_index
|
||||
\ google_folder
|
||||
\ google_folder_iam_binding
|
||||
\ google_folder_iam_member
|
||||
\ google_folder_iam_policy
|
||||
\ google_folder_organization_policy
|
||||
\ google_iap_tunnel_instance_iam_binding
|
||||
\ google_iap_tunnel_instance_iam_member
|
||||
\ google_iap_tunnel_instance_iam_policy
|
||||
\ google_kms_crypto_key
|
||||
\ google_kms_crypto_key_iam_binding
|
||||
\ google_kms_crypto_key_iam_member
|
||||
@ -2257,6 +2446,7 @@ syn keyword terraResourceTypeBI
|
||||
\ google_logging_billing_account_sink
|
||||
\ google_logging_folder_exclusion
|
||||
\ google_logging_folder_sink
|
||||
\ google_logging_metric
|
||||
\ google_logging_organization_exclusion
|
||||
\ google_logging_organization_sink
|
||||
\ google_logging_project_exclusion
|
||||
@ -2292,6 +2482,7 @@ syn keyword terraResourceTypeBI
|
||||
\ google_resource_manager_lien
|
||||
\ google_runtimeconfig_config
|
||||
\ google_runtimeconfig_variable
|
||||
\ google_security_scanner_scan_config
|
||||
\ google_service_account
|
||||
\ google_service_account_iam_binding
|
||||
\ google_service_account_iam_member
|
||||
@ -2329,6 +2520,12 @@ syn keyword terraResourceTypeBI
|
||||
\ grafana_data_source
|
||||
\ grafana_folder
|
||||
\ grafana_organization
|
||||
\ gridscale_ipv4
|
||||
\ gridscale_ipv6
|
||||
\ gridscale_network
|
||||
\ gridscale_server
|
||||
\ gridscale_sshkey
|
||||
\ gridscale_storage
|
||||
\ hcloud_floating_ip
|
||||
\ hcloud_floating_ip_assignment
|
||||
\ hcloud_rdns
|
||||
@ -2451,17 +2648,6 @@ syn keyword terraResourceTypeBI
|
||||
\ icinga2_notification
|
||||
\ icinga2_service
|
||||
\ icinga2_user
|
||||
\ ignition_config
|
||||
\ ignition_directory
|
||||
\ ignition_disk
|
||||
\ ignition_file
|
||||
\ ignition_filesystem
|
||||
\ ignition_group
|
||||
\ ignition_link
|
||||
\ ignition_networkd_unit
|
||||
\ ignition_raid
|
||||
\ ignition_systemd_unit
|
||||
\ ignition_user
|
||||
\ influxdb_continuous_query
|
||||
\ influxdb_database
|
||||
\ influxdb_user
|
||||
@ -2494,8 +2680,9 @@ syn keyword terraResourceTypeBI
|
||||
\ kubernetes_config_map
|
||||
\ kubernetes_daemonset
|
||||
\ kubernetes_deployment
|
||||
\ kubernetes_endpoint
|
||||
\ kubernetes_endpoints
|
||||
\ kubernetes_horizontal_pod_autoscaler
|
||||
\ kubernetes_ingress
|
||||
\ kubernetes_limit_range
|
||||
\ kubernetes_namespace
|
||||
\ kubernetes_network_policy
|
||||
@ -2523,6 +2710,7 @@ syn keyword terraResourceTypeBI
|
||||
\ linode_nodebalancer
|
||||
\ linode_nodebalancer_config
|
||||
\ linode_nodebalancer_node
|
||||
\ linode_rdns
|
||||
\ linode_sshkey
|
||||
\ linode_stackscript
|
||||
\ linode_token
|
||||
@ -2899,6 +3087,7 @@ syn keyword terraResourceTypeBI
|
||||
\ opentelekomcloud_compute_volume_attach_v2
|
||||
\ opentelekomcloud_csbs_backup_policy_v1
|
||||
\ opentelekomcloud_csbs_backup_v1
|
||||
\ opentelekomcloud_css_cluster_v1
|
||||
\ opentelekomcloud_cts_tracker_v1
|
||||
\ opentelekomcloud_dcs_instance_v1
|
||||
\ opentelekomcloud_deh_host_v1
|
||||
@ -2945,6 +3134,7 @@ syn keyword terraResourceTypeBI
|
||||
\ opentelekomcloud_networking_vip_associate_v2
|
||||
\ opentelekomcloud_networking_vip_v2
|
||||
\ opentelekomcloud_rds_instance_v1
|
||||
\ opentelekomcloud_rds_instance_v3
|
||||
\ opentelekomcloud_rts_software_config_v1
|
||||
\ opentelekomcloud_rts_software_deployment_v1
|
||||
\ opentelekomcloud_rts_stack_resource_v1
|
||||
@ -3116,7 +3306,9 @@ syn keyword terraResourceTypeBI
|
||||
\ panos_zone
|
||||
\ panos_zone_entry
|
||||
\ postgresql_database
|
||||
\ postgresql_default_privileges
|
||||
\ postgresql_extension
|
||||
\ postgresql_grant
|
||||
\ postgresql_role
|
||||
\ postgresql_schema
|
||||
\ powerdns_record
|
||||
@ -3141,6 +3333,29 @@ syn keyword terraResourceTypeBI
|
||||
\ rabbitmq_queue
|
||||
\ rabbitmq_user
|
||||
\ rabbitmq_vhost
|
||||
\ rancher2_auth_config_activedirectory
|
||||
\ rancher2_auth_config_adfs
|
||||
\ rancher2_auth_config_azuread
|
||||
\ rancher2_auth_config_freeipa
|
||||
\ rancher2_auth_config_github
|
||||
\ rancher2_auth_config_openldap
|
||||
\ rancher2_auth_config_ping
|
||||
\ rancher2_bootstrap
|
||||
\ rancher2_catalog
|
||||
\ rancher2_cloud_credential
|
||||
\ rancher2_cluster
|
||||
\ rancher2_cluster_driver
|
||||
\ rancher2_cluster_logging
|
||||
\ rancher2_cluster_role_template_binding
|
||||
\ rancher2_etcd_backup
|
||||
\ rancher2_namespace
|
||||
\ rancher2_node_driver
|
||||
\ rancher2_node_pool
|
||||
\ rancher2_node_template
|
||||
\ rancher2_project
|
||||
\ rancher2_project_logging
|
||||
\ rancher2_project_role_template_binding
|
||||
\ rancher2_setting
|
||||
\ rancher_certificate
|
||||
\ rancher_environment
|
||||
\ rancher_host
|
||||
@ -3171,6 +3386,7 @@ syn keyword terraResourceTypeBI
|
||||
\ rightscale_server_array
|
||||
\ rightscale_ssh_key
|
||||
\ rightscale_subnet
|
||||
\ rundeck_acl_policy
|
||||
\ rundeck_job
|
||||
\ rundeck_private_key
|
||||
\ rundeck_project
|
||||
@ -3273,12 +3489,19 @@ syn keyword terraResourceTypeBI
|
||||
\ tencentcloud_cbs_storage_attachment
|
||||
\ tencentcloud_container_cluster
|
||||
\ tencentcloud_container_cluster_instance
|
||||
\ tencentcloud_cos_bucket
|
||||
\ tencentcloud_cos_bucket_object
|
||||
\ tencentcloud_dnat
|
||||
\ tencentcloud_eip
|
||||
\ tencentcloud_eip_association
|
||||
\ tencentcloud_instance
|
||||
\ tencentcloud_key_pair
|
||||
\ tencentcloud_lb
|
||||
\ tencentcloud_mysql_account
|
||||
\ tencentcloud_mysql_account_privilege
|
||||
\ tencentcloud_mysql_backup_policy
|
||||
\ tencentcloud_mysql_instance
|
||||
\ tencentcloud_mysql_readonly_instance
|
||||
\ tencentcloud_nat_gateway
|
||||
\ tencentcloud_route_entry
|
||||
\ tencentcloud_route_table
|
||||
@ -3385,6 +3608,7 @@ syn keyword terraResourceTypeBI
|
||||
\ vault_pki_secret_backend
|
||||
\ vault_pki_secret_backend_cert
|
||||
\ vault_pki_secret_backend_config_ca
|
||||
\ vault_pki_secret_backend_config_urls
|
||||
\ vault_pki_secret_backend_intermediate_cert_request
|
||||
\ vault_pki_secret_backend_intermediate_set_signed
|
||||
\ vault_pki_secret_backend_role
|
||||
@ -3404,6 +3628,7 @@ syn keyword terraResourceTypeBI
|
||||
\ vcd_catalog_media
|
||||
\ vcd_dnat
|
||||
\ vcd_edgegateway_vpn
|
||||
\ vcd_external_network
|
||||
\ vcd_firewall_rules
|
||||
\ vcd_independent_disk
|
||||
\ vcd_inserted_media
|
||||
@ -3411,10 +3636,12 @@ syn keyword terraResourceTypeBI
|
||||
\ vcd_network_isolated
|
||||
\ vcd_network_routed
|
||||
\ vcd_org
|
||||
\ vcd_org_vdc
|
||||
\ vcd_snat
|
||||
\ vcd_vapp
|
||||
\ vcd_vapp_network
|
||||
\ vcd_vapp_vm
|
||||
\ vra7_deployment
|
||||
\ vsphere_compute_cluster
|
||||
\ vsphere_compute_cluster_host_group
|
||||
\ vsphere_compute_cluster_vm_affinity_rule
|
||||
@ -3464,6 +3691,7 @@ syn keyword terraResourceTypeBI
|
||||
\ yandex_resourcemanager_folder_iam_member
|
||||
\ yandex_resourcemanager_folder_iam_policy
|
||||
\ yandex_vpc_network
|
||||
\ yandex_vpc_route_table
|
||||
\ yandex_vpc_subnet
|
||||
""" end resources
|
||||
|
||||
@ -3497,6 +3725,10 @@ syn region terraProvisionerName start=/"/ end=/"/ nextgroup=terraProvisionerBloc
|
||||
syn match terraModule /\<module\>/ nextgroup=terraModuleName skipwhite
|
||||
syn region terraModuleName start=/"/ end=/"/ nextgroup=terraModuleBlock skipwhite
|
||||
|
||||
""" dynamic (HCL2)
|
||||
syn match terraDynamic /\<dynamic\>/ nextgroup=terraDynamicName skipwhite
|
||||
syn region terraDynamicName start=/"/ end=/"/ nextgroup=terraDynamicBlock skipwhite
|
||||
|
||||
""" misc.
|
||||
syn match terraValueDec "\<[0-9]\+\([kKmMgG]b\?\)\?\>"
|
||||
syn match terraValueHexaDec "\<0x[0-9a-f]\+\([kKmMgG]b\?\)\?\>"
|
||||
@ -3513,6 +3745,18 @@ syn region terraValueFunction matchgroup=terraBrackets start=/[a-z]\+(/ end=/)/
|
||||
" var.map["foo"]
|
||||
syn region terraValueVarSubscript start=/\(\<var\|\<module\)\.[a-z0-9_-]\+\[/ end=/\]/ contains=terraValueString,terraValueFunction,terraValueVarSubscript contained
|
||||
|
||||
""" HCL2
|
||||
syn keyword terraContent content
|
||||
syn keyword terraRepeat for in
|
||||
syn keyword terraConditional if
|
||||
syn keyword terraPrimitiveType string bool number
|
||||
syn keyword terraStructuralType object tuple
|
||||
syn keyword terraCollectionType list map set
|
||||
syn keyword terraValueNull null
|
||||
|
||||
""" Terraform v0.12
|
||||
syn keyword terraTodo contained TF-UPGRADE-TODO
|
||||
|
||||
hi def link terraComment Comment
|
||||
hi def link terraTodo Todo
|
||||
hi def link terraBrackets Operator
|
||||
@ -3540,5 +3784,14 @@ hi def link terraModule Structure
|
||||
hi def link terraModuleName String
|
||||
hi def link terraValueFunction Identifier
|
||||
hi def link terraValueVarSubscript Identifier
|
||||
hi def link terraDynamic Structure
|
||||
hi def link terraDynamicName String
|
||||
hi def link terraContent Structure
|
||||
hi def link terraRepeat Repeat
|
||||
hi def link terraConditional Conditional
|
||||
hi def link terraPrimitiveType Type
|
||||
hi def link terraStructuralType Type
|
||||
hi def link terraCollectionType Type
|
||||
hi def link terraValueNull Constant
|
||||
|
||||
let b:current_syntax = "terraform"
|
||||
let b:current_syntax = 'terraform'
|
||||
|
@ -4,7 +4,7 @@ endif
|
||||
|
||||
" vifm syntax file
|
||||
" Maintainer: xaizek <xaizek@posteo.net>
|
||||
" Last Change: January 31, 2019
|
||||
" Last Change: June 3, 2019
|
||||
" Inspired By: Vim syntax file by Dr. Charles E. Campbell, Jr.
|
||||
|
||||
if exists('b:current_syntax')
|
||||
@ -78,7 +78,7 @@ syntax case ignore
|
||||
syntax keyword vifmHiGroups contained WildMenu Border Win CmdLine CurrLine
|
||||
\ OtherLine Directory Link Socket Device Executable Selected BrokenLink
|
||||
\ TopLine TopLineSel StatusLine JobLine SuggestBox Fifo ErrorMsg CmpMismatch
|
||||
\ AuxWin TabLine TabLineSel
|
||||
\ AuxWin OtherWin TabLine TabLineSel
|
||||
\ User1 User2 User3 User4 User5 User6 User7 User8 User9
|
||||
syntax keyword vifmHiStyles contained
|
||||
\ bold underline reverse inverse standout italic none
|
||||
|
Loading…
Reference in New Issue
Block a user