forked from aniani/vim
updated for version 7.0007
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
" Vim syntax file
|
||||
" Language: FORTH
|
||||
" Maintainer: Christian V. J. Br<42>ssow <cvjb@cvjb.de>
|
||||
" Last Change: Son 22 Jun 2003 20:42:55 CEST
|
||||
" Last Change: Di 06 Jul 2004 18:40:33 CEST
|
||||
" Filenames: *.fs,*.ft
|
||||
" URL: http://www.cvjb.de/comp/vim/forth.vim
|
||||
" URL: http://www.cvjb.de/comp/vim/forth.vim
|
||||
|
||||
" $Id$
|
||||
|
||||
@@ -13,12 +13,16 @@
|
||||
|
||||
" Many Thanks to...
|
||||
"
|
||||
" 2004-07-06:
|
||||
" Changed "syn sync ccomment maxlines=200" line: splitted it into two separate
|
||||
" lines.
|
||||
"
|
||||
" 2003-05-10:
|
||||
" Andrew Gaul <andrew at gaul.org> send me a patch for
|
||||
" forthOperators.
|
||||
"
|
||||
" 2003-04-03:
|
||||
" Ron Aaron <ron at ronware.org> made updates for an
|
||||
" Ron Aaron <ronaharon at yahoo.com> made updates for an
|
||||
" improved Win32Forth support.
|
||||
"
|
||||
" 2002-04-22:
|
||||
@@ -46,7 +50,8 @@ elseif exists("b:current_syntax")
|
||||
endif
|
||||
|
||||
" Synchronization method
|
||||
syn sync ccomment maxlines=200
|
||||
syn sync ccomment
|
||||
syn sync maxlines=200
|
||||
|
||||
" I use gforth, so I set this to case ignore
|
||||
syn case ignore
|
||||
@@ -189,10 +194,10 @@ syn match forthInclude '^needs\s\+'
|
||||
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
||||
if version >= 508 || !exists("did_forth_syn_inits")
|
||||
if version < 508
|
||||
let did_forth_syn_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
let did_forth_syn_inits = 1
|
||||
command -nargs=+ HiLink hi link <args>
|
||||
else
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
command -nargs=+ HiLink hi def link <args>
|
||||
endif
|
||||
|
||||
" The default methods for highlighting. Can be overriden later.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
" Vim syntax file
|
||||
" Language: Inno Setup File (iss file) and My InnoSetup extension
|
||||
" Maintainer: Dominique St<53>phan (dominique@mggen.com)
|
||||
" Last change: 2003 May 11
|
||||
" Last change: 2004 July 5
|
||||
|
||||
" For version 5.x: Clear all syntax items
|
||||
" For version 6.x: Quit when a syntax file was already loaded
|
||||
@@ -25,16 +25,18 @@ syn match issURL "http[s]\=:\/\/.*$"
|
||||
|
||||
" syn match issName "[^: ]\+:"
|
||||
syn match issName "Name:"
|
||||
syn match issName "MinVersion:\|OnlyBelowVersion:"
|
||||
syn match issName "MinVersion:\|OnlyBelowVersion:\|Languages:"
|
||||
syn match issName "Source:\|DestDir:\|DestName:\|CopyMode:"
|
||||
syn match issName "Attribs:\|FontInstall:\|Flags:"
|
||||
syn match issName "FileName:\|Parameters:\|WorkingDir:\|Comment:"
|
||||
syn match issName "Attribs:\|Permissions:\|FontInstall:\|Flags:"
|
||||
syn match issName "FileName:\|Parameters:\|WorkingDir:\|HotKey:\|Comment:"
|
||||
syn match issName "IconFilename:\|IconIndex:"
|
||||
syn match issName "Section:\|Key:\|String:"
|
||||
syn match issName "Root:\|SubKey:\|ValueType:\|ValueName:\|ValueData:"
|
||||
syn match issName "RunOnceId:"
|
||||
syn match issName "Type:"
|
||||
syn match issName "Components:\|Description:\|GroupDescription\|Types:"
|
||||
syn match issName "Components:\|Description:\|GroupDescription:\|Types:\|ExtraDiskSpaceRequired:"
|
||||
syn match issName "StatusMsg:\|RunOnceId:\|Tasks:"
|
||||
syn match issName "MessagesFile:\|LicenseFile:\|InfoBeforeFile:\|InfoAfterFile:"
|
||||
|
||||
syn match issComment "^;.*$"
|
||||
|
||||
@@ -48,15 +50,19 @@ syn region issString start=+"+ end=+"+ contains=issFolder
|
||||
syn keyword issDirsFlags deleteafterinstall uninsalwaysuninstall uninsneveruninstall
|
||||
|
||||
" [Files]
|
||||
syn keyword issFilesCopyMode normal onlyifdoesntexist alwaysoverwrite alwaysskipifsameorolder
|
||||
syn keyword issFilesCopyMode normal onlyifdoesntexist alwaysoverwrite alwaysskipifsameorolder dontcopy
|
||||
syn keyword issFilesAttribs readonly hidden system
|
||||
syn keyword issFilesFlags comparetimestampalso confirmoverwrite deleteafterinstall
|
||||
syn keyword issFilesFlags external fontisnttruetype isreadme overwritereadonly
|
||||
syn keyword issFilesFlags regserver regtypelib restartreplace
|
||||
syn keyword issFilesFlags sharedfile skipifsourcedoesntexist uninsneveruninstall
|
||||
syn keyword issFilesPermissions full modify readexec
|
||||
syn keyword issFilesFlags allowunsafefiles comparetimestampalso confirmoverwrite deleteafterinstall
|
||||
syn keyword issFilesFlags dontcopy dontverifychecksum external fontisnttruetype ignoreversion
|
||||
syn keyword issFilesFlags isreadme onlyifdestfileexists onlyifdoesntexist overwritereadonly
|
||||
syn keyword issFilesFlags promptifolder recursesubdirs regserver regtypelib restartreplace
|
||||
syn keyword issFilesFlags sharedfile skipifsourcedoesntexist sortfilesbyextension touch
|
||||
syn keyword issFilesFlags uninsremovereadonly uninsrestartdelete uninsneveruninstall
|
||||
|
||||
" [Icons]
|
||||
syn keyword issIconsFlags createonlyiffileexists runminimized uninsneveruninstall useapppaths
|
||||
syn keyword issIconsFlags closeonexit createonlyiffileexists dontcloseonexit
|
||||
syn keyword issIconsFlags runmaximized runminimized uninsneveruninstall useapppaths
|
||||
|
||||
" [INI]
|
||||
syn keyword issINIFlags createkeyifdoesntexist uninsdeleteentry uninsdeletesection uninsdeletesectionifempty
|
||||
@@ -64,22 +70,27 @@ syn keyword issINIFlags createkeyifdoesntexist uninsdeleteentry uninsdeletesecti
|
||||
" [Registry]
|
||||
syn keyword issRegRootKey HKCR HKCU HKLM HKU HKCC
|
||||
syn keyword issRegValueType none string expandsz multisz dword binary
|
||||
syn keyword issRegFlags createvalueifdoesntexist deletekey deletevalue preservestringtype
|
||||
syn keyword issRegFlags uninsclearvalue uninsdeletekey uninsdeletekeyifempty uninsdeletevalue
|
||||
syn keyword issRegFlags createvalueifdoesntexist deletekey deletevalue dontcreatekey
|
||||
syn keyword issRegFlags preservestringtype noerror uninsclearvalue
|
||||
syn keyword issRegFlags uninsdeletekey uninsdeletekeyifempty uninsdeletevalue
|
||||
|
||||
" [Run] and [UninstallRun]
|
||||
syn keyword issRunFlags nowait shellexec skipifdoesntexist runminimized waituntilidle
|
||||
syn keyword issRunFlags postinstall unchecked showcheckbox
|
||||
syn keyword issRunFlags hidewizard nowait postinstall runhidden runmaximized
|
||||
syn keyword issRunFlags runminimized shellexec skipifdoesntexist skipifnotsilent
|
||||
syn keyword issRunFlags skipifsilent unchecked waituntilidle
|
||||
|
||||
" [Types]
|
||||
syn keyword issTypesFlags iscustom
|
||||
|
||||
" [Components]
|
||||
syn keyword issComponentsFlags fixed restart disablenouninstallwarning
|
||||
syn keyword issComponentsFlags dontinheritcheck exclusive fixed restart disablenouninstallwarning
|
||||
|
||||
" [UninstallDelete] and [InstallDelete]
|
||||
syn keyword issInstallDeleteType files filesandordirs dirifempty
|
||||
|
||||
" [Tasks]
|
||||
syn keyword issTasksFlags checkedonce dontinheritcheck exclusive restart unchecked
|
||||
|
||||
|
||||
" Define the default highlighting.
|
||||
" For version 5.7 and earlier: only when not done already
|
||||
@@ -105,6 +116,7 @@ if version >= 508 || !exists("did_iss_syntax_inits")
|
||||
HiLink issDirsFlags Keyword
|
||||
HiLink issFilesCopyMode Keyword
|
||||
HiLink issFilesAttribs Keyword
|
||||
HiLink issFilesPermissions Keyword
|
||||
HiLink issFilesFlags Keyword
|
||||
HiLink issIconsFlags Keyword
|
||||
HiLink issINIFlags Keyword
|
||||
@@ -115,6 +127,7 @@ if version >= 508 || !exists("did_iss_syntax_inits")
|
||||
HiLink issTypesFlags Keyword
|
||||
HiLink issComponentsFlags Keyword
|
||||
HiLink issInstallDeleteType Keyword
|
||||
HiLink issTasksFlags Keyword
|
||||
|
||||
|
||||
delcommand HiLink
|
||||
|
@@ -1,6 +1,6 @@
|
||||
" Language : Netrw Remote-Directory Listing Syntax
|
||||
" Maintainer : Charles E. Campbell, Jr.
|
||||
" Last change: Jun 25, 2004
|
||||
" Last change: Jul 06, 2004
|
||||
" Version : 2
|
||||
|
||||
" Syntax Clearing: {{{1
|
||||
@@ -11,18 +11,18 @@ elseif exists("b:current_syntax")
|
||||
endif
|
||||
|
||||
" Directory List Syntax Highlighting: {{{1
|
||||
syn match netrwDir "^.*/$" contains=netrwClassify
|
||||
syn match netrwClassify "[*=|@/]$"
|
||||
syn match netrwSlash contained "/"
|
||||
syn match netrwSymLink "^.*@$" contains=netrwClassify
|
||||
syn match netrwComment '".*$' contains=netrwHide,netrwSortBy,netrwSortSeq
|
||||
syn match netrwDir "^.*/\%(\t\|$\)" contains=netrwClassify
|
||||
syn match netrwClassify "[*=|@/]\%(\t\|$\)"
|
||||
syn match netrwSymLink "^.*@\%(\t\|$\)" contains=netrwClassify
|
||||
syn match netrwComment '".*\%(\t\|$\)' contains=netrwHide,netrwSortBy,netrwSortSeq
|
||||
syn match netrwHide '^"\s*Hiding:' skipwhite nextgroup=netrwHidePat
|
||||
syn match netrwHidePat contained "[^,]\+" skipwhite nextgroup=netrwHideSep
|
||||
syn match netrwHideSep contained transparent "," skipwhite nextgroup=netrwHidePat
|
||||
syn match netrwSortBy contained transparent "Sorted by" skipwhite nextgroup=netrwList
|
||||
syn match netrwSortSeq contained transparent "Sort sequence:" skipwhite nextgroup=netrwList
|
||||
syn match netrwList contained ".*$" contains=netrwComma
|
||||
syn match netrwComma contained ","
|
||||
syn match netrwSlash contained "/"
|
||||
syn match netrwHidePat contained "[^,]\+" skipwhite nextgroup=netrwHideSep
|
||||
syn match netrwHideSep contained transparent "," skipwhite nextgroup=netrwHidePat
|
||||
syn match netrwSortBy contained transparent "Sorted by" skipwhite nextgroup=netrwList
|
||||
syn match netrwSortSeq contained transparent "Sort sequence:" skipwhite nextgroup=netrwList
|
||||
syn match netrwList contained ".*$" contains=netrwComma
|
||||
syn match netrwComma contained ","
|
||||
|
||||
" Highlighting Links: {{{1
|
||||
if !exists("did_drchip_dbg_syntax")
|
||||
|
@@ -1,8 +1,8 @@
|
||||
" Vim syntax file
|
||||
" Language: Vim 6.3 script
|
||||
" Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
|
||||
" Last Change: Jul 01, 2004
|
||||
" Version: 6.3-05
|
||||
" Last Change: Jul 09, 2004
|
||||
" Version: 6.3-07
|
||||
" Automatically generated keyword lists: {{{1
|
||||
|
||||
" Quit when a syntax file was already loaded {{{2
|
||||
@@ -106,7 +106,7 @@ syn keyword vimAugroupKey contained aug[roup]
|
||||
|
||||
" Functions : Tag is provided for those who wish to highlight tagged functions {{{2
|
||||
" =========
|
||||
syn cluster vimFuncList contains=vimFuncKey,Tag,vimFuncSID
|
||||
syn cluster vimFuncList contains=vimCommand,vimFuncKey,Tag,vimFuncSID
|
||||
syn cluster vimFuncBodyList contains=vimIsCommand,vimFunction,vimFunctionError,vimFuncBody,vimLineComment,vimSpecFile,vimOper,vimNumber,vimComment,vimString,vimSubst,vimMark,vimRegister,vimAddress,vimFilter,vimCmplxRepeat,vimComment,vimLet,vimSet,vimAutoCmd,vimRegion,vimSynLine,vimNotation,vimCtrlChar,vimFuncVar,vimContinue
|
||||
if !exists("g:vimsyntax_noerror")
|
||||
syn match vimFunctionError "\<fu\%[nction]!\=\s\+\zs\U\i\{-}\ze\s*(" contains=vimFuncKey,vimFuncBlank nextgroup=vimFuncBody
|
||||
@@ -183,11 +183,10 @@ syn match vimEnvvar "\${\I\i*}"
|
||||
" In-String Specials: {{{2
|
||||
" Try to catch strings, if nothing else matches (therefore it must precede the others!)
|
||||
" vimEscapeBrace handles ["] []"] (ie. "s don't terminate string inside [])
|
||||
syn region vimEscapeBrace oneline contained transparent start="[^\\]\(\\\\\)*\[\^\=\]\=" skip="\\\\\|\\\]" end="\]"me=e-1
|
||||
syn region vimEscapeBrace oneline contained transparent start="[^\\]\(\\\\\)*\[\^\=\]\=" skip="\\\\\|\\\]" end="\]"me=e-1
|
||||
syn match vimPatSepErr contained "\\)"
|
||||
syn match vimPatSep contained "\\|"
|
||||
syn region vimPatSepZone oneline contained transparent matchgroup=vimPatSep start="\\%\=(" skip="\\\\" end="\\)" contains=@vimStringGroup
|
||||
syn region vimPatSepZone oneline contained matchgroup=vimPatSep start="\\%\=(" skip="\\\\" end="\\)" contains=@vimStringGroup
|
||||
syn region vimPatSepZone oneline contained matchgroup=vimPatSep start="\\%\=(" skip="\\\\" end="\\)\|[^\]['"]" contains=@vimStringGroup
|
||||
syn region vimPatRegion contained transparent matchgroup=vimPatSep start="\\[z%]\=(" end="\\)" contains=@vimSubstList oneline
|
||||
syn match vimNotPatSep contained "\\\\"
|
||||
syn cluster vimStringGroup contains=vimEscapeBrace,vimPatSep,vimNotPatSep,vimPatSepErr,vimPatSepZone
|
||||
@@ -310,7 +309,7 @@ syn case match
|
||||
|
||||
" User Function Highlighting (following Gautam Iyer's suggestion) {{{2
|
||||
" ==========================
|
||||
syn match vimFunc "\%([sS]:\|<[sS][iI][dD]>\)\=\I\i*\ze\s*(" contains=vimUserFunc,vimFuncName,vimCommand,vimNotFunc
|
||||
syn match vimFunc "\%([sS]:\|<[sS][iI][dD]>\)\=\I\i*\ze\s*(" contains=vimFuncName,vimUserFunc,vimCommand,vimNotFunc,vimExecute
|
||||
syn match vimUserFunc contained "\%([sS]:\|<[sS][iI][dD]>\)\i\+\|\<\u\i*\>\|\<if\>" contains=vimNotation,vimCommand
|
||||
syn match vimNotFunc contained "\<[aiAIrR]("
|
||||
|
||||
@@ -504,6 +503,16 @@ if (has("tcl") || g:vimembedscript) && filereadable(expand("<sfile>:p:h")."/tcl.
|
||||
syn region vimTclRegion matchgroup=vimScriptDelim start=+tc[l]\=\s*<<\s*$+ end=+\.$+ contains=@vimTclScript
|
||||
endif
|
||||
|
||||
" [-- mzscheme --] {{{3
|
||||
if (has("mzscheme") || g:vimembedscript) && filereadable(expand("<sfile>:p:h")."/scheme.vim")
|
||||
unlet! b:current_syntax
|
||||
let iskKeep= &isk
|
||||
syn include @vimMzSchemeScript <sfile>:p:h/scheme.vim
|
||||
let &isk= iskKeep
|
||||
syn region vimMzSchemeRegion matchgroup=vimScriptDelim start=+mz\%[scheme]\s*<<\s*\z(.*\)$+ end=+^\z1$+ contains=@vimMzSchemeScript
|
||||
syn region vimMzSchemeRegion matchgroup=vimScriptDelim start=+mz\%[scheme]\s*<<\s*$+ end=+\.$+ contains=@vimMzSchemeScript
|
||||
endif
|
||||
|
||||
" Synchronize (speed) {{{2
|
||||
"============
|
||||
if exists("g:vim_minlines")
|
||||
@@ -531,7 +540,7 @@ if !exists("g:vimsyntax_noerror")
|
||||
hi def link vimErrSetting vimError
|
||||
hi def link vimFTError vimError
|
||||
hi def link vimFunctionError vimError
|
||||
hi def link VimFunc vimError
|
||||
hi def link vimFunc vimError
|
||||
hi def link vimHiAttribList vimError
|
||||
hi def link vimHiCtermError vimError
|
||||
hi def link vimHiKeyError vimError
|
||||
|
Reference in New Issue
Block a user