annotate runtime/syntax/tidy.vim @ 8495:8877ea0a27ec v7.4.1538

commit https://github.com/vim/vim/commit/4fc563b397949ce23190045112fa08c0776a56e6 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 12 12:40:58 2016 +0100 patch 7.4.1538 Problem: Selection with the mouse does not work in command line mode. Solution: Use cairo functions. (Kazunobu Kuriyama)
author Christian Brabandt <cb@256bit.org>
date Sat, 12 Mar 2016 12:45:04 +0100
parents 42bf9264e64e
children 34c45ee4210d
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
5277
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
2 " Language: HMTL Tidy configuration file (/etc/tidyrc ~/.tidyrc)
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
3 " Maintainer: Doug Kearns <dougkearns@gmail.com>
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
4 " Last Change: 2013 June 01
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
5277
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
6 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
5277
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
10 setlocal iskeyword=@,48-57,-
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
5277
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
12 syn match tidyComment "^\s*//.*$" contains=tidyTodo
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
13 syn match tidyComment "^\s*#.*$" contains=tidyTodo
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
14 syn keyword tidyTodo TODO NOTE FIXME XXX contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
5277
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
16 syn match tidyAssignment "^[a-z0-9-]\+:\s*.*$" contains=tidyOption,@tidyValue,tidyDelimiter
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
17 syn match tidyDelimiter ":" contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match tidyNewTagAssignment "^new-\l\+-tags:\s*.*$" contains=tidyNewTagOption,tidyNewTagDelimiter,tidyNewTagValue,tidyDelimiter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match tidyNewTagDelimiter "," contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match tidyNewTagValue "\<\w\+\>" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn case ignore
5277
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
24 syn keyword tidyBoolean t[rue] f[alse] y[es] n[o] contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn case match
5277
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
26 syn match tidyDoctype "\<\%(omit\|auto\|strict\|loose\|transitional\|user\)\>" contained
548
f43150a669dc updated for version 7.0155
vimboss
parents: 36
diff changeset
27 " NOTE: use match rather than keyword here so that tidyEncoding 'raw' does not
f43150a669dc updated for version 7.0155
vimboss
parents: 36
diff changeset
28 " always have precedence over tidyOption 'raw'
5277
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
29 syn match tidyEncoding "\<\%(ascii\|latin0\|latin1\|raw\|utf8\|iso2022\|mac\|utf16le\|utf16be\|utf16\|win1252\|ibm858\|big5\|shiftjis\)\>" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
30 syn match tidyNewline "\<\%(LF\|CRLF\|CR\)\>"
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
31 syn match tidyNumber "\<\d\+\>" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
32 syn match tidyRepeat "\<\%(keep-first\|keep-last\)\>" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
33 syn region tidyString start=+"+ skip=+\\\\\|\\"+ end=+"+ contained oneline
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
34 syn region tidyString start=+'+ skip=+\\\\\|\\'+ end=+'+ contained oneline
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
35 syn cluster tidyValue contains=tidyBoolean,tidyDoctype,tidyEncoding,tidyNewline,tidyNumber,tidyRepeat,tidyString
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
5277
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
37 syn match tidyOption "^accessibility-check" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
38 syn match tidyOption "^add-xml-decl" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
39 syn match tidyOption "^add-xml-pi" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
40 syn match tidyOption "^add-xml-space" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
41 syn match tidyOption "^alt-text" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
42 syn match tidyOption "^anchor-as-name" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
43 syn match tidyOption "^ascii-chars" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
44 syn match tidyOption "^assume-xml-procins" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
45 syn match tidyOption "^bare" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
46 syn match tidyOption "^break-before-br" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
47 syn match tidyOption "^char-encoding" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
48 syn match tidyOption "^clean" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
49 syn match tidyOption "^css-prefix" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
50 syn match tidyOption "^decorate-inferred-ul" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
51 syn match tidyOption "^doctype" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
52 syn match tidyOption "^doctype-mode" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
53 syn match tidyOption "^drop-empty-paras" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
54 syn match tidyOption "^drop-font-tags" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
55 syn match tidyOption "^drop-proprietary-attributes" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
56 syn match tidyOption "^enclose-block-text" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
57 syn match tidyOption "^enclose-text" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
58 syn match tidyOption "^error-file" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
59 syn match tidyOption "^escape-cdata" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
60 syn match tidyOption "^fix-backslash" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
61 syn match tidyOption "^fix-bad-comments" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
62 syn match tidyOption "^fix-uri" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
63 syn match tidyOption "^force-output" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
64 syn match tidyOption "^gnu-emacs" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
65 syn match tidyOption "^gnu-emacs-file" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
66 syn match tidyOption "^hide-comments" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
67 syn match tidyOption "^hide-endtags" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
68 syn match tidyOption "^indent" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
69 syn match tidyOption "^indent-attributes" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
70 syn match tidyOption "^indent-cdata" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
71 syn match tidyOption "^indent-spaces" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
72 syn match tidyOption "^input-encoding" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
73 syn match tidyOption "^input-xml" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
74 syn match tidyOption "^join-classes" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
75 syn match tidyOption "^join-styles" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
76 syn match tidyOption "^keep-time" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
77 syn match tidyOption "^language" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
78 syn match tidyOption "^literal-attributes" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
79 syn match tidyOption "^logical-emphasis" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
80 syn match tidyOption "^lower-literals" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
81 syn match tidyOption "^markup" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
82 syn match tidyOption "^merge-divs" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
83 syn match tidyOption "^merge-spans" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
84 syn match tidyOption "^ncr" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
85 syn match tidyOption "^newline" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
86 syn match tidyOption "^numeric-entities" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
87 syn match tidyOption "^output-bom" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
88 syn match tidyOption "^output-encoding" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
89 syn match tidyOption "^output-file" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
90 syn match tidyOption "^output-html" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
91 syn match tidyOption "^output-xhtml" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
92 syn match tidyOption "^output-xml" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
93 syn match tidyOption "^preserve-entities" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
94 syn match tidyOption "^punctuation-wrap" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
95 syn match tidyOption "^quiet" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
96 syn match tidyOption "^quote-ampersand" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
97 syn match tidyOption "^quote-marks" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
98 syn match tidyOption "^quote-nbsp" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
99 syn match tidyOption "^raw" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
100 syn match tidyOption "^repeated-attributes" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
101 syn match tidyOption "^replace-color" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
102 syn match tidyOption "^show-body-only" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
103 syn match tidyOption "^show-errors" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
104 syn match tidyOption "^show-warnings" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
105 syn match tidyOption "^slide-style" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
106 syn match tidyOption "^sort-attributes" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
107 syn match tidyOption "^split" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
108 syn match tidyOption "^tab-size" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
109 syn match tidyOption "^tidy-mark" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
110 syn match tidyOption "^uppercase-attributes" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
111 syn match tidyOption "^uppercase-tags" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
112 syn match tidyOption "^word-2000" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
113 syn match tidyOption "^wrap" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
114 syn match tidyOption "^wrap-asp" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
115 syn match tidyOption "^wrap-attributes" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
116 syn match tidyOption "^wrap-jste" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
117 syn match tidyOption "^wrap-php" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
118 syn match tidyOption "^wrap-script-literals" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
119 syn match tidyOption "^wrap-sections" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
120 syn match tidyOption "^write-back" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
121 syn match tidyOption "^vertical-space" contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122
5277
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
123 syn match tidyNewTagOption "^new-blocklevel-tags" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
124 syn match tidyNewTagOption "^new-empty-tags" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
125 syn match tidyNewTagOption "^new-inline-tags" contained
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
126 syn match tidyNewTagOption "^new-pre-tags" contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127
5277
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
128 hi def link tidyBoolean Boolean
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
129 hi def link tidyComment Comment
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
130 hi def link tidyDelimiter Special
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
131 hi def link tidyDoctype Constant
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
132 hi def link tidyEncoding Constant
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
133 hi def link tidyNewline Constant
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
134 hi def link tidyNewTagDelimiter Special
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
135 hi def link tidyNewTagOption Identifier
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
136 hi def link tidyNewTagValue Constant
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
137 hi def link tidyNumber Number
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
138 hi def link tidyOption Identifier
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
139 hi def link tidyRepeat Constant
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
140 hi def link tidyString String
42bf9264e64e Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 548
diff changeset
141 hi def link tidyTodo Todo
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 let b:current_syntax = "tidy"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 " vim: ts=8