diff options
Diffstat (limited to 'runtime/syntax')
-rw-r--r-- | runtime/syntax/lss.vim | 4 | ||||
-rw-r--r-- | runtime/syntax/pccts.vim | 2 | ||||
-rw-r--r-- | runtime/syntax/pod.vim | 14 | ||||
-rw-r--r-- | runtime/syntax/samba.vim | 18 | ||||
-rw-r--r-- | runtime/syntax/scheme.vim | 37 |
5 files changed, 62 insertions, 13 deletions
diff --git a/runtime/syntax/lss.vim b/runtime/syntax/lss.vim index fe20701d1..6620707f9 100644 --- a/runtime/syntax/lss.vim +++ b/runtime/syntax/lss.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: Lynx 2.7.1 style file -" Maintainer: Scott Bigham <dsb@cs.duke.edu> -" Last Change: 2001 May 09 +" Maintainer: Scott Bigham <dsb@killerbunnies.org> +" Last Change: 2004 Oct 06 " For version 5.x: Clear all syntax items " For version 6.x: Quit when a syntax file was already loaded diff --git a/runtime/syntax/pccts.vim b/runtime/syntax/pccts.vim index ef5268117..8341f5bd4 100644 --- a/runtime/syntax/pccts.vim +++ b/runtime/syntax/pccts.vim @@ -1,6 +1,6 @@ " Vim syntax file " Language: PCCTS -" Maintainer: Scott Bigham <dsb@cs.duke.edu> +" Maintainer: Scott Bigham <dsb@killerbunnies.org> " Last Change: 10 Aug 1999 " For version 5.x: Clear all syntax items diff --git a/runtime/syntax/pod.vim b/runtime/syntax/pod.vim index 24d0c852c..60f335365 100644 --- a/runtime/syntax/pod.vim +++ b/runtime/syntax/pod.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: Perl POD format -" Maintainer: Scott Bigham <dsb@cs.duke.edu> -" Last Change: 2001 May 09 +" Maintainer: Scott Bigham <dsb@killerbunnies.org> +" Last Change: 2004 Oct 05 " To add embedded POD documentation highlighting to your syntax file, add " the commands: @@ -25,7 +25,7 @@ elseif exists("b:current_syntax") endif " POD commands -syn match podCommand "^=head[12]" nextgroup=podCmdText +syn match podCommand "^=head[1234]" nextgroup=podCmdText syn match podCommand "^=item" nextgroup=podCmdText syn match podCommand "^=over" nextgroup=podOverIndent skipwhite syn match podCommand "^=back" @@ -52,7 +52,11 @@ syn match podSpecial "\(\<\|&\)\I\i*\(::\I\i*\)*([^)]*)" syn match podSpecial "[$@%]\I\i*\(::\I\i*\)*\>" " Special formatting sequences -syn region podFormat start="[IBSCLFXEZ]<" end=">" oneline contains=podFormat +syn region podFormat start="[IBSCLFX]<[^<]"me=e-1 end=">" oneline contains=podFormat +syn match podFormat "Z<>" +syn match podFormat "E<\(\d\+\|\I\i*\)>" contains=podEscape,podEscape2 +syn match podEscape "\I\i*>"me=e-1 contained +syn match podEscape2 "\d\+>"me=e-1 contained " Define the default highlighting. " For version 5.7 and earlier: only when not done already @@ -72,6 +76,8 @@ if version >= 508 || !exists("did_pod_syntax_inits") HiLink podFormat Identifier HiLink podVerbatimLine PreProc HiLink podSpecial Identifier + HiLink podEscape String + HiLink podEscape2 Number delcommand HiLink endif diff --git a/runtime/syntax/samba.vim b/runtime/syntax/samba.vim index 10f7edce6..31570e093 100644 --- a/runtime/syntax/samba.vim +++ b/runtime/syntax/samba.vim @@ -2,7 +2,7 @@ " Language: samba configuration files (smb.conf) " Maintainer: Rafael Garcia-Suarez <rgarciasuarez@free.fr> " URL: http://rgarciasuarez.free.fr/vim/syntax/samba.vim -" Last change: 2002 May 06 +" Last change: 2004 September 21 " Don't forget to run your config file through testparm(1)! @@ -17,8 +17,8 @@ endif syn case ignore syn match sambaParameter /^[a-zA-Z \t]\+=/ contains=sambaKeyword -syn match sambaSection /^\s*\[[a-zA-Z0-9_\-. ]\+\]/ -syn match sambaMacro /%[SPugUGHvhmLMNpRdaIT]/ +syn match sambaSection /^\s*\[[a-zA-Z0-9_\-.$ ]\+\]/ +syn match sambaMacro /%[SPugUGHvhmLMNpRdaITD]/ syn match sambaMacro /%$([a-zA-Z0-9_]\+)/ syn match sambaComment /^\s*[;#].*/ syn match sambaContinue /\\$/ @@ -92,6 +92,18 @@ syn keyword sambaKeyword contained acls allocate bytes count csc devmode syn keyword sambaKeyword contained disable dn egd entropy enum extensions mmap syn keyword sambaKeyword contained policy spin spoolss +" Since Samba 3.0.2 +syn keyword sambaKeyword contained abort afs algorithmic backend +syn keyword sambaKeyword contained charset cups defer display +syn keyword sambaKeyword contained enable idmap kerberos lookups +syn keyword sambaKeyword contained methods modules nested NIS ntlm NTLMv2 +syn keyword sambaKeyword contained objects paranoid partners passdb +syn keyword sambaKeyword contained plaintext prefix primary private +syn keyword sambaKeyword contained profile quota realm replication +syn keyword sambaKeyword contained reported rid schannel sendfile sharing +syn keyword sambaKeyword contained shutdown signing special spnego +syn keyword sambaKeyword contained store unknown unwriteable + " 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 diff --git a/runtime/syntax/scheme.vim b/runtime/syntax/scheme.vim index 1d4f55ddc..41d491c65 100644 --- a/runtime/syntax/scheme.vim +++ b/runtime/syntax/scheme.vim @@ -194,7 +194,6 @@ if exists("b:is_mzscheme") || exists("is_mzscheme") syn keyword schemeExtSyntax error raise opt-lambda define-values unit unit/sig define-signature syn keyword schemeExtSyntax invoke-unit/sig define-values/invoke-unit/sig compound-unit/sig import export syn keyword schemeExtSyntax link syntax quasisyntax unsyntax with-syntax - hi def link schemeExtSyntax Type syn keyword schemeExtFunc format system-type current-extension-compiler current-extension-linker syn keyword schemeExtFunc use-standard-linker use-standard-compiler @@ -217,7 +216,6 @@ if exists("b:is_mzscheme") || exists("is_mzscheme") syn keyword schemeExtFunc exn:special-comment? exn:syntax? exn:thread? exn:user? exn:variable? exn:application:mismatch? " Command-line parsing syn keyword schemeExtFunc command-line current-command-line-arguments once-any help-labels multi once-each - hi def link schemeExtFunc PreProc " syntax quoting, unquoting and quasiquotation syn region schemeUnquote matchgroup=Delimiter start="#," end=![ \t\[\]()";]!me=e-1 contains=ALL @@ -230,6 +228,37 @@ if exists("b:is_mzscheme") || exists("is_mzscheme") syn region schemeQuoted matchgroup=Delimiter start="#['`](" matchgroup=Delimiter end=")" contains=ALL endif + +if exists("b:is_chicken") || exists("is_chicken") + syn match schemeOther oneline "##[-a-z!$%&*/:<=>?^_~0-9+.@#%]\+" + syn match schemeExtSyntax oneline "#:[-a-z!$%&*/:<=>?^_~0-9+.@#%]\+" + + syn keyword schemeExtSyntax unit uses declare hide foreign-declare foreign-parse foreign-parse/spec + syn keyword schemeExtSyntax foreign-lambda foreign-lambda* + syn keyword schemeExtSyntax let-optionals let-optionals* define-foreign-variable + syn keyword schemeExtFunc ##core#inline ##sys#error ##sys#update-errno + + " here-string + syn region schemeString start=+#<<\s*\z(.*\)+ end=+^\z1$+ + + if filereadable(expand("<sfile>:p:h")."/cpp.vim") + unlet! b:current_syntax + syn include @ChickenC <sfile>:p:h/cpp.vim + syn region ChickenC matchgroup=schemeOther start=+(\@<=foreign-declare "+ end=+")\@=+ contains=@ChickenC + syn region ChickenC matchgroup=schemeComment start=+foreign-declare\s*#<<\z(.*\)$+hs=s+15 end=+^\z1$+ contains=@ChickenC + syn region ChickenC matchgroup=schemeOther start=+(\@<=foreign-parse "+ end=+")\@=+ contains=@ChickenC + syn region ChickenC matchgroup=schemeComment start=+foreign-parse\s*#<<\z(.*\)$+hs=s+13 end=+^\z1$+ contains=@ChickenC + syn region ChickenC matchgroup=schemeOther start=+(\@<=foreign-parse/spec "+ end=+")\@=+ contains=@ChickenC + syn region ChickenC matchgroup=schemeComment start=+foreign-parse/spec\s*#<<\z(.*\)$+hs=s+18 end=+^\z1$+ contains=@ChickenC + syn region ChickenC matchgroup=schemeComment start=+#>+ end=+<#+ contains=@ChickenC + syn region ChickenC matchgroup=schemeComment start=+#>?+ end=+<#+ contains=@ChickenC + syn region ChickenC matchgroup=schemeComment start=+#>!+ end=+<#+ contains=@ChickenC + syn region ChickenC matchgroup=schemeComment start=+#>\$+ end=+<#+ contains=@ChickenC + syn region ChickenC matchgroup=schemeComment start=+#>%+ end=+<#+ contains=@ChickenC + endif + +endif + " Synchronization and the wrapping up... syn sync match matchPlace grouphere NONE "^[^ \t]" @@ -255,12 +284,14 @@ if version >= 508 || !exists("did_scheme_syntax_inits") HiLink schemeBoolean Boolean HiLink schemeDelimiter Delimiter - HiLink schemeConstant Constant + HiLink schemeConstant Constant HiLink schemeComment Comment HiLink schemeMultilineComment Comment HiLink schemeError Error + HiLink schemeExtSyntax Type + HiLink schemeExtFunc PreProc delcommand HiLink endif |