annotate runtime/syntax/conf.vim @ 14354:ffd834f893aa v8.1.0192

patch 8.1.0192: executing regexp recursively fails with a crash commit https://github.com/vim/vim/commit/0270f38e1ae484c31a80c813a08691c47a207f1a Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jul 17 05:43:58 2018 +0200 patch 8.1.0192: executing regexp recursively fails with a crash Problem: Executing regexp recursively fails with a crash. Solution: Move global variables into "rex".
author Christian Brabandt <cb@256bit.org>
date Tue, 17 Jul 2018 05:45:05 +0200
parents 7033303ea0c0
children e3ec2ec8841a
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: generic configure file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Bram Moolenaar <Bram@vim.org>
344
7033303ea0c0 updated for version 7.0089
vimboss
parents: 7
diff changeset
4 " Last Change: 2005 Jun 20
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
344
7033303ea0c0 updated for version 7.0089
vimboss
parents: 7
diff changeset
6 " Quit when a (custom) syntax file was already loaded
7033303ea0c0 updated for version 7.0089
vimboss
parents: 7
diff changeset
7 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 syn keyword confTodo contained TODO FIXME XXX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " Avoid matching "text#text", used in /etc/disktab and /etc/gettytab
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 syn match confComment "^#.*" contains=confTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 syn match confComment "\s#.*"ms=s+1 contains=confTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn region confString start=+"+ skip=+\\\\\|\\"+ end=+"+ oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn region confString start=+'+ skip=+\\\\\|\\'+ end=+'+ oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " Define the default highlighting.
344
7033303ea0c0 updated for version 7.0089
vimboss
parents: 7
diff changeset
19 " Only used when an item doesn't have highlighting yet
7033303ea0c0 updated for version 7.0089
vimboss
parents: 7
diff changeset
20 hi def link confComment Comment
7033303ea0c0 updated for version 7.0089
vimboss
parents: 7
diff changeset
21 hi def link confTodo Todo
7033303ea0c0 updated for version 7.0089
vimboss
parents: 7
diff changeset
22 hi def link confString String
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 let b:current_syntax = "conf"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " vim: ts=8 sw=2