comparison runtime/syntax/config.vim @ 6505:198e1e498edf

Updated runtime files.
author Bram Moolenaar <bram@vim.org>
date Wed, 14 Jan 2015 19:42:21 +0100
parents 7bc41231fbc7
children 43efa4f5a8ea
comparison
equal deleted inserted replaced
6504:ca0b33e86f83 6505:198e1e498edf
1 " Vim syntax file 1 " Vim syntax file
2 " Language: configure.in script: M4 with sh 2 " Language: configure.in script: M4 with sh
3 " Maintainer: Christian Hammesr <ch@lathspell.westend.com> 3 " Maintainer: Christian Hammesr <ch@lathspell.westend.com>
4 " Last Change: 2008 Sep 03 4 " Last Change: 2015 Jan 14
5 " (patch from Yngve Inntjore Levinsen to detect AC_MSG)
6 " (patch from Khym Chanur to add @Spell)
5 7
6 " Well, I actually even do not know much about m4. This explains why there 8 " Well, I actually even do not know much about m4. This explains why there
7 " is probably very much missing here, yet ! 9 " is probably very much missing here, yet !
8 " But I missed a good hilighting when editing my GNU autoconf/automake 10 " But I missed good highlighting when editing my GNU autoconf/automake
9 " script, so I wrote this quick and dirty patch. 11 " script, so I wrote this quick and dirty patch.
10 12
11 13
12 " For version 5.x: Clear all syntax items 14 " For version 5.x: Clear all syntax items
13 " For version 6.x: Quit when a syntax file was already loaded 15 " For version 6.x: Quit when a syntax file was already loaded
18 endif 20 endif
19 21
20 " define the config syntax 22 " define the config syntax
21 syn match configdelimiter "[()\[\];,]" 23 syn match configdelimiter "[()\[\];,]"
22 syn match configoperator "[=|&\*\+\<\>]" 24 syn match configoperator "[=|&\*\+\<\>]"
23 syn match configcomment "\(dnl.*\)\|\(#.*\)" 25 syn match configcomment "\(dnl.*\)\|\(#.*\)" contains=configDnl,@Spell
24 syn match configfunction "\<[A-Z_][A-Z0-9_]*\>" 26 syn match configfunction "\<[A-Z_][A-Z0-9_]*\>"
25 syn match confignumber "[-+]\=\<\d\+\(\.\d*\)\=\>" 27 syn match confignumber "[-+]\=\<\d\+\(\.\d*\)\=\>"
28 syn keyword configDnl dnl contained
26 syn keyword configkeyword if then else fi test for in do done 29 syn keyword configkeyword if then else fi test for in do done
27 syn keyword configspecial cat rm eval 30 syn keyword configspecial cat rm eval
28 syn region configstring start=+"+ skip=+\\"+ end=+"+ 31
29 syn region configstring start=+'+ skip=+\\'+ end=+'+ 32 " This shortens the script, see syn-ext-match..
30 syn region configstring start=+`+ skip=+\\'+ end=+`+ 33 syn region configstring start=+\z(["'`]\)+ skip=+\\\z1+ end=+\z1+ contains=@Spell
34
35 " Anything inside AC_MSG_TYPE([...]) and AC_MSG_TYPE(...) is a string.
36 syn region configstring matchgroup=configfunction start="AC_MSG_[A-Z]*\ze(\[" matchgroup=configdelimiter end="\])" contains=configdelimiter,@Spell
37 syn region configstring matchgroup=configfunction start="AC_MSG_[A-Z]*\ze([^[]" matchgroup=configdelimiter end=")" contains=configdelimiter,@Spell
31 38
32 " Define the default highlighting. 39 " Define the default highlighting.
33 " For version 5.7 and earlier: only when not done already 40 " For version 5.7 and earlier: only when not done already
34 " For version 5.8 and later: only when an item doesn't have highlighting yet 41 " For version 5.8 and later: only when an item doesn't have highlighting yet
35 if version >= 508 || !exists("did_config_syntax_inits") 42 if version >= 508 || !exists("did_config_syntax_inits")
41 endif 48 endif
42 49
43 HiLink configdelimiter Delimiter 50 HiLink configdelimiter Delimiter
44 HiLink configoperator Operator 51 HiLink configoperator Operator
45 HiLink configcomment Comment 52 HiLink configcomment Comment
53 HiLink configDnl Comment
46 HiLink configfunction Function 54 HiLink configfunction Function
47 HiLink confignumber Number 55 HiLink confignumber Number
48 HiLink configkeyword Keyword 56 HiLink configkeyword Keyword
49 HiLink configspecial Special 57 HiLink configspecial Special
50 HiLink configstring String 58 HiLink configstring String