annotate runtime/syntax/apachestyle.vim @ 28380:90d43a367955 v8.2.4715

patch 8.2.4715: Vagrantfile not recognized Commit: https://github.com/vim/vim/commit/5e1792270a072a96157e5d5e1d6a97414e26d0bf Author: Julien Voisin <jvoisin@google.com> Date: Fri Apr 8 19:55:39 2022 +0100 patch 8.2.4715: Vagrantfile not recognized Problem: Vagrantfile not recognized. Solution: Recognize Vagrantfile as ruby. (Julien Voisin, closes https://github.com/vim/vim/issues/10119)
author Bram Moolenaar <Bram@vim.org>
date Fri, 08 Apr 2022 21:00:03 +0200
parents a6d3e2081544
children
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: Apache-Style configuration files (proftpd.conf/apache.conf/..)
13051
a6d3e2081544 Update runtime files
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
3 " Maintainer: Ben RUBSON <ben.rubson@gmail.com>
a6d3e2081544 Update runtime files
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
4 " Former Maintainer: Christian Hammers <ch@westend.com>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " ChangeLog:
13051
a6d3e2081544 Update runtime files
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
6 " 2017-12-17,ch
a6d3e2081544 Update runtime files
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
7 " correctly detect comments
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " 2001-05-04,ch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " adopted Vim 6.0 syntax style
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " 1999-10-28,ch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " initial release
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " The following formats are recognised:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " Apache-style .conf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " # Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " Option value
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " Option value1 value2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " Option = value1 value2 #not apache but also allowed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " <Section Name?>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " Option value
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " <SubSection Name?>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " </SubSection>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " </Section>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
25 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
26 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
13051
a6d3e2081544 Update runtime files
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
32 syn match apOption /^\s*[^ \t#<=]*/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match apComment /^\s*#.*$/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 "syn match apLastValue /[^ \t<=#]*$/ contains=apComment ugly
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 " tags
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn region apTag start=/</ end=/>/ contains=apTagOption,apTagError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " the following should originally be " [^<>]+" but this didn't work :(
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match apTagOption contained / [-\/_\.:*a-zA-Z0-9]\+/ms=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match apTagError contained /[^>]</ms=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
43 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
45 hi def link apComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
46 hi def link apOption Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
47 "hi def link apLastValue Identifier ugly?
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
48 hi def link apTag Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
49 hi def link apTagOption Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
50 hi def link apTagError Error
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 let b:current_syntax = "apachestyle"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 " vim: ts=8