mirror of
https://github.com/amix/vimrc
synced 2025-06-30 20:05:01 +08:00
Updated plugins
This commit is contained in:
@ -3,7 +3,7 @@ if exists('b:current_syntax')
|
||||
endif
|
||||
|
||||
syn match aleFixerComment /^.*$/
|
||||
syn match aleFixerName /\(^\|, \)'[^']*'/
|
||||
syn match aleFixerName /\(^ *\|, \)'[^']*'/
|
||||
syn match aleFixerHelp /^See :help ale-fix-configuration/
|
||||
|
||||
hi def link aleFixerComment Comment
|
||||
|
30
sources_non_forked/ale/syntax/ale-info.vim
Normal file
30
sources_non_forked/ale/syntax/ale-info.vim
Normal file
@ -0,0 +1,30 @@
|
||||
if exists('b:current_syntax')
|
||||
finish
|
||||
endif
|
||||
|
||||
" Exhaustively list different ALE Info directives to match here.
|
||||
" This should hopefully avoid matching too eagerly.
|
||||
syn match aleInfoDirective /^ *Current Filetype:/
|
||||
syn match aleInfoDirective /^ *Available Linters:/
|
||||
syn match aleInfoDirective /^ *Enabled Linters:/
|
||||
syn match aleInfoDirective /^ *Ignored Linters:/
|
||||
syn match aleInfoDirective /^ *Suggested Fixers:/
|
||||
syn match aleInfoDirective /^ *Command History:/
|
||||
|
||||
syn match aleCommandNoOutput /^<<<NO OUTPUT RETURNED>>>$/
|
||||
|
||||
hi def link aleInfoDirective Title
|
||||
hi def link aleInfoDirective Title
|
||||
hi def link aleCommandNoOutput Comment
|
||||
|
||||
" Use Vim syntax highlighting for Vim options.
|
||||
unlet! b:current_syntax
|
||||
syntax include @srcVim syntax/vim.vim
|
||||
syntax region aleInfoVimRegionLinter matchgroup=aleInfoDirective start="^ *Linter Variables:$" end="^ $" contains=@srcVim
|
||||
syntax region aleInfoVimRegionGlobal matchgroup=aleInfoDirective start="^ *Global Variables:$" end="^ $" contains=@srcVim
|
||||
|
||||
unlet! b:current_syntax
|
||||
syntax include @srcAleFixSuggest syntax/ale-fix-suggest.vim
|
||||
syntax region aleInfoFixSuggestRegion matchgroup=aleInfoDirective start="^ *Suggested Fixers:$" end="^ $" contains=@srcAleFixSuggest
|
||||
|
||||
let b:current_syntax = 'ale-info'
|
Reference in New Issue
Block a user