diff options
Diffstat (limited to 'runtime/syntax')
-rw-r--r-- | runtime/syntax/bc.vim | 9 | ||||
-rw-r--r-- | runtime/syntax/cmake.vim | 5 | ||||
-rw-r--r-- | runtime/syntax/dirpager.vim | 20 | ||||
-rw-r--r-- | runtime/syntax/dnsmasq.vim | 38 | ||||
-rw-r--r-- | runtime/syntax/eiffel.vim | 37 | ||||
-rw-r--r-- | runtime/syntax/expect.vim | 9 | ||||
-rw-r--r-- | runtime/syntax/forth.vim | 32 | ||||
-rw-r--r-- | runtime/syntax/gnash.vim | 22 | ||||
-rw-r--r-- | runtime/syntax/mmix.vim | 13 | ||||
-rw-r--r-- | runtime/syntax/resolv.vim | 8 | ||||
-rw-r--r-- | runtime/syntax/spice.vim | 7 | ||||
-rw-r--r-- | runtime/syntax/vhdl.vim | 12 | ||||
-rw-r--r-- | runtime/syntax/xpm2.vim | 5 | ||||
-rw-r--r-- | runtime/syntax/zimbu.vim | 2 |
14 files changed, 129 insertions, 90 deletions
diff --git a/runtime/syntax/bc.vim b/runtime/syntax/bc.vim index dcfaf486a..965afc35b 100644 --- a/runtime/syntax/bc.vim +++ b/runtime/syntax/bc.vim @@ -1,7 +1,8 @@ " Vim syntax file " Language: bc - An arbitrary precision calculator language " Maintainer: Vladimir Scholtz <vlado@gjh.sk> -" Last change: 2001 Sep 02 +" Last change: 2012 Jun 01 +" (Dominique Pelle added @Spell) " Available on: www.gjh.sk/~vlado/bc.vim " For version 5.x: Clear all syntax items @@ -31,14 +32,14 @@ syn keyword bcConstant BC_ENV_ARGS BC_LINE_LENGTH syn match bcIdentifier "[a-z_][a-z0-9_]*" " String - syn match bcString "\"[^"]*\"" + syn match bcString "\"[^"]*\"" contains=@Spell " Number syn match bcNumber "[0-9]\+" " Comment -syn match bcComment "\#.*" -syn region bcComment start="/\*" end="\*/" +syn match bcComment "\#.*" contains=@Spell +syn region bcComment start="/\*" end="\*/" contains=@Spell " Parent () syn cluster bcAll contains=bcList,bcIdentifier,bcNumber,bcKeyword,bcType,bcConstant,bcString,bcParentError diff --git a/runtime/syntax/cmake.vim b/runtime/syntax/cmake.vim index e241605e0..8e54d511e 100644 --- a/runtime/syntax/cmake.vim +++ b/runtime/syntax/cmake.vim @@ -4,7 +4,8 @@ " Language: CMake " Author: Andy Cedilnik <andy.cedilnik@kitware.com> " Maintainer: Karthik Krishnan <karthik.krishnan@kitware.com> -" Last Change: $Date: 2008-08-25 14:31:28 $ +" Last Change: 2012 Jun 01 +" (Dominique Pelle added @Spell) " Version: $Revision: 1.10 $ " " Licence: The CMake license applies to this file. See @@ -23,7 +24,7 @@ set cpo&vim syn case ignore syn match cmakeEscaped /\(\\\\\|\\"\|\\n\|\\t\)/ contained -syn region cmakeComment start="#" end="$" contains=cmakeTodo +syn region cmakeComment start="#" end="$" contains=@Spell,cmakeTodo syn region cmakeRegistry start=/\[/ end=/]/ \ contained oneline contains=CONTAINED,cmakeTodo,cmakeEscaped syn region cmakeVariableValue start=/\${/ end=/}/ diff --git a/runtime/syntax/dirpager.vim b/runtime/syntax/dirpager.vim index 371dda367..1a6006379 100644 --- a/runtime/syntax/dirpager.vim +++ b/runtime/syntax/dirpager.vim @@ -1,11 +1,20 @@ " Vim syntax file -" Language: directory pager -" Maintainer: Thilo Six <T.Six@gmx.de> -" Derived From: Nikolai Weibulls dircolors.vim -" Last Change: 2011 Dec 11 +" Maintainer: Thilo Six +" Contact: <vim-dev at vim dot org> +" http://www.vim.org/maillist.php#vim-dev +" +" Description: display directory content inside Vim with syntax +" highlighting +" File: runtime/syntax/dirpager.vim +" Last Change: 2012 May 19 " Modeline: vim: ts=8:sw=2:sts=2: " -" usage: $ ls -la | view -c "set ft=dirpager" - +" Credits: dirpager.vim is derived from Nikolai Weibulls dircolors.vim +" +" License: VIM License +" Vim is Charityware, see ":help Uganda" +" +" Usage: $ ls -la | view -c "set ft=dirpager" - " " ",----[ ls(1posix) ]-------------------------------------------------- @@ -19,7 +28,6 @@ " l (ell) Symbolic link. " p FIFO. " - Regular file. -"`-------------------------------------------------------------------- " if exists("b:current_syntax") || &compatible diff --git a/runtime/syntax/dnsmasq.vim b/runtime/syntax/dnsmasq.vim index dcc1a3c10..ebee808a5 100644 --- a/runtime/syntax/dnsmasq.vim +++ b/runtime/syntax/dnsmasq.vim @@ -1,18 +1,21 @@ -" Vim file -" Maintainer: Thilo Six <T.Six@gmx.de> -" Version: 2.60-1 -" Last Change: 2012 Mar 10 -" Modeline: vim: ts=8:sw=2:sts=2: +" Vim syntax file +" Maintainer: Thilo Six +" Contact: <vim-dev at vim dot org> +" http://www.vim.org/maillist.php#vim-dev +" +" Description: highlight dnsmasq configuration files " File: runtime/syntax/dnsmasq.vim +" Version: 2.61-1 +" Last Change: 2012 May 19 +" Modeline: vim: ts=8:sw=2:sts=2: " " Credits: Igor N. Prischepoff " Doug Kearns " David Ne\v{c}as +" Christian Brabandt " " License: VIM License -" see ":help copyright" -" -" Description: highlight dnsmasq configuration files +" Vim is Charityware, see ":help Uganda" " " Options: You might want to add this to your vimrc: " @@ -51,23 +54,21 @@ syn match DnsmasqValues "=.*"hs=s+1 contains=DnsmasqComment,DnsmasqSpecial syn match DnsmasqSpecial display '=\|@\|,\|!\|:' nextgroup=DnsmasqValues syn match DnsmasqSpecial "#" -syn match DnsmasqIPv4 "\(\d\{1,3}\.\)\{3}\d\{1,3}" nextgroup=DnsmasqSubnet2,DnsmasqRange -syn match DnsmasqSubnet "\<255.\(\d\{1,3}\.\)\{2}\d\{1,3}" -syn match DnsmasqSubnet2 contained "\/\(\d\{1,2}\)\>" +syn match DnsmasqIPv4 "\<\(\(25\_[0-5]\|2\_[0-4]\_[0-9]\|\_[01]\?\_[0-9]\_[0-9]\?\)\.\)\{3\}\(25\_[0-5]\|2\_[0-4]\_[0-9]\|\_[01]\?\_[0-9]\_[0-9]\?\)\>" nextgroup=DnsmasqSubnet2,DnsmasqRange +syn match DnsmasqSubnet "\<255.\(\(25\_[0-5]\|2\_[0-4]\_[0-9]\|\_[01]\?\_[0-9]\_[0-9]\?\)\.\)\{2\}\(25\_[0-5]\|2\_[0-4]\_[0-9]\|\_[01]\?\_[0-9]\_[0-9]\?\)\>" +syn match DnsmasqSubnet2 contained "\/\([0-4]\?[0-9]\)\>" syn match DnsmasqRange contained "-" syn match DnsmasqMac "\<\(\x\x\?:\)\{5}\x\x\?" syn match DnsmasqTime "\<\(\d\{1,3}\)[hm]\>" " String -syn match DnsmasqString "\".*\"" -syn match DnsmasqString "'.*'" +syn match DnsmasqString "\".*\"" contains=@Spell +syn match DnsmasqString "'.*'" contains=@Spell " Comments -syn match DnsmasqComment "^#.*$" contains=DnsmasqTodo -syn match DnsmasqComment "\s#.*$" contains=DnsmasqTodo - syn keyword DnsmasqTodo FIXME TODO XXX NOTE contained +syn match DnsmasqComment "\(^\|\s\+\)#.*$" contains=@Spell,DnsmasqTodo " highlight trailing spaces syn match DnsmasqTrailSpace "[ \t]\+$" @@ -109,6 +110,7 @@ syn match DnsmasqKeyword "^\s*dhcp-boot\>" syn match DnsmasqKeyword "^\s*dhcp-broadcast\>" syn match DnsmasqKeyword "^\s*dhcp-circuitid\>" syn match DnsmasqKeyword "^\s*dhcp-client-update\>" +syn match DnsmasqKeyword "^\s*dhcp-duid\>" syn match DnsmasqKeyword "^\s*dhcp-fqdn\>" syn match DnsmasqKeyword "^\s*dhcp-generate-names\>" syn match DnsmasqKeyword "^\s*dhcp-host\>" @@ -144,6 +146,7 @@ syn match DnsmasqKeyword "^\s*except-interface\>" syn match DnsmasqKeyword "^\s*expand-hosts\>" syn match DnsmasqKeyword "^\s*filterwin2k\>" syn match DnsmasqKeyword "^\s*group\>" +syn match DnsmasqKeyword "^\s*host-record\>" syn match DnsmasqKeyword "^\s*interface\>" syn match DnsmasqKeyword "^\s*interface-name\>" syn match DnsmasqKeyword "^\s*keep-in-foreground\>" @@ -189,6 +192,7 @@ syn match DnsmasqKeyword "^\s*strict-order\>" syn match DnsmasqKeyword "^\s*tag-if\>" syn match DnsmasqKeyword "^\s*test\>" syn match DnsmasqKeyword "^\s*tftp-max\>" +syn match DnsmasqKeyword "^\s*tftp-lowercase\>" syn match DnsmasqKeyword "^\s*tftp-no-blocksize\>" syn match DnsmasqKeyword "^\s*tftp-port-range\>" syn match DnsmasqKeyword "^\s*tftp-root\>" @@ -200,11 +204,9 @@ syn match DnsmasqKeyword "^\s*version\>" if b:dnsmasq_backrgound_light == 1 - hi def DnsmasqParams ctermfg=DarkGreen guifg=DarkGreen hi def DnsmasqKeyword ctermfg=DarkGreen guifg=DarkGreen else hi def link DnsmasqKeyword Keyword - hi def link DnsmasqParams Keyword endif hi def link DnsmasqKeywordSpecial Type hi def link DnsmasqTodo Todo diff --git a/runtime/syntax/eiffel.vim b/runtime/syntax/eiffel.vim index e5bc69ada..a91f85d03 100644 --- a/runtime/syntax/eiffel.vim +++ b/runtime/syntax/eiffel.vim @@ -1,10 +1,10 @@ " Eiffel syntax file " Language: Eiffel -" Maintainer: Reimer Behrends <behrends@cse.msu.edu> -" With much input from Jocelyn Fiat <fiat@eiffel.com> -" See http://www.cse.msu.edu/~behrends/vim/ for the most current version. -" Last Change: 2011 Dec 31 by Thilo Six - +" Maintainer: Jocelyn Fiat <jfiat@eiffel.com> +" Previous maintainer: Reimer Behrends <behrends@cse.msu.edu> +" Contributions from: Thilo Six +" +" URL: https://github.com/eiffelhub/vim-eiffel " For version 5.x: Clear all syntax items " For version 6.x: Quit when a syntax file was already loaded if version < 600 @@ -13,7 +13,7 @@ elseif exists("b:current_syntax") finish endif -let s:cpo_save = &cpo +let s:keepcpo= &cpo set cpo&vim " Option handling @@ -43,7 +43,7 @@ endif " Keyword definitions -syn keyword eiffelTopStruct indexing feature creation inherit +syn keyword eiffelTopStruct note indexing feature creation inherit syn match eiffelTopStruct "\<class\>" syn match eiffelKeyword "\<end\>" syn match eiffelTopStruct "^end\>\(\s*--\s\+class\s\+\<[A-Z][A-Z0-9_]*\>\)\=" contains=eiffelClassName @@ -51,27 +51,30 @@ syn match eiffelBrackets "[[\]]" syn match eiffelBracketError "\]" syn region eiffelGeneric transparent matchgroup=eiffelBrackets start="\[" end="\]" contains=ALLBUT,eiffelBracketError,eiffelGenericDecl,eiffelStringError,eiffelStringEscape,eiffelGenericCreate,eiffelTopStruct if exists("eiffel_ise") + syn match eiffelAgent "\<agent\>" + syn match eiffelConvert "\<convert\>" syn match eiffelCreate "\<create\>" syn match eiffelTopStruct contained "\<create\>" + syn match eiffelTopStruct contained "\<convert\>" syn match eiffelGenericCreate contained "\<create\>" syn match eiffelTopStruct "^create\>" syn region eiffelGenericDecl transparent matchgroup=eiffelBrackets contained start="\[" end="\]" contains=ALLBUT,eiffelCreate,eiffelTopStruct,eiffelGeneric,eiffelBracketError,eiffelStringEscape,eiffelStringError,eiffelBrackets syn region eiffelClassHeader start="^class\>" end="$" contains=ALLBUT,eiffelCreate,eiffelGenericCreate,eiffelGeneric,eiffelStringEscape,eiffelStringError,eiffelBrackets endif -syn keyword eiffelDeclaration is do once deferred unique local -syn keyword eiffelDeclaration Unique +syn keyword eiffelDeclaration is do once deferred unique local attribute assign +syn keyword eiffelDeclaration attached detachable Unique syn keyword eiffelProperty expanded obsolete separate frozen syn keyword eiffelProperty prefix infix syn keyword eiffelInheritClause rename redefine undefine select export as syn keyword eiffelAll all -syn keyword eiffelKeyword external alias +syn keyword eiffelKeyword external alias some syn keyword eiffelStatement if else elseif inspect syn keyword eiffelStatement when then syn match eiffelAssertion "\<require\(\s\+else\)\=\>" syn match eiffelAssertion "\<ensure\(\s\+then\)\=\>" syn keyword eiffelAssertion check syn keyword eiffelDebug debug -syn keyword eiffelStatement from until loop +syn keyword eiffelStatement across from until loop syn keyword eiffelAssertion variant syn match eiffelAssertion "\<invariant\>" syn match eiffelTopStruct "^invariant\>" @@ -129,6 +132,11 @@ syn match eiffelClassName "\<[A-Z][A-Z0-9_]*\>" syn match eiffelParenError ")" syn region eiffelParen transparent start="(" end=")" contains=ALLBUT,eiffelParenError,eiffelStringError,eiffelStringEscape +if exists("eiffel_fold") +" setlocal foldmethod=indent +" syn sync fromstart +endif + " Should suffice for even very long strings and expressions syn sync lines=40 @@ -153,6 +161,8 @@ if version >= 508 || !exists("did_eiffel_syntax_inits") HiLink eiffelException Statement HiLink eiffelGenericCreate Statement + HiLink eiffelAgent Statement + HiLink eiffelConvert Statement HiLink eiffelTopStruct PreProc @@ -196,6 +206,7 @@ endif let b:current_syntax = "eiffel" -let &cpo = s:cpo_save -unlet s:cpo_save +let &cpo = s:keepcpo +unlet s:keepcpo + " vim: ts=8 diff --git a/runtime/syntax/expect.vim b/runtime/syntax/expect.vim index 1886e2b3e..6ff7d4142 100644 --- a/runtime/syntax/expect.vim +++ b/runtime/syntax/expect.vim @@ -1,7 +1,8 @@ " Vim syntax file " Language: Expect " Maintainer: Ralph Jennings <knowbudy@oro.net> -" Last Change: 2001 May 09 +" Last Change: 2012 Jun 01 +" (Dominique Pelle added @Spell) " For version 5.x: Clear all syntax items " For version 6.x: Quit when a syntax file was already loaded @@ -72,11 +73,12 @@ syn case ignore "syn match expectIdentifier "\<[a-z_][a-z0-9_]*\>" syn case match -syn region expectString start=+"+ end=+"+ contains=expectVariables,expectSpecial +syn region expectString start=+"+ end=+"+ contains=@Spell,expectVariables,expectSpecial " Are these really comments in Expect? (I never use it, so I'm just guessing). syn keyword expectTodo contained TODO -syn match expectComment "#.*$" contains=expectTodo +syn match expectComment "#.*$" contains=@Spell,expectTodo +syn match expectSharpBang "\%^#!.*" " Define the default highlighting. " For version 5.7 and earlier: only when not done already @@ -89,6 +91,7 @@ if version >= 508 || !exists("did_expect_syntax_inits") command -nargs=+ HiLink hi def link <args> endif + HiLink expectSharpBang PreProc HiLink expectVariables Special HiLink expectCommand Function HiLink expectStatement Statement diff --git a/runtime/syntax/forth.vim b/runtime/syntax/forth.vim index b42c5dcd6..99e9400b9 100644 --- a/runtime/syntax/forth.vim +++ b/runtime/syntax/forth.vim @@ -1,13 +1,13 @@ " Vim syntax file " Language: FORTH " Maintainer: Christian V. J. Brüssow <cvjb@cvjb.de> -" Last Change: Sa 07 Jan 2012 21:30:55 CET +" Last Change: So 27 Mai 2012 15:56:28 CEST " Filenames: *.fs,*.ft " URL: http://www.cvjb.de/comp/vim/forth.vim -" $Id: forth.vim,v 1.13 2012/01/07 21:31:31 bruessow Exp $ +" $Id: forth.vim,v 1.14 2012/05/27 15:57:22 bruessow Exp $ -" The list of keywords is incomplete, compared with the offical ANS +" The list of keywords is incomplete, compared with the official ANS " wordlist. If you use this language, please improve it, and send me " the patches. " @@ -16,6 +16,10 @@ " for forth.vim). " Many Thanks to... +" +" 2012-05-13: +" Dominique Pellé <dominique dot pelle at gmail dot com> for sending the +" patch to allow spellchecking of strings, comments, ... " " 2012-01-07: " Thilo Six <T.Six at gmx dot de> send a patch for cpoptions. @@ -44,7 +48,7 @@ " Bill McCarthy <WJMc@...> and Ilya Sher <ilya-vim@...> " Who found a bug in the ccomment line in 2004!!! " I'm really very sorry, that it has taken two years to fix that -" in the offical version of this file. Shame on me. +" in the official version of this file. Shame on me. " I think my face will be red the next ten years... " " 2006-05-21: @@ -256,22 +260,22 @@ syn match forthInteger '\<%[0-1]*[0-1]\+\>' syn match forthFloat '\<-\=\d*[.]\=\d\+[DdEe]\d\+\>' syn match forthFloat '\<-\=\d*[.]\=\d\+[DdEe][-+]\d\+\>' -" XXX If you find this overkill you can remove it. this has to come after the +" XXX If you find this overkill you can remove it. This has to come after the " highlighting for numbers otherwise it has no effect. syn region forthComment start='0 \[if\]' end='\[endif\]' end='\[then\]' contains=forthTodo " Strings -syn region forthString start=+\.*\"+ end=+"+ end=+$+ +syn region forthString start=+\.*\"+ end=+"+ end=+$+ contains=@Spell " XXX -syn region forthString start=+s\"+ end=+"+ end=+$+ -syn region forthString start=+c\"+ end=+"+ end=+$+ +syn region forthString start=+s\"+ end=+"+ end=+$+ contains=@Spell +syn region forthString start=+c\"+ end=+"+ end=+$+ contains=@Spell " Comments -syn match forthComment '\\\s.*$' contains=forthTodo,forthSpaceError -syn region forthComment start='\\S\s' end='.*' contains=forthTodo,forthSpaceError -syn match forthComment '\.(\s[^)]*)' contains=forthTodo,forthSpaceError -syn region forthComment start='\(^\|\s\)\zs(\s' skip='\\)' end=')' contains=forthTodo,forthSpaceError -syn region forthComment start='/\*' end='\*/' contains=forthTodo,forthSpaceError +syn match forthComment '\\\s.*$' contains=@Spell,forthTodo,forthSpaceError +syn region forthComment start='\\S\s' end='.*' contains=@Spell,forthTodo,forthSpaceError +syn match forthComment '\.(\s[^)]*)' contains=@Spell,forthTodo,forthSpaceError +syn region forthComment start='\(^\|\s\)\zs(\s' skip='\\)' end=')' contains=@Spell,forthTodo,forthSpaceError +syn region forthComment start='/\*' end='\*/' contains=@Spell,forthTodo,forthSpaceError " Include files syn match forthInclude '^INCLUDE\s\+\k\+' @@ -295,7 +299,7 @@ if version >= 508 || !exists("did_forth_syn_inits") command -nargs=+ HiLink hi def link <args> endif - " The default methods for highlighting. Can be overriden later. + " The default methods for highlighting. Can be overridden later. HiLink forthTodo Todo HiLink forthOperators Operator HiLink forthMath Number diff --git a/runtime/syntax/gnash.vim b/runtime/syntax/gnash.vim index dea3d05eb..f9e2b519a 100644 --- a/runtime/syntax/gnash.vim +++ b/runtime/syntax/gnash.vim @@ -1,11 +1,18 @@ " Vim syntax file -" Language: gnash(1) configuration files +" Maintainer: Thilo Six +" Contact: <vim-dev at vim dot org> +" http://www.vim.org/maillist.php#vim-dev +" +" Description: highlight gnash configuration files " http://www.gnu.org/software/gnash/manual/gnashuser.html#gnashrc -" Maintainer: Thilo Six <T.Six@gmx.de> -" Last Change: 2011 Dec 11 +" File: runtime/syntax/gnash.vim +" Last Change: 2012 May 19 " Modeline: vim: ts=8:sw=2:sts=2: -" Credidts: derived from readline.vim -" Nikolai Weibull +" +" Credits: derived from Nikolai Weibulls readline.vim +" +" License: VIM License +" Vim is Charityware, see ":help Uganda" " " For version 5.x: Clear all syntax items @@ -20,8 +27,8 @@ syn case match syn keyword GnashTodo contained TODO FIXME XXX NOTE " Comments -syn match GnashComment "^#.*$" contains=GnashTodo -syn match GnashComment "\s#.*$" contains=GnashTodo +syn match GnashComment "^#.*$" contains=@Spell,GnashTodo +syn match GnashComment "\s#.*$" contains=@Spell,GnashTodo syn match GnashNumber display '\<\d\+\>' @@ -84,7 +91,6 @@ hi def link GnashOn Identifier hi def link GnashOff Preproc hi def link GnashComment Comment hi def link GnashTodo Todo -hi def link GnashString String hi def link GnashNumber Type hi def link GnashSet String hi def link GnashKeyword Keyword diff --git a/runtime/syntax/mmix.vim b/runtime/syntax/mmix.vim index 5b6a44370..79ca78140 100644 --- a/runtime/syntax/mmix.vim +++ b/runtime/syntax/mmix.vim @@ -1,12 +1,13 @@ " Vim syntax file " Language: MMIX " Maintainer: Dirk Hüsken, <huesken@informatik.uni-tuebingen.de> -" Last Change: Wed Apr 24 01:18:52 CEST 2002 +" Last Change: 2012 Jun 01 +" (Dominique Pelle added @Spell) " Filenames: *.mms " URL: http://homepages.uni-tuebingen.de/student/dirk.huesken/vim/syntax/mmix.vim " Limitations: Comments must start with either % or // -" (preferrably %, Knuth-Style) +" (preferably %, Knuth-Style) if version < 600 syntax clear @@ -23,7 +24,7 @@ syn keyword mmixType byte wyde tetra octa syn match decNumber "[0-9]*" syn match octNumber "0[0-7][0-7]\+" syn match hexNumber "#[0-9a-fA-F]\+" -syn region mmixString start=+"+ skip=+\\"+ end=+"+ +syn region mmixString start=+"+ skip=+\\"+ end=+"+ contains=@Spell syn match mmixChar "'.'" " ...and more special MMIX stuff @@ -40,9 +41,9 @@ syn match mmixLabel "[0-9][HBF]" syn keyword mmixPseudo is loc greg " comments -syn match mmixComment "%.*" -syn match mmixComment "//.*" -syn match mmixComment "^\*.*" +syn match mmixComment "%.*" contains=@Spell +syn match mmixComment "//.*" contains=@Spell +syn match mmixComment "^\*.*" contains=@Spell syn keyword mmixOpcode trap fcmp fun feql fadd fix fsub fixu diff --git a/runtime/syntax/resolv.vim b/runtime/syntax/resolv.vim index 4892b83af..cbb9105d2 100644 --- a/runtime/syntax/resolv.vim +++ b/runtime/syntax/resolv.vim @@ -4,7 +4,7 @@ " Original Maintaner: Radu Dineiu <littledragon@altern.org> " License: This file can be redistributed and/or modified under the same terms " as Vim itself. -" Last Change: 2012-05-15 +" Last Change: 2012-05-24 if version < 600 syntax clear @@ -15,17 +15,17 @@ endif " Errors, comments and operators syn match resolvError /./ syn match resolvComment /\s*[#;].*$/ contains=@Spell -syn match resolvOperator /[\/:]/ contained +syn match resolvOperator /[/:]/ contained " IP syn cluster resolvIPCluster contains=resolvIPError,resolvIPSpecial -syn match resolvIPError /\%(\d\{4,}\|25[6-9]\|2[6-9]\d\|[3-9]\d\{2}\)[\.0-9]*/ contained +syn match resolvIPError /\%(\d\{4,}\|25[6-9]\|2[6-9]\d\|[3-9]\d\{2}\)[.0-9]*/ contained syn match resolvIPSpecial /\%(127\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}\)/ contained " General syn match resolvIP contained /\%(\d\{1,4}\.\)\{3}\d\{1,4}/ contains=@resolvIPCluster syn match resolvIPNetmask contained /\%(\d\{1,4}\.\)\{3}\d\{1,4}\%(\/\%(\%(\d\{1,4}\.\)\{,3}\d\{1,4}\)\)\?/ contains=resolvOperator,@resolvIPCluster -syn match resolvHostname contained /\w\{-}\.[-0-9A-Za-z_\.]*/ +syn match resolvHostname contained /\w\{-}\.[-0-9A-Za-z_.]*/ " Particular syn match resolvIPNameserver contained /\%(\%(\d\{1,4}\.\)\{3}\d\{1,4}\%(\s\|$\)\)\+/ contains=@resolvIPCluster diff --git a/runtime/syntax/spice.vim b/runtime/syntax/spice.vim index ee1433ead..200e1aaea 100644 --- a/runtime/syntax/spice.vim +++ b/runtime/syntax/spice.vim @@ -1,7 +1,8 @@ " Vim syntax file " Language: Spice circuit simulator input netlist " Maintainer: Noam Halevy <Noam.Halevy.motorola.com> -" Last Change: 12/08/99 +" Last Change: 2012 Jun 01 +" (Dominique Pelle added @Spell) " " This is based on sh.vim by Lennart Schultz " but greatly simplified @@ -19,8 +20,8 @@ syn case ignore syn keyword spiceTodo contained TODO -syn match spiceComment "^ \=\*.*$" -syn match spiceComment "\$.*$" +syn match spiceComment "^ \=\*.*$" contains=@Spell +syn match spiceComment "\$.*$" contains=@Spell " Numbers, all with engineering suffixes and optional units "========================================================== diff --git a/runtime/syntax/vhdl.vim b/runtime/syntax/vhdl.vim index 6573af0cf..5d978ccd3 100644 --- a/runtime/syntax/vhdl.vim +++ b/runtime/syntax/vhdl.vim @@ -2,8 +2,8 @@ " Language: VHDL " Maintainer: Czo <Olivier.Sirol@lip6.fr> " Credits: Stephan Hegel <stephan.hegel@snc.siemens.com.cn> -" Last Changed: 2012 Feb 03 by Thilo Six -" $Id: vhdl.vim,v 1.1 2004/06/13 15:34:56 vimboss Exp $ +" Last Change: 2012 Jun 01 +" (Dominique Pelle added @Spell) " VHSIC Hardware Description Language " Very High Scale Integrated Circuit @@ -57,11 +57,11 @@ syn match vhdlStatement "\<\(if\|else\)\>" syn match vhdlNone "\<else\s\+if\>$" syn match vhdlNone "\<else\s\+if\>\s" -" Predifined VHDL types +" Predefined VHDL types syn keyword vhdlType bit bit_vector syn keyword vhdlType character boolean integer real time syn keyword vhdlType string severity_level -" Predifined standard ieee VHDL types +" Predefined standard ieee VHDL types syn keyword vhdlType positive natural signed unsigned syn keyword vhdlType line text syn keyword vhdlType std_logic std_logic_vector @@ -129,7 +129,7 @@ syn match vhdlVector "B\"[01_]\+\"" syn match vhdlVector "O\"[0-7_]\+\"" syn match vhdlVector "X\"[0-9a-f_]\+\"" syn match vhdlCharacter "'.'" -syn region vhdlString start=+"+ end=+"+ +syn region vhdlString start=+"+ end=+"+ contains=@Spell " floating numbers syn match vhdlNumber "-\=\<\d\+\.\d\+\(E[+\-]\=\d\+\)\>" @@ -151,7 +151,7 @@ syn match vhdlSpecial "[().,;]" syn match vhdlTime "\<\d\+\s\+\(\([fpnum]s\)\|\(sec\)\|\(min\)\|\(hr\)\)\>" syn match vhdlTime "\<\d\+\.\d\+\s\+\(\([fpnum]s\)\|\(sec\)\|\(min\)\|\(hr\)\)\>" -syn match vhdlComment "--.*$" +syn match vhdlComment "--.*$" contains=@Spell " syn match vhdlGlobal "[\'$#~!%@?\^\[\]{}\\]" " Define the default highlighting. diff --git a/runtime/syntax/xpm2.vim b/runtime/syntax/xpm2.vim index 9b85d0b5c..74b3c66af 100644 --- a/runtime/syntax/xpm2.vim +++ b/runtime/syntax/xpm2.vim @@ -1,7 +1,8 @@ " Vim syntax file " Language: X Pixmap v2 " Maintainer: Steve Wall (hitched97@velnet.com) -" Last Change: 2012 Feb 03 by Thilo Six +" Last Change: 2012 Jun 01 +" (Dominique Pelle added @Spell) " Version: 5.8 " " Made from xpm.vim by Ronald Schild <rs@scutum.de> @@ -19,7 +20,7 @@ set cpo&vim syn region xpm2PixelString start="^" end="$" contains=@xpm2Colors syn keyword xpm2Todo TODO FIXME XXX contained -syn match xpm2Comment "\!.*$" contains=xpm2Todo +syn match xpm2Comment "\!.*$" contains=@Spell,xpm2Todo if version < 508 diff --git a/runtime/syntax/zimbu.vim b/runtime/syntax/zimbu.vim index 210c69467..c859a2f81 100644 --- a/runtime/syntax/zimbu.vim +++ b/runtime/syntax/zimbu.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: Zimbu " Maintainer: Bram Moolenaar -" Last Change: 2012 May 17 +" Last Change: 2012 Jun 01 if exists("b:current_syntax") finish |