annotate runtime/syntax/conf.vim @ 9965:b329e3ca0dcb v7.4.2256

commit https://github.com/vim/vim/commit/db249f26edf7a5f88d1f4468d08ec5b84f5ab7ad Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 26 16:29:47 2016 +0200 patch 7.4.2256 Problem: Coverity complains about null pointer check. Solution: Remove wrong and superfluous error check.
author Christian Brabandt <cb@256bit.org>
date Fri, 26 Aug 2016 16:30:08 +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