annotate runtime/syntax/config.vim @ 18:293621502c4d v7.0010

updated for version 7.0010
author vimboss
date Sun, 18 Jul 2004 21:34:53 +0000
parents 3fc0f57ecb91
children 7bc41231fbc7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: configure.in script: M4 with sh
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Christian Hammesr <ch@lathspell.westend.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: 2001 May 09
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Well, I actually even do not know much about m4. This explains why there
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " is probably very much missing here, yet !
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " But I missed a good hilighting when editing my GNU autoconf/automake
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " script, so I wrote this quick and dirty patch.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " define the config syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match configdelimiter "[()\[\];,]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match configoperator "[=|&\*\+\<\>]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match configcomment "\(dnl.*\)\|\(#.*\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match configfunction "\<[A-Z_][A-Z0-9_]*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match confignumber "[-+]\=\<\d\+\(\.\d*\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword configkeyword if then else fi test for in do done
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword configspecial cat rm eval
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn region configstring start=+"+ skip=+\\"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn region configstring start=+`+ skip=+\\'+ end=+'+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn region configstring start=+`+ skip=+\\'+ end=+`+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 if version >= 508 || !exists("did_config_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 let did_config_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 HiLink configdelimiter Delimiter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 HiLink configoperator Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 HiLink configcomment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 HiLink configfunction Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 HiLink confignumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 HiLink configkeyword Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 HiLink configspecial Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 HiLink configstring String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 let b:current_syntax = "config"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 " vim: ts=4