Mercurial > vim
comparison runtime/syntax/config.vim @ 13231:167a030448fa
Update runtime files.
commit https://github.com/vim/vim/commit/7254067ee970686cc3ff4a1effc3e49e9192a5c1
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 9 22:00:53 2018 +0100
Update runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 09 Feb 2018 22:15:07 +0100 |
parents | 46763b01cd9a |
children |
comparison
equal
deleted
inserted
replaced
13230:0b201ae05cd3 | 13231:167a030448fa |
---|---|
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 " Former Maintainer: Christian Hammesr <ch@lathspell.westend.com> |
4 " Last Change: 2015 Jan 14 | 4 " Last Change: 2018 Feb 03 |
5 " (patch from Yngve Inntjore Levinsen to detect AC_MSG) | 5 " (patch from Yngve Inntjore Levinsen to detect AC_MSG) |
6 " (patch from Khym Chanur to add @Spell) | 6 " (patch from Khym Chanur to add @Spell) |
7 " (patch from James McCoy to fix paren matching) | |
7 | 8 |
8 " Well, I actually even do not know much about m4. This explains why there | 9 " Well, I actually even do not know much about m4. This explains why there |
9 " is probably very much missing here, yet ! | 10 " is probably very much missing here, yet ! |
10 " But I missed good highlighting when editing my GNU autoconf/automake | 11 " But I missed good highlighting when editing my GNU autoconf/automake |
11 " script, so I wrote this quick and dirty patch. | 12 " script, so I wrote this quick and dirty patch. |
28 | 29 |
29 " This shortens the script, see syn-ext-match.. | 30 " This shortens the script, see syn-ext-match.. |
30 syn region configstring start=+\z(["'`]\)+ skip=+\\\z1+ end=+\z1+ contains=@Spell | 31 syn region configstring start=+\z(["'`]\)+ skip=+\\\z1+ end=+\z1+ contains=@Spell |
31 | 32 |
32 " Anything inside AC_MSG_TYPE([...]) and AC_MSG_TYPE(...) is a string. | 33 " Anything inside AC_MSG_TYPE([...]) and AC_MSG_TYPE(...) is a string. |
33 syn region configstring matchgroup=configfunction start="AC_MSG_[A-Z]*\ze(\[" matchgroup=configdelimiter end="\])" contains=configdelimiter,@Spell | 34 syn region configmsg matchgroup=configfunction start="AC_MSG_[A-Z]*\ze(\[" matchgroup=configdelimiter end="\])" contains=configdelimiter,@Spell |
34 syn region configstring matchgroup=configfunction start="AC_MSG_[A-Z]*\ze([^[]" matchgroup=configdelimiter end=")" contains=configdelimiter,@Spell | 35 syn region configmsg matchgroup=configfunction start="AC_MSG_[A-Z]*\ze([^[]" matchgroup=configdelimiter end=")" contains=configdelimiter,@Spell |
35 | 36 |
36 " Define the default highlighting. | 37 " Define the default highlighting. |
37 " Only when an item doesn't have highlighting yet | 38 " Only when an item doesn't have highlighting yet |
38 | 39 |
39 hi def link configdelimiter Delimiter | 40 hi def link configdelimiter Delimiter |
43 hi def link configfunction Function | 44 hi def link configfunction Function |
44 hi def link confignumber Number | 45 hi def link confignumber Number |
45 hi def link configkeyword Keyword | 46 hi def link configkeyword Keyword |
46 hi def link configspecial Special | 47 hi def link configspecial Special |
47 hi def link configstring String | 48 hi def link configstring String |
49 hi def link configmsg String | |
48 | 50 |
49 | 51 |
50 let b:current_syntax = "config" | 52 let b:current_syntax = "config" |
51 | 53 |
52 " vim: ts=4 | 54 " vim: ts=4 |