Mercurial > vim
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 |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: Dot | |
3 " Filenames: *.dot | |
659 | 4 " Maintainer: Markus Mottl <markus.mottl@gmail.com> |
5 " URL: http://www.ocaml.info/vim/syntax/dot.vim | |
2833 | 6 " Last Change: 2011 May 17 - improved identifier matching + two new keywords |
20 | 7 " 2001 May 04 - initial version |
7 | 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 | 11 finish |
12 endif | |
13 | |
14 " Errors | |
15 syn match dotParErr ")" | |
16 syn match dotBrackErr "]" | |
17 syn match dotBraceErr "}" | |
18 | |
19 " Enclosing delimiters | |
20 syn region dotEncl transparent matchgroup=dotParEncl start="(" matchgroup=dotParEncl end=")" contains=ALLBUT,dotParErr | |
21 syn region dotEncl transparent matchgroup=dotBrackEncl start="\[" matchgroup=dotBrackEncl end="\]" contains=ALLBUT,dotBrackErr | |
22 syn region dotEncl transparent matchgroup=dotBraceEncl start="{" matchgroup=dotBraceEncl end="}" contains=ALLBUT,dotBraceErr | |
23 | |
24 " Comments | |
25 syn region dotComment start="//" end="$" contains=dotComment,dotTodo | |
26 syn region dotComment start="/\*" end="\*/" contains=dotComment,dotTodo | |
27 syn keyword dotTodo contained TODO FIXME XXX | |
28 | |
29 " Strings | |
30 syn region dotString start=+"+ skip=+\\\\\|\\"+ end=+"+ | |
31 | |
32 " General keywords | |
33 syn keyword dotKeyword digraph node edge subgraph | |
34 | |
35 " Graph attributes | |
36 syn keyword dotType center layers margin mclimit name nodesep nslimit | |
37 syn keyword dotType ordering page pagedir rank rankdir ranksep ratio | |
38 syn keyword dotType rotate size | |
39 | |
40 " Node attributes | |
41 syn keyword dotType distortion fillcolor fontcolor fontname fontsize | |
42 syn keyword dotType height layer orientation peripheries regular | |
43 syn keyword dotType shape shapefile sides skew width | |
44 | |
45 " Edge attributes | |
46 syn keyword dotType arrowhead arrowsize arrowtail constraint decorateP | |
2833 | 47 syn keyword dotType dir headclip headlabel headport labelangle labeldistance |
7 | 48 syn keyword dotType labelfontcolor labelfontname labelfontsize |
49 syn keyword dotType minlen port_label_distance samehead sametail | |
2833 | 50 syn keyword dotType tailclip taillabel tailport weight |
7 | 51 |
52 " Shared attributes (graphs, nodes, edges) | |
53 syn keyword dotType color | |
54 | |
55 " Shared attributes (graphs and edges) | |
56 syn keyword dotType bgcolor label URL | |
57 | |
58 " Shared attributes (nodes and edges) | |
59 syn keyword dotType fontcolor fontname fontsize layer style | |
60 | |
61 " Special chars | |
62 syn match dotKeyChar "=" | |
63 syn match dotKeyChar ";" | |
64 syn match dotKeyChar "->" | |
65 | |
66 " Identifier | |
2833 | 67 syn match dotIdentifier /\<\w\+\(:\w\+\)\?\>/ |
7 | 68 |
69 " Synchronization | |
70 syn sync minlines=50 | |
71 syn sync maxlines=500 | |
72 | |
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 | 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 | 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 | 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 | 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 | 93 |
94 | |
95 let b:current_syntax = "dot" | |
96 | |
97 " vim: ts=8 |