From aed8ce9da277f5ecffe968b324f242c41c3b752a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 10:50:31 +0200 Subject: Adding upstream version 2:9.0.1378. Signed-off-by: Daniel Baumann --- runtime/syntax/apachestyle.vim | 54 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 runtime/syntax/apachestyle.vim (limited to 'runtime/syntax/apachestyle.vim') diff --git a/runtime/syntax/apachestyle.vim b/runtime/syntax/apachestyle.vim new file mode 100644 index 0000000..bd5c89d --- /dev/null +++ b/runtime/syntax/apachestyle.vim @@ -0,0 +1,54 @@ +" Vim syntax file +" Language: Apache-Style configuration files (proftpd.conf/apache.conf/..) +" Maintainer: Ben RUBSON +" Former Maintainer: Christian Hammers +" ChangeLog: +" 2017-12-17,ch +" correctly detect comments +" 2001-05-04,ch +" adopted Vim 6.0 syntax style +" 1999-10-28,ch +" initial release + +" The following formats are recognised: +" Apache-style .conf +" # Comment +" Option value +" Option value1 value2 +" Option = value1 value2 #not apache but also allowed +"
+" Option value +" +" +"
+ +" quit when a syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +syn case ignore + +syn match apOption /^\s*[^ \t#<=]*/ +syn match apComment /^\s*#.*$/ +"syn match apLastValue /[^ \t<=#]*$/ contains=apComment ugly + +" tags +syn region apTag start=// contains=apTagOption,apTagError +" the following should originally be " [^<>]+" but this didn't work :( +syn match apTagOption contained / [-\/_\.:*a-zA-Z0-9]\+/ms=s+1 +syn match apTagError contained /[^>]