updated for version 7.0089
This commit is contained in:
@ -1,13 +1,10 @@
|
||||
" Vim syntax file
|
||||
" Language: C
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2005 Jan 26
|
||||
" Last Change: 2005 Jun 20
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" Quit when a (custom) syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@ -298,63 +295,51 @@ endif
|
||||
exec "syn sync ccomment cComment minlines=" . b:c_minlines
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_c_syn_inits")
|
||||
if version < 508
|
||||
let did_c_syn_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
|
||||
HiLink cFormat cSpecial
|
||||
HiLink cCppString cString
|
||||
HiLink cCommentL cComment
|
||||
HiLink cCommentStart cComment
|
||||
HiLink cLabel Label
|
||||
HiLink cUserLabel Label
|
||||
HiLink cConditional Conditional
|
||||
HiLink cRepeat Repeat
|
||||
HiLink cCharacter Character
|
||||
HiLink cSpecialCharacter cSpecial
|
||||
HiLink cNumber Number
|
||||
HiLink cOctal Number
|
||||
HiLink cOctalZero PreProc " link this to Error if you want
|
||||
HiLink cFloat Float
|
||||
HiLink cOctalError cError
|
||||
HiLink cParenError cError
|
||||
HiLink cErrInParen cError
|
||||
HiLink cErrInBracket cError
|
||||
HiLink cCommentError cError
|
||||
HiLink cCommentStartError cError
|
||||
HiLink cSpaceError cError
|
||||
HiLink cSpecialError cError
|
||||
HiLink cOperator Operator
|
||||
HiLink cStructure Structure
|
||||
HiLink cStorageClass StorageClass
|
||||
HiLink cInclude Include
|
||||
HiLink cPreProc PreProc
|
||||
HiLink cDefine Macro
|
||||
HiLink cIncluded cString
|
||||
HiLink cError Error
|
||||
HiLink cStatement Statement
|
||||
HiLink cPreCondit PreCondit
|
||||
HiLink cType Type
|
||||
HiLink cConstant Constant
|
||||
HiLink cCommentString cString
|
||||
HiLink cComment2String cString
|
||||
HiLink cCommentSkip cComment
|
||||
HiLink cString String
|
||||
HiLink cComment Comment
|
||||
HiLink cSpecial SpecialChar
|
||||
HiLink cTodo Todo
|
||||
HiLink cCppSkip cCppOut
|
||||
HiLink cCppOut2 cCppOut
|
||||
HiLink cCppOut Comment
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
" Only used when an item doesn't have highlighting yet
|
||||
hi def link cFormat cSpecial
|
||||
hi def link cCppString cString
|
||||
hi def link cCommentL cComment
|
||||
hi def link cCommentStart cComment
|
||||
hi def link cLabel Label
|
||||
hi def link cUserLabel Label
|
||||
hi def link cConditional Conditional
|
||||
hi def link cRepeat Repeat
|
||||
hi def link cCharacter Character
|
||||
hi def link cSpecialCharacter cSpecial
|
||||
hi def link cNumber Number
|
||||
hi def link cOctal Number
|
||||
hi def link cOctalZero PreProc " link this to Error if you want
|
||||
hi def link cFloat Float
|
||||
hi def link cOctalError cError
|
||||
hi def link cParenError cError
|
||||
hi def link cErrInParen cError
|
||||
hi def link cErrInBracket cError
|
||||
hi def link cCommentError cError
|
||||
hi def link cCommentStartError cError
|
||||
hi def link cSpaceError cError
|
||||
hi def link cSpecialError cError
|
||||
hi def link cOperator Operator
|
||||
hi def link cStructure Structure
|
||||
hi def link cStorageClass StorageClass
|
||||
hi def link cInclude Include
|
||||
hi def link cPreProc PreProc
|
||||
hi def link cDefine Macro
|
||||
hi def link cIncluded cString
|
||||
hi def link cError Error
|
||||
hi def link cStatement Statement
|
||||
hi def link cPreCondit PreCondit
|
||||
hi def link cType Type
|
||||
hi def link cConstant Constant
|
||||
hi def link cCommentString cString
|
||||
hi def link cComment2String cString
|
||||
hi def link cCommentSkip cComment
|
||||
hi def link cString String
|
||||
hi def link cComment Comment
|
||||
hi def link cSpecial SpecialChar
|
||||
hi def link cTodo Todo
|
||||
hi def link cCppSkip cCppOut
|
||||
hi def link cCppOut2 cCppOut
|
||||
hi def link cCppOut Comment
|
||||
|
||||
let b:current_syntax = "c"
|
||||
|
||||
|
||||
@ -1,13 +1,10 @@
|
||||
" Vim syntax file
|
||||
" Language: generic configure file
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2001 Apr 25
|
||||
" Last Change: 2005 Jun 20
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" Quit when a (custom) syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@ -19,22 +16,10 @@ syn region confString start=+"+ skip=+\\\\\|\\"+ end=+"+ oneline
|
||||
syn region confString start=+'+ skip=+\\\\\|\\'+ end=+'+ oneline
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_conf_syntax_inits")
|
||||
if version < 508
|
||||
let did_conf_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
|
||||
HiLink confComment Comment
|
||||
HiLink confTodo Todo
|
||||
HiLink confString String
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
" Only used when an item doesn't have highlighting yet
|
||||
hi def link confComment Comment
|
||||
hi def link confTodo Todo
|
||||
hi def link confString String
|
||||
|
||||
let b:current_syntax = "conf"
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
" Vim syntax file
|
||||
" Language: CTRL-H (e.g., ASCII manpages)
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2001 Apr 25
|
||||
" Last Change: 2005 Jun 20
|
||||
|
||||
" Existing syntax is kept, this file can be used as an addition
|
||||
|
||||
@ -15,19 +15,9 @@ syntax match CtrlHBold /\(.\)\b\1/ contains=CtrlHHide
|
||||
syntax match CtrlHHide /.\b/ contained
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_ctrlh_syntax_inits")
|
||||
if version < 508
|
||||
let did_ctrlh_syntax_inits = 1
|
||||
hi link CtrlHHide Ignore
|
||||
hi CtrlHUnderline term=underline cterm=underline gui=underline
|
||||
hi CtrlHBold term=bold cterm=bold gui=bold
|
||||
else
|
||||
hi def link CtrlHHide Ignore
|
||||
hi def CtrlHUnderline term=underline cterm=underline gui=underline
|
||||
hi def CtrlHBold term=bold cterm=bold gui=bold
|
||||
endif
|
||||
endif
|
||||
" Only used when an item doesn't have highlighting yet
|
||||
hi def link CtrlHHide Ignore
|
||||
hi def CtrlHUnderline term=underline cterm=underline gui=underline
|
||||
hi def CtrlHBold term=bold cterm=bold gui=bold
|
||||
|
||||
" vim: ts=8
|
||||
|
||||
@ -1,13 +1,10 @@
|
||||
" Vim syntax file
|
||||
" Language: Diff (context or unified)
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2003 Apr 02
|
||||
" Last Change: 2005 Jun 20
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" Quit when a (custom) syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@ -43,35 +40,23 @@ syn match diffNewFile "^--- .*"
|
||||
syn match diffComment "^#.*"
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_diff_syntax_inits")
|
||||
if version < 508
|
||||
let did_diff_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
|
||||
HiLink diffOldFile diffFile
|
||||
HiLink diffNewFile diffFile
|
||||
HiLink diffFile Type
|
||||
HiLink diffOnly Constant
|
||||
HiLink diffIdentical Constant
|
||||
HiLink diffDiffer Constant
|
||||
HiLink diffBDiffer Constant
|
||||
HiLink diffIsA Constant
|
||||
HiLink diffNoEOL Constant
|
||||
HiLink diffCommon Constant
|
||||
HiLink diffRemoved Special
|
||||
HiLink diffChanged PreProc
|
||||
HiLink diffAdded Identifier
|
||||
HiLink diffLine Statement
|
||||
HiLink diffSubname PreProc
|
||||
HiLink diffComment Comment
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
" Only used when an item doesn't have highlighting yet
|
||||
hi def link diffOldFile diffFile
|
||||
hi def link diffNewFile diffFile
|
||||
hi def link diffFile Type
|
||||
hi def link diffOnly Constant
|
||||
hi def link diffIdentical Constant
|
||||
hi def link diffDiffer Constant
|
||||
hi def link diffBDiffer Constant
|
||||
hi def link diffIsA Constant
|
||||
hi def link diffNoEOL Constant
|
||||
hi def link diffCommon Constant
|
||||
hi def link diffRemoved Special
|
||||
hi def link diffChanged PreProc
|
||||
hi def link diffAdded Identifier
|
||||
hi def link diffLine Statement
|
||||
hi def link diffSubname PreProc
|
||||
hi def link diffComment Comment
|
||||
|
||||
let b:current_syntax = "diff"
|
||||
|
||||
|
||||
@ -1,13 +1,10 @@
|
||||
" Vim syntax file
|
||||
" Language: Vim help file
|
||||
" Maintainer: Bram Moolenaar (Bram@vim.org)
|
||||
" Last Change: 2005 Mar 31
|
||||
" Last Change: 2005 Jun 20
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" Quit when a (custom) syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@ -120,67 +117,55 @@ syn sync minlines=40
|
||||
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_help_syntax_inits")
|
||||
if version < 508
|
||||
let did_help_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
" Only used when an item doesn't have highlighting yet
|
||||
hi def link helpExampleStart helpIgnore
|
||||
hi def link helpIgnore Ignore
|
||||
hi def link helpHyperTextJump Subtitle
|
||||
hi def link helpHyperTextEntry String
|
||||
hi def link helpHeadline Statement
|
||||
hi def link helpHeader PreProc
|
||||
hi def link helpSectionDelim PreProc
|
||||
hi def link helpVim Identifier
|
||||
hi def link helpExample Comment
|
||||
hi def link helpOption Type
|
||||
hi def link helpNotVi Special
|
||||
hi def link helpSpecial Special
|
||||
hi def link helpNote Todo
|
||||
hi def link Subtitle Identifier
|
||||
|
||||
HiLink helpExampleStart helpIgnore
|
||||
HiLink helpIgnore Ignore
|
||||
HiLink helpHyperTextJump Subtitle
|
||||
HiLink helpHyperTextEntry String
|
||||
HiLink helpHeadline Statement
|
||||
HiLink helpHeader PreProc
|
||||
HiLink helpSectionDelim PreProc
|
||||
HiLink helpVim Identifier
|
||||
HiLink helpExample Comment
|
||||
HiLink helpOption Type
|
||||
HiLink helpNotVi Special
|
||||
HiLink helpSpecial Special
|
||||
HiLink helpNote Todo
|
||||
HiLink Subtitle Identifier
|
||||
|
||||
HiLink helpComment Comment
|
||||
HiLink helpConstant Constant
|
||||
HiLink helpString String
|
||||
HiLink helpCharacter Character
|
||||
HiLink helpNumber Number
|
||||
HiLink helpBoolean Boolean
|
||||
HiLink helpFloat Float
|
||||
HiLink helpIdentifier Identifier
|
||||
HiLink helpFunction Function
|
||||
HiLink helpStatement Statement
|
||||
HiLink helpConditional Conditional
|
||||
HiLink helpRepeat Repeat
|
||||
HiLink helpLabel Label
|
||||
HiLink helpOperator Operator
|
||||
HiLink helpKeyword Keyword
|
||||
HiLink helpException Exception
|
||||
HiLink helpPreProc PreProc
|
||||
HiLink helpInclude Include
|
||||
HiLink helpDefine Define
|
||||
HiLink helpMacro Macro
|
||||
HiLink helpPreCondit PreCondit
|
||||
HiLink helpType Type
|
||||
HiLink helpStorageClass StorageClass
|
||||
HiLink helpStructure Structure
|
||||
HiLink helpTypedef Typedef
|
||||
HiLink helpSpecialChar SpecialChar
|
||||
HiLink helpTag Tag
|
||||
HiLink helpDelimiter Delimiter
|
||||
HiLink helpSpecialComment SpecialComment
|
||||
HiLink helpDebug Debug
|
||||
HiLink helpUnderlined Underlined
|
||||
HiLink helpError Error
|
||||
HiLink helpTodo Todo
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
hi def link helpComment Comment
|
||||
hi def link helpConstant Constant
|
||||
hi def link helpString String
|
||||
hi def link helpCharacter Character
|
||||
hi def link helpNumber Number
|
||||
hi def link helpBoolean Boolean
|
||||
hi def link helpFloat Float
|
||||
hi def link helpIdentifier Identifier
|
||||
hi def link helpFunction Function
|
||||
hi def link helpStatement Statement
|
||||
hi def link helpConditional Conditional
|
||||
hi def link helpRepeat Repeat
|
||||
hi def link helpLabel Label
|
||||
hi def link helpOperator Operator
|
||||
hi def link helpKeyword Keyword
|
||||
hi def link helpException Exception
|
||||
hi def link helpPreProc PreProc
|
||||
hi def link helpInclude Include
|
||||
hi def link helpDefine Define
|
||||
hi def link helpMacro Macro
|
||||
hi def link helpPreCondit PreCondit
|
||||
hi def link helpType Type
|
||||
hi def link helpStorageClass StorageClass
|
||||
hi def link helpStructure Structure
|
||||
hi def link helpTypedef Typedef
|
||||
hi def link helpSpecialChar SpecialChar
|
||||
hi def link helpTag Tag
|
||||
hi def link helpDelimiter Delimiter
|
||||
hi def link helpSpecialComment SpecialComment
|
||||
hi def link helpDebug Debug
|
||||
hi def link helpUnderlined Underlined
|
||||
hi def link helpError Error
|
||||
hi def link helpTodo Todo
|
||||
|
||||
let b:current_syntax = "help"
|
||||
|
||||
|
||||
@ -1,16 +1,13 @@
|
||||
" Vim syntax file
|
||||
" Language: Model
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2001 Apr 25
|
||||
" Last Change: 2005 Jun 20
|
||||
|
||||
" very basic things only (based on the vgrindefs file).
|
||||
" If you use this language, please improve it, and send me the patches!
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" Quit when a (custom) syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@ -36,23 +33,11 @@ syn region modelString start=+"+ end=+"+
|
||||
syn match modelString "'."
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_model_syntax_inits")
|
||||
if version < 508
|
||||
let did_model_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
|
||||
HiLink modelKeyword Statement
|
||||
HiLink modelBlock PreProc
|
||||
HiLink modelComment Comment
|
||||
HiLink modelString String
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
" Only used when an item doesn't have highlighting yet
|
||||
hi def link modelKeyword Statement
|
||||
hi def link modelBlock PreProc
|
||||
hi def link modelComment Comment
|
||||
hi def link modelString String
|
||||
|
||||
let b:current_syntax = "model"
|
||||
|
||||
|
||||
@ -1,15 +1,12 @@
|
||||
" Vim syntax file
|
||||
" Language: Vgrindefs
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2001 Apr 25
|
||||
" Last Change: 2005 Jun 20
|
||||
|
||||
" The Vgrindefs file is used to specify a language for vgrind
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" Quit when a (custom) syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@ -39,22 +36,9 @@ syn match vgrindefsField ":$"
|
||||
syn match vgrindefsField "\\$"
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_vgrindefs_syntax_inits")
|
||||
if version < 508
|
||||
let did_vgrindefs_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
|
||||
" The default methods for highlighting. Can be overridden later
|
||||
HiLink vgrindefsField Statement
|
||||
HiLink vgrindefsComment Comment
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
" Only used when an item doesn't have highlighting yet
|
||||
hi def link vgrindefsField Statement
|
||||
hi def link vgrindefsComment Comment
|
||||
|
||||
let b:current_syntax = "vgrindefs"
|
||||
|
||||
|
||||
@ -1,13 +1,10 @@
|
||||
" Vim syntax file
|
||||
" Language: Vim .viminfo file
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2001 Apr 25
|
||||
" Last Change: 2005 Jun 20
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
if version < 600
|
||||
syntax clear
|
||||
elseif exists("b:current_syntax")
|
||||
" Quit when a (custom) syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
finish
|
||||
endif
|
||||
|
||||
@ -31,22 +28,10 @@ syn match viminfoOptionName "\*\a*"ms=s+1 contained
|
||||
syn match viminfoComment "^#.*"
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_viminfo_syntax_inits")
|
||||
if version < 508
|
||||
let did_viminfo_syntax_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
|
||||
HiLink viminfoComment Comment
|
||||
HiLink viminfoError Error
|
||||
HiLink viminfoStatement Statement
|
||||
|
||||
delcommand HiLink
|
||||
endif
|
||||
" Only used when an item doesn't have highlighting yet
|
||||
hi def link viminfoComment Comment
|
||||
hi def link viminfoError Error
|
||||
hi def link viminfoStatement Statement
|
||||
|
||||
let b:current_syntax = "viminfo"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user