annotate runtime/syntax/dot.vim @ 20423:8c98c74176ac v8.2.0766

patch 8.2.0766: display error when using 'number' and 'breakindent' Commit: https://github.com/vim/vim/commit/e882f7a73c8fa48707de71035eb0a7ccc6ac8548 Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 16 14:07:39 2020 +0200 patch 8.2.0766: display error when using 'number' and 'breakindent' Problem: Display error when using 'number' and 'breakindent'. Solution: Adjust extra spaces in the first row. (Ken Takata, closes https://github.com/vim/vim/issues/6089, closes #5986)
author Bram Moolenaar <Bram@vim.org>
date Sat, 16 May 2020 14:15:06 +0200
parents 46763b01cd9a
children 4ab4ef0c48b1
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: Dot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Filenames: *.dot
659
d6a69271cb9a updated for version 7.0194
vimboss
parents: 20
diff changeset
4 " Maintainer: Markus Mottl <markus.mottl@gmail.com>
d6a69271cb9a updated for version 7.0194
vimboss
parents: 20
diff changeset
5 " URL: http://www.ocaml.info/vim/syntax/dot.vim
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 659
diff changeset
6 " Last Change: 2011 May 17 - improved identifier matching + two new keywords
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 7
diff changeset
7 " 2001 May 04 - initial version
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 2833
diff changeset
9 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 2833
diff changeset
10 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " Errors
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn match dotParErr ")"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn match dotBrackErr "]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn match dotBraceErr "}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " Enclosing delimiters
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn region dotEncl transparent matchgroup=dotParEncl start="(" matchgroup=dotParEncl end=")" contains=ALLBUT,dotParErr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn region dotEncl transparent matchgroup=dotBrackEncl start="\[" matchgroup=dotBrackEncl end="\]" contains=ALLBUT,dotBrackErr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn region dotEncl transparent matchgroup=dotBraceEncl start="{" matchgroup=dotBraceEncl end="}" contains=ALLBUT,dotBraceErr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 " Comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn region dotComment start="//" end="$" contains=dotComment,dotTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn region dotComment start="/\*" end="\*/" contains=dotComment,dotTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword dotTodo contained TODO FIXME XXX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 " Strings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn region dotString start=+"+ skip=+\\\\\|\\"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 " General keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword dotKeyword digraph node edge subgraph
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 " Graph attributes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword dotType center layers margin mclimit name nodesep nslimit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword dotType ordering page pagedir rank rankdir ranksep ratio
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword dotType rotate size
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 " Node attributes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword dotType distortion fillcolor fontcolor fontname fontsize
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword dotType height layer orientation peripheries regular
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword dotType shape shapefile sides skew width
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 " Edge attributes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword dotType arrowhead arrowsize arrowtail constraint decorateP
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 659
diff changeset
47 syn keyword dotType dir headclip headlabel headport labelangle labeldistance
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword dotType labelfontcolor labelfontname labelfontsize
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword dotType minlen port_label_distance samehead sametail
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 659
diff changeset
50 syn keyword dotType tailclip taillabel tailport weight
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 " Shared attributes (graphs, nodes, edges)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword dotType color
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 " Shared attributes (graphs and edges)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword dotType bgcolor label URL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 " Shared attributes (nodes and edges)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword dotType fontcolor fontname fontsize layer style
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 " Special chars
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn match dotKeyChar "="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn match dotKeyChar ";"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn match dotKeyChar "->"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 " Identifier
2833
c869ff170ddc Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 659
diff changeset
67 syn match dotIdentifier /\<\w\+\(:\w\+\)\?\>/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 " Synchronization
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn sync minlines=50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn sync maxlines=500
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 2833
diff changeset
74 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
76 hi def link dotParErr Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
77 hi def link dotBraceErr Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
78 hi def link dotBrackErr Error
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 2833
diff changeset
79
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
80 hi def link dotComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
81 hi def link dotTodo Todo
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
83 hi def link dotParEncl Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
84 hi def link dotBrackEncl Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
85 hi def link dotBraceEncl Keyword
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
87 hi def link dotKeyword Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
88 hi def link dotType Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
89 hi def link dotKeyChar Keyword
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
91 hi def link dotString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
92 hi def link dotIdentifier Identifier
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 let b:current_syntax = "dot"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 " vim: ts=8