You've already forked vim-logrotate
handle inline scripts better
This commit is contained in:
@ -6,6 +6,12 @@ if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
syn region logRotateScript matchgroup=logRotateKeyword start="\s*\<firstaction\>" end="\<endscript\>" contains=NONE
|
||||
syn region logRotateScript matchgroup=logRotateKeyword start="\s*\<lastaction\>" end="\<endscript\>" contains=NONE
|
||||
syn region logRotateScript matchgroup=logRotateKeyword start="\s*\<prerotate\>" end="\<endscript\>" contains=NONE
|
||||
syn region logRotateScript matchgroup=logRotateKeyword start="\s*\<postrotate\>" end="\<endscript\>" contains=NONE
|
||||
syn region logRotateScript matchgroup=logRotateKeyword start="\s*\<preremove\>" end="\<endscript\>" contains=NONE
|
||||
|
||||
runtime! syntax/conf.vim
|
||||
|
||||
" syn keyword logRotateTodo contained TODO FIXME XXX
|
||||
@ -34,4 +40,6 @@ hi def link logRotateKeyword Keyword
|
||||
" hi def link logRotateComment Comment
|
||||
" hi def link logRotateTodo Todo
|
||||
|
||||
hi def link logRotateScript Function
|
||||
|
||||
let b:current_syntax = 'logrotate'
|
||||
|
Reference in New Issue
Block a user