mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-08 11:33:52 -05:00
Update
This commit is contained in:
@@ -4,7 +4,7 @@ endif
|
|||||||
|
|
||||||
" Vim completion script
|
" Vim completion script
|
||||||
" Language: Clojure
|
" Language: Clojure
|
||||||
" Maintainer: Alex Vear <av@axvr.io>
|
" Maintainer: Alex Vear <alex@vear.uk>
|
||||||
" Former Maintainers: Sung Pae <self@sungpae.com>
|
" Former Maintainers: Sung Pae <self@sungpae.com>
|
||||||
" URL: https://github.com/clojure-vim/clojure.vim
|
" URL: https://github.com/clojure-vim/clojure.vim
|
||||||
" License: Vim (see :h license)
|
" License: Vim (see :h license)
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ endfunction
|
|||||||
" Returns 0 or 1 based on whether or not the given line number and column
|
" Returns 0 or 1 based on whether or not the given line number and column
|
||||||
" number pair is a string or comment
|
" number pair is a string or comment
|
||||||
function! s:is_string_or_comment(line, col)
|
function! s:is_string_or_comment(line, col)
|
||||||
return s:syntax_name(a:line, a:col) =~ '\%(String\|Comment\)'
|
return s:syntax_name(a:line, a:col) =~ '\%(String\|Comment\|CharList\)'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:syntax_name(line, col)
|
function! s:syntax_name(line, col)
|
||||||
@@ -149,7 +149,7 @@ function! s:find_last_pos(lnum, text, match)
|
|||||||
let peek_match = match(peek, a:match)
|
let peek_match = match(peek, a:match)
|
||||||
if peek_match == ss_match + 1
|
if peek_match == ss_match + 1
|
||||||
let syng = synIDattr(synID(a:lnum, c + ss_match, 1), 'name')
|
let syng = synIDattr(synID(a:lnum, c + ss_match, 1), 'name')
|
||||||
if syng !~ '\%(String\|Comment\)'
|
if syng !~ '\%(String\|Comment\|CharList\)'
|
||||||
return c + ss_match
|
return c + ss_match
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -169,7 +169,7 @@ function! elixir#indent#handle_top_of_file(context)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! elixir#indent#handle_starts_with_string_continuation(context)
|
function! elixir#indent#handle_starts_with_string_continuation(context)
|
||||||
if s:syntax_name(a:context.lnum, a:context.first_nb_char_idx) =~ '\(String\|Comment\)$'
|
if s:syntax_name(a:context.lnum, a:context.first_nb_char_idx) =~ '\(String\|Comment\|CharList\)$'
|
||||||
return -2
|
return -2
|
||||||
else
|
else
|
||||||
return -1
|
return -1
|
||||||
|
|||||||
@@ -275,7 +275,7 @@ endfunction
|
|||||||
function! go#config#MetalinterAutosaveEnabled() abort
|
function! go#config#MetalinterAutosaveEnabled() abort
|
||||||
let l:default = []
|
let l:default = []
|
||||||
if get(g:, 'go_metalinter_command', s:default_metalinter) == 'golangci-lint'
|
if get(g:, 'go_metalinter_command', s:default_metalinter) == 'golangci-lint'
|
||||||
let l:default = ['govet', 'golint']
|
let l:default = ['govet', 'revive']
|
||||||
endif
|
endif
|
||||||
|
|
||||||
return get(g:, 'go_metalinter_autosave_enabled', l:default)
|
return get(g:, 'go_metalinter_autosave_enabled', l:default)
|
||||||
@@ -284,14 +284,14 @@ endfunction
|
|||||||
function! go#config#MetalinterEnabled() abort
|
function! go#config#MetalinterEnabled() abort
|
||||||
let l:default = []
|
let l:default = []
|
||||||
if get(g:, 'go_metalinter_command', s:default_metalinter) == 'golangci-lint'
|
if get(g:, 'go_metalinter_command', s:default_metalinter) == 'golangci-lint'
|
||||||
let l:default = ['vet', 'golint', 'errcheck']
|
let l:default = ['vet', 'revive', 'errcheck']
|
||||||
endif
|
endif
|
||||||
|
|
||||||
return get(g:, 'go_metalinter_enabled', l:default)
|
return get(g:, 'go_metalinter_enabled', l:default)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! go#config#GolintBin() abort
|
function! go#config#GolintBin() abort
|
||||||
return get(g:, "go_golint_bin", "golint")
|
return get(g:, "go_golint_bin", "revive")
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! go#config#ErrcheckBin() abort
|
function! go#config#ErrcheckBin() abort
|
||||||
@@ -615,6 +615,10 @@ function! go#config#DebugMappings() abort
|
|||||||
return extend(l:user, l:default, 'keep')
|
return extend(l:user, l:default, 'keep')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! go#config#DocBalloon() abort
|
||||||
|
return get(g:, 'go_doc_balloon', 0)
|
||||||
|
endfunction
|
||||||
|
|
||||||
" Set the default value. A value of "1" is a shortcut for this, for
|
" Set the default value. A value of "1" is a shortcut for this, for
|
||||||
" compatibility reasons.
|
" compatibility reasons.
|
||||||
if exists("g:go_gorename_prefill") && g:go_gorename_prefill == 1
|
if exists("g:go_gorename_prefill") && g:go_gorename_prefill == 1
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ endif
|
|||||||
|
|
||||||
" Helper functions for org.vim
|
" Helper functions for org.vim
|
||||||
"
|
"
|
||||||
" Maintainer: Alex Vear <av@axvr.io>
|
" Maintainer: Alex Vear <alex@vear.uk>
|
||||||
" License: Vim (see `:help license`)
|
" License: Vim (see `:help license`)
|
||||||
" Location: autoload/org.vim
|
" Location: autoload/org.vim
|
||||||
" Website: https://github.com/axvr/org.vim
|
" Website: https://github.com/axvr/org.vim
|
||||||
|
|||||||
@@ -172,6 +172,17 @@ func polyglot#ft#FTent()
|
|||||||
setf dtd
|
setf dtd
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
func polyglot#ft#ExCheck()
|
||||||
|
let lines = getline(1, min([line("$"), 100]))
|
||||||
|
if exists('g:filetype_euphoria')
|
||||||
|
exe 'setf ' . g:filetype_euphoria
|
||||||
|
elseif match(lines, '^--\|^ifdef\>\|^include\>') > -1
|
||||||
|
setf euphoria3
|
||||||
|
else
|
||||||
|
setf elixir
|
||||||
|
endif
|
||||||
|
endfunc
|
||||||
|
|
||||||
func polyglot#ft#EuphoriaCheck()
|
func polyglot#ft#EuphoriaCheck()
|
||||||
if exists('g:filetype_euphoria')
|
if exists('g:filetype_euphoria')
|
||||||
exe 'setf ' . g:filetype_euphoria
|
exe 'setf ' . g:filetype_euphoria
|
||||||
|
|||||||
@@ -257,7 +257,7 @@ let s:globs = {
|
|||||||
\ 'jam': '*.jpl,*.jpr,Prl*.*,JAM*.*',
|
\ 'jam': '*.jpl,*.jpr,Prl*.*,JAM*.*',
|
||||||
\ 'java': '*.java,*.jav',
|
\ 'java': '*.java,*.jav',
|
||||||
\ 'javacc': '*.jj,*.jjt',
|
\ 'javacc': '*.jj,*.jjt',
|
||||||
\ 'javascript': '*.js,*._js,*.bones,*.cjs,*.es,*.es6,*.frag,*.gs,*.jake,*.jsb,*.jscad,*.jsfl,*.jsm,*.jss,*.jsx,*.mjs,*.njs,*.pac,*.sjs,*.ssjs,*.xsjs,*.xsjslib,*.javascript,Jakefile',
|
\ 'javascript': '*.js,*._js,*.bones,*.cjs,*.es,*.es6,*.frag,*.gs,*.jake,*.javascript,*.jsb,*.jscad,*.jsfl,*.jsm,*.jss,*.jsx,*.mjs,*.njs,*.pac,*.sjs,*.ssjs,*.xsjs,*.xsjslib,Jakefile',
|
||||||
\ 'javascriptreact': '*.jsx',
|
\ 'javascriptreact': '*.jsx',
|
||||||
\ 'jess': '*.clp',
|
\ 'jess': '*.clp',
|
||||||
\ 'jgraph': '*.jgr',
|
\ 'jgraph': '*.jgr',
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ function! zig#fmt#Format() abort
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let cmdline = 'zig fmt --stdin'
|
let cmdline = 'zig fmt --stdin --ast-check'
|
||||||
let current_buf = bufnr('')
|
let current_buf = bufnr('')
|
||||||
|
|
||||||
" The formatted code is output on stdout, the errors go on stderr.
|
" The formatted code is output on stdout, the errors go on stderr.
|
||||||
@@ -26,8 +26,19 @@ function! zig#fmt#Format() abort
|
|||||||
else
|
else
|
||||||
silent let out = split(system(cmdline, current_buf))
|
silent let out = split(system(cmdline, current_buf))
|
||||||
endif
|
endif
|
||||||
|
if len(out) == 1
|
||||||
|
if out[0] == "error: unrecognized parameter: '--ast-check'"
|
||||||
|
let cmdline = 'zig fmt --stdin'
|
||||||
|
if exists('*systemlist')
|
||||||
|
silent let out = systemlist(cmdline, current_buf)
|
||||||
|
else
|
||||||
|
silent let out = split(system(cmdline, current_buf))
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
let err = v:shell_error
|
let err = v:shell_error
|
||||||
|
|
||||||
|
|
||||||
if err == 0
|
if err == 0
|
||||||
" remove undo point caused via BufWritePre.
|
" remove undo point caused via BufWritePre.
|
||||||
try | silent undojoin | catch | endtry
|
try | silent undojoin | catch | endtry
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
" Vim support file to detect file types
|
" Vim support file to detect file types
|
||||||
"
|
"
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
" Last Change: 2021 Apr 17
|
" Last Change: 2021 Jun 13
|
||||||
|
|
||||||
" Listen very carefully, I will say this only once
|
" Listen very carefully, I will say this only once
|
||||||
if exists("did_load_filetypes")
|
if exists("did_load_filetypes")
|
||||||
@@ -393,7 +393,7 @@ au BufNewFile,BufRead *.cfm,*.cfi,*.cfc setf cf
|
|||||||
" Configure scripts
|
" Configure scripts
|
||||||
au BufNewFile,BufRead configure.in,configure.ac setf config
|
au BufNewFile,BufRead configure.in,configure.ac setf config
|
||||||
|
|
||||||
" CUDA Cumpute Unified Device Architecture
|
" CUDA Compute Unified Device Architecture
|
||||||
au BufNewFile,BufRead *.cu,*.cuh setf cuda
|
au BufNewFile,BufRead *.cu,*.cuh setf cuda
|
||||||
|
|
||||||
" Dockerfile; Podman uses the same syntax with name Containerfile
|
" Dockerfile; Podman uses the same syntax with name Containerfile
|
||||||
@@ -408,8 +408,15 @@ au BufNewFile,BufRead *enlightenment/*.cfg setf c
|
|||||||
" Eterm
|
" Eterm
|
||||||
au BufNewFile,BufRead *Eterm/*.cfg setf eterm
|
au BufNewFile,BufRead *Eterm/*.cfg setf eterm
|
||||||
|
|
||||||
|
" Elixir or Euphoria
|
||||||
|
au BufNewFile,BufRead *.ex call polyglot#ft#ExCheck()
|
||||||
|
|
||||||
|
" Elixir
|
||||||
|
au BufRead,BufNewFile mix.lock,*.exs setf elixir
|
||||||
|
au BufRead,BufNewFile *.eex,*.leex setf eelixir
|
||||||
|
|
||||||
" Euphoria 3 or 4
|
" Euphoria 3 or 4
|
||||||
au BufNewFile,BufRead *.eu,*.ew,*.ex,*.exu,*.exw call polyglot#ft#EuphoriaCheck()
|
au BufNewFile,BufRead *.eu,*.ew,*.exu,*.exw call polyglot#ft#EuphoriaCheck()
|
||||||
if has("fname_case")
|
if has("fname_case")
|
||||||
au BufNewFile,BufRead *.EU,*.EW,*.EX,*.EXU,*.EXW call polyglot#ft#EuphoriaCheck()
|
au BufNewFile,BufRead *.EU,*.EW,*.EX,*.EXU,*.EXW call polyglot#ft#EuphoriaCheck()
|
||||||
endif
|
endif
|
||||||
@@ -855,6 +862,12 @@ au BufNewFile,BufRead *.jov,*.j73,*.jovial setf jovial
|
|||||||
" JSON
|
" JSON
|
||||||
au BufNewFile,BufRead *.json,*.jsonp,*.webmanifest setf json
|
au BufNewFile,BufRead *.json,*.jsonp,*.webmanifest setf json
|
||||||
|
|
||||||
|
" JSON Patch (RFC 6902)
|
||||||
|
au BufNewFile,BufRead *.json-patch setf json
|
||||||
|
|
||||||
|
" Jupyter Notebook is also json
|
||||||
|
au BufNewFile,BufRead *.ipynb setf json
|
||||||
|
|
||||||
" Kixtart
|
" Kixtart
|
||||||
au BufNewFile,BufRead *.kix setf kix
|
au BufNewFile,BufRead *.kix setf kix
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ endif
|
|||||||
|
|
||||||
" Vim filetype plugin file
|
" Vim filetype plugin file
|
||||||
" Language: Clojure
|
" Language: Clojure
|
||||||
" Maintainer: Alex Vear <av@axvr.io>
|
" Maintainer: Alex Vear <alex@vear.uk>
|
||||||
" Former Maintainers: Sung Pae <self@sungpae.com>
|
" Former Maintainers: Sung Pae <self@sungpae.com>
|
||||||
" Meikel Brandmeyer <mb@kotka.de>
|
" Meikel Brandmeyer <mb@kotka.de>
|
||||||
" URL: https://github.com/clojure-vim/clojure.vim
|
" URL: https://github.com/clojure-vim/clojure.vim
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ endif
|
|||||||
|
|
||||||
" Vim filetype plugin for GNU Emacs' Org mode
|
" Vim filetype plugin for GNU Emacs' Org mode
|
||||||
"
|
"
|
||||||
" Maintainer: Alex Vear <av@axvr.io>
|
" Maintainer: Alex Vear <alex@vear.uk>
|
||||||
" License: Vim (see `:help license`)
|
" License: Vim (see `:help license`)
|
||||||
" Location: ftplugin/org.vim
|
" Location: ftplugin/org.vim
|
||||||
" Website: https://github.com/axvr/org.vim
|
" Website: https://github.com/axvr/org.vim
|
||||||
" Last Change: 2020-01-04
|
" Last Change: 2020-02-15
|
||||||
"
|
"
|
||||||
" Reference Specification: Org mode manual
|
" Reference Specification: Org mode manual
|
||||||
" GNU Info: `$ info Org`
|
" GNU Info: `$ info Org`
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ endif
|
|||||||
|
|
||||||
" Vim filetype plugin for GNU Emacs' Outline mode
|
" Vim filetype plugin for GNU Emacs' Outline mode
|
||||||
"
|
"
|
||||||
" Maintainer: Alex Vear <av@axvr.io>
|
" Maintainer: Alex Vear <alex@vear.uk>
|
||||||
" License: Vim (see `:help license`)
|
" License: Vim (see `:help license`)
|
||||||
" Location: ftplugin/outline.vim
|
" Location: ftplugin/outline.vim
|
||||||
" Website: https://github.com/axvr/org.vim
|
" Website: https://github.com/axvr/org.vim
|
||||||
|
|||||||
@@ -47,10 +47,8 @@ if exists("*json_decode") && executable('zig')
|
|||||||
unlet! s:env
|
unlet! s:env
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let &l:formatprg = 'zig fmt --stdin'
|
|
||||||
|
|
||||||
let b:undo_ftplugin =
|
let b:undo_ftplugin =
|
||||||
\ 'setl isk< et< ts< sts< sw< fo< sua< mp< com< cms< inex< inc< pa< fp<'
|
\ 'setl isk< et< ts< sts< sw< fo< sua< mp< com< cms< inex< inc< pa<'
|
||||||
|
|
||||||
let &cpo = s:cpo_orig
|
let &cpo = s:cpo_orig
|
||||||
unlet s:cpo_orig
|
unlet s:cpo_orig
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ endif
|
|||||||
|
|
||||||
" Vim indent file
|
" Vim indent file
|
||||||
" Language: Clojure
|
" Language: Clojure
|
||||||
" Maintainer: Alex Vear <av@axvr.io>
|
" Maintainer: Alex Vear <alex@vear.uk>
|
||||||
" Former Maintainers: Sung Pae <self@sungpae.com>
|
" Former Maintainers: Sung Pae <self@sungpae.com>
|
||||||
" Meikel Brandmeyer <mb@kotka.de>
|
" Meikel Brandmeyer <mb@kotka.de>
|
||||||
" URL: https://github.com/clojure-vim/clojure.vim
|
" URL: https://github.com/clojure-vim/clojure.vim
|
||||||
|
|||||||
@@ -49,10 +49,10 @@ function! GetZigIndent(lnum)
|
|||||||
let prevLineNum = prevnonblank(a:lnum-1)
|
let prevLineNum = prevnonblank(a:lnum-1)
|
||||||
let prevLine = getline(prevLineNum)
|
let prevLine = getline(prevLineNum)
|
||||||
|
|
||||||
" for lines that look line
|
" for lines that look like
|
||||||
" },
|
" },
|
||||||
" };
|
" };
|
||||||
" try treat them the same as a }
|
" try treating them the same as a }
|
||||||
if prevLine =~ '\v^\s*},$'
|
if prevLine =~ '\v^\s*},$'
|
||||||
if currentLine =~ '\v^\s*};$' || currentLine =~ '\v^\s*}$'
|
if currentLine =~ '\v^\s*};$' || currentLine =~ '\v^\s*}$'
|
||||||
return indent(prevLineNum) - 4
|
return indent(prevLineNum) - 4
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ endif
|
|||||||
|
|
||||||
" Vim indent file
|
" Vim indent file
|
||||||
" Language: Clojure
|
" Language: Clojure
|
||||||
" Maintainer: Alex Vear <av@axvr.io>
|
" Maintainer: Alex Vear <alex@vear.uk>
|
||||||
" Former Maintainers: Sung Pae <self@sungpae.com>
|
" Former Maintainers: Sung Pae <self@sungpae.com>
|
||||||
" Meikel Brandmeyer <mb@kotka.de>
|
" Meikel Brandmeyer <mb@kotka.de>
|
||||||
" Toralf Wittner <toralf.wittner@gmail.com>
|
" Toralf Wittner <toralf.wittner@gmail.com>
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ syn region elixirStruct matchgroup=elixirStructDelimiter start="%\(\w\+{\)\@=" e
|
|||||||
|
|
||||||
syn region elixirMap matchgroup=elixirMapDelimiter start="%{" end="}" contains=ALLBUT,@elixirNotTop fold
|
syn region elixirMap matchgroup=elixirMapDelimiter start="%{" end="}" contains=ALLBUT,@elixirNotTop fold
|
||||||
|
|
||||||
syn region elixirString matchgroup=elixirStringDelimiter start=+\z('\)+ end=+\z1+ skip=+\\\\\|\\\z1+ contains=@Spell,@elixirStringContained
|
syn region elixirCharList matchgroup=elixirCharListDelimiter start=+\z('\)+ end=+\z1+ skip=+\\\\\|\\\z1+ contains=@Spell,@elixirStringContained
|
||||||
syn region elixirString matchgroup=elixirStringDelimiter start=+\z("\)+ end=+\z1+ skip=+\\\\\|\\\z1+ contains=@Spell,@elixirStringContained
|
syn region elixirString matchgroup=elixirStringDelimiter start=+\z("\)+ end=+\z1+ skip=+\\\\\|\\\z1+ contains=@Spell,@elixirStringContained
|
||||||
syn region elixirString matchgroup=elixirStringDelimiter start=+\z('''\)+ end=+^\s*\z1+ contains=@Spell,@elixirStringContained
|
syn region elixirString matchgroup=elixirStringDelimiter start=+\z('''\)+ end=+^\s*\z1+ contains=@Spell,@elixirStringContained
|
||||||
syn region elixirString matchgroup=elixirStringDelimiter start=+\z("""\)+ end=+^\s*\z1+ contains=@Spell,@elixirStringContained
|
syn region elixirString matchgroup=elixirStringDelimiter start=+\z("""\)+ end=+^\s*\z1+ contains=@Spell,@elixirStringContained
|
||||||
@@ -92,7 +92,7 @@ syn match elixirString "\(\w\)\@<!?\%(\\\(x\d{1,2}\|\h{1,2}\h\@!\>\|
|
|||||||
syn region elixirBlock matchgroup=elixirBlockDefinition start="\<do\>:\@!" end="\<end\>" contains=ALLBUT,@elixirNotTop fold
|
syn region elixirBlock matchgroup=elixirBlockDefinition start="\<do\>:\@!" end="\<end\>" contains=ALLBUT,@elixirNotTop fold
|
||||||
syn region elixirAnonymousFunction matchgroup=elixirBlockDefinition start="\<fn\>" end="\<end\>" contains=ALLBUT,@elixirNotTop fold
|
syn region elixirAnonymousFunction matchgroup=elixirBlockDefinition start="\<fn\>" end="\<end\>" contains=ALLBUT,@elixirNotTop fold
|
||||||
|
|
||||||
syn region elixirArguments start="(" end=")" contained contains=elixirOperator,elixirAtom,elixirPseudoVariable,elixirAlias,elixirBoolean,elixirVariable,elixirUnusedVariable,elixirNumber,elixirDocString,elixirAtomInterpolated,elixirRegex,elixirString,elixirStringDelimiter,elixirRegexDelimiter,elixirInterpolationDelimiter,elixirSigil,elixirAnonymousFunction,elixirComment
|
syn region elixirArguments start="(" end=")" contained contains=elixirOperator,elixirAtom,elixirPseudoVariable,elixirAlias,elixirBoolean,elixirVariable,elixirUnusedVariable,elixirNumber,elixirDocString,elixirAtomInterpolated,elixirRegex,elixirString,elixirStringDelimiter,elixirRegexDelimiter,elixirInterpolationDelimiter,elixirSigil,elixirAnonymousFunction,elixirComment,elixirCharList,elixirCharListDelimiter
|
||||||
|
|
||||||
syn match elixirDelimEscape "\\[(<{\[)>}\]/\"'|]" transparent display contained contains=NONE
|
syn match elixirDelimEscape "\\[(<{\[)>}\]/\"'|]" transparent display contained contains=NONE
|
||||||
|
|
||||||
@@ -234,10 +234,12 @@ hi def link elixirRegexCharClass elixirSpecial
|
|||||||
hi def link elixirRegexQuantifier elixirSpecial
|
hi def link elixirRegexQuantifier elixirSpecial
|
||||||
hi def link elixirSpecial Special
|
hi def link elixirSpecial Special
|
||||||
hi def link elixirString String
|
hi def link elixirString String
|
||||||
|
hi def link elixirCharList String
|
||||||
hi def link elixirSigil String
|
hi def link elixirSigil String
|
||||||
hi def link elixirDocStringDelimiter elixirStringDelimiter
|
hi def link elixirDocStringDelimiter elixirStringDelimiter
|
||||||
hi def link elixirDocSigilDelimiter elixirSigilDelimiter
|
hi def link elixirDocSigilDelimiter elixirSigilDelimiter
|
||||||
hi def link elixirStringDelimiter Delimiter
|
hi def link elixirStringDelimiter Delimiter
|
||||||
|
hi def link elixirCharListDelimiter Delimiter
|
||||||
hi def link elixirRegexDelimiter Delimiter
|
hi def link elixirRegexDelimiter Delimiter
|
||||||
hi def link elixirInterpolationDelimiter Delimiter
|
hi def link elixirInterpolationDelimiter Delimiter
|
||||||
hi def link elixirSigilDelimiter Delimiter
|
hi def link elixirSigilDelimiter Delimiter
|
||||||
|
|||||||
@@ -124,8 +124,8 @@ syntax match juliaColon display ":"
|
|||||||
" A dot can introduce a sort of 'environment' such that words after it are not
|
" A dot can introduce a sort of 'environment' such that words after it are not
|
||||||
" recognized as keywords. This has low precedence so that it can be overridden
|
" recognized as keywords. This has low precedence so that it can be overridden
|
||||||
" by operators
|
" by operators
|
||||||
syntax match juliaDotted transparent "\.\s*[^.]" contains=@juliaExprsNodot
|
syntax match juliaDotted transparent "\.\s*[^])}.]" contains=@juliaExprsNodot
|
||||||
syntax match juliaDottedT contained transparent "\.\s*[^.]" contains=@juliaExprsNodot,juliaType
|
syntax match juliaDottedT contained transparent "\.\s*[^])}.]" contains=@juliaExprsNodot,juliaType
|
||||||
|
|
||||||
syntax match juliaErrorPar display "[])}]"
|
syntax match juliaErrorPar display "[])}]"
|
||||||
syntax match juliaErrorEnd display "\<end\>"
|
syntax match juliaErrorEnd display "\<end\>"
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ endif
|
|||||||
|
|
||||||
" Vim syntax file for GNU Emacs' Org mode
|
" Vim syntax file for GNU Emacs' Org mode
|
||||||
"
|
"
|
||||||
" Maintainer: Alex Vear <av@axvr.io>
|
" Maintainer: Alex Vear <alex@vear.uk>
|
||||||
" License: Vim (see `:help license`)
|
" License: Vim (see `:help license`)
|
||||||
" Location: syntax/org.vim
|
" Location: syntax/org.vim
|
||||||
" Website: https://github.com/axvr/org.vim
|
" Website: https://github.com/axvr/org.vim
|
||||||
" Last Change: 2020-01-05
|
" Last Change: 2021-03-11
|
||||||
"
|
"
|
||||||
" Reference Specification: Org mode manual
|
" Reference Specification: Org mode manual
|
||||||
" GNU Info: `$ info Org`
|
" GNU Info: `$ info Org`
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ endif
|
|||||||
|
|
||||||
" Vim syntax file for GNU Emacs' Outline mode
|
" Vim syntax file for GNU Emacs' Outline mode
|
||||||
"
|
"
|
||||||
" Maintainer: Alex Vear <av@axvr.io>
|
" Maintainer: Alex Vear <alex@vear.uk>
|
||||||
" License: Vim (see `:help license`)
|
" License: Vim (see `:help license`)
|
||||||
" Location: syntax/outline.vim
|
" Location: syntax/outline.vim
|
||||||
" Website: https://github.com/axvr/org.vim
|
" Website: https://github.com/axvr/org.vim
|
||||||
" Last Change: 2019-09-28
|
" Last Change: 2020-08-24
|
||||||
"
|
"
|
||||||
" Reference Specification: GNU Emacs Manual, section 'Outline Mode'
|
" Reference Specification: GNU Emacs Manual, section 'Outline Mode'
|
||||||
" GNU Info: `$ info Emacs Outline Mode`
|
" GNU Info: `$ info Emacs Outline Mode`
|
||||||
|
|||||||
@@ -137,10 +137,10 @@ syn match rubyCurlyBraceEscape "\\[{}]" contained display
|
|||||||
syn match rubyAngleBracketEscape "\\[<>]" contained display
|
syn match rubyAngleBracketEscape "\\[<>]" contained display
|
||||||
syn match rubySquareBracketEscape "\\[[\]]" contained display
|
syn match rubySquareBracketEscape "\\[[\]]" contained display
|
||||||
|
|
||||||
syn region rubyNestedParentheses start="(" skip="\\\\\|\\)" matchgroup=rubyString end=")" transparent contained
|
syn region rubyNestedParentheses start="(" skip="\\\\\|\\)" end=")" transparent contained
|
||||||
syn region rubyNestedCurlyBraces start="{" skip="\\\\\|\\}" matchgroup=rubyString end="}" transparent contained
|
syn region rubyNestedCurlyBraces start="{" skip="\\\\\|\\}" end="}" transparent contained
|
||||||
syn region rubyNestedAngleBrackets start="<" skip="\\\\\|\\>" matchgroup=rubyString end=">" transparent contained
|
syn region rubyNestedAngleBrackets start="<" skip="\\\\\|\\>" end=">" transparent contained
|
||||||
syn region rubyNestedSquareBrackets start="\[" skip="\\\\\|\\\]" matchgroup=rubyString end="\]" transparent contained
|
syn region rubyNestedSquareBrackets start="\[" skip="\\\\\|\\\]" end="\]" transparent contained
|
||||||
|
|
||||||
syn cluster rubySingleCharEscape contains=rubyBackslashEscape,rubyQuoteEscape,rubySpaceEscape,rubyParenthesisEscape,rubyCurlyBraceEscape,rubyAngleBracketEscape,rubySquareBracketEscape
|
syn cluster rubySingleCharEscape contains=rubyBackslashEscape,rubyQuoteEscape,rubySpaceEscape,rubyParenthesisEscape,rubyCurlyBraceEscape,rubyAngleBracketEscape,rubySquareBracketEscape
|
||||||
syn cluster rubyNestedBrackets contains=rubyNested.\+
|
syn cluster rubyNestedBrackets contains=rubyNested.\+
|
||||||
|
|||||||
@@ -94,8 +94,7 @@ let s:zig_syntax_keywords = {
|
|||||||
\ , "callconv"
|
\ , "callconv"
|
||||||
\ , "noalias"]
|
\ , "noalias"]
|
||||||
\ , 'zigBuiltinFn': ["align"
|
\ , 'zigBuiltinFn': ["align"
|
||||||
\ , "@add"
|
\ , "@addWithOverflow"
|
||||||
\ , "@WithOverflow"
|
|
||||||
\ , "@as"
|
\ , "@as"
|
||||||
\ , "@atomicLoad"
|
\ , "@atomicLoad"
|
||||||
\ , "@atomicStore"
|
\ , "@atomicStore"
|
||||||
@@ -107,7 +106,6 @@ let s:zig_syntax_keywords = {
|
|||||||
\ , "@cImport"
|
\ , "@cImport"
|
||||||
\ , "@cInclude"
|
\ , "@cInclude"
|
||||||
\ , "@cUndef"
|
\ , "@cUndef"
|
||||||
\ , "@canImplicitCast"
|
|
||||||
\ , "@clz"
|
\ , "@clz"
|
||||||
\ , "@cmpxchgWeak"
|
\ , "@cmpxchgWeak"
|
||||||
\ , "@cmpxchgStrong"
|
\ , "@cmpxchgStrong"
|
||||||
@@ -142,6 +140,7 @@ let s:zig_syntax_keywords = {
|
|||||||
\ , "@src"
|
\ , "@src"
|
||||||
\ , "@bitOffsetOf"
|
\ , "@bitOffsetOf"
|
||||||
\ , "@byteOffsetOf"
|
\ , "@byteOffsetOf"
|
||||||
|
\ , "@offsetOf"
|
||||||
\ , "@OpaqueType"
|
\ , "@OpaqueType"
|
||||||
\ , "@panic"
|
\ , "@panic"
|
||||||
\ , "@ptrCast"
|
\ , "@ptrCast"
|
||||||
@@ -155,8 +154,6 @@ let s:zig_syntax_keywords = {
|
|||||||
\ , "@setRuntimeSafety"
|
\ , "@setRuntimeSafety"
|
||||||
\ , "@setEvalBranchQuota"
|
\ , "@setEvalBranchQuota"
|
||||||
\ , "@setFloatMode"
|
\ , "@setFloatMode"
|
||||||
\ , "@setGlobalLinkage"
|
|
||||||
\ , "@setGlobalSection"
|
|
||||||
\ , "@shlExact"
|
\ , "@shlExact"
|
||||||
\ , "@This"
|
\ , "@This"
|
||||||
\ , "@hasDecl"
|
\ , "@hasDecl"
|
||||||
@@ -179,8 +176,6 @@ let s:zig_syntax_keywords = {
|
|||||||
\ , "@typeName"
|
\ , "@typeName"
|
||||||
\ , "@TypeOf"
|
\ , "@TypeOf"
|
||||||
\ , "@atomicRmw"
|
\ , "@atomicRmw"
|
||||||
\ , "@bytesToSlice"
|
|
||||||
\ , "@sliceToBytes"
|
|
||||||
\ , "@intToError"
|
\ , "@intToError"
|
||||||
\ , "@errorToInt"
|
\ , "@errorToInt"
|
||||||
\ , "@intToEnum"
|
\ , "@intToEnum"
|
||||||
|
|||||||
Reference in New Issue
Block a user