textpow 0.10.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +7 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +30 -0
- data/{History.txt → History.rdoc} +10 -0
- data/{README.txt → MIT-LICENSE.txt} +0 -30
- data/README.rdoc +82 -0
- data/Rakefile +42 -49
- data/bin/plist2syntax +0 -0
- data/bin/plist2yaml +0 -0
- data/examples/benchmark_js.rb +13 -0
- data/examples/jquery.js +9046 -0
- data/lib/textpow.rb +43 -3
- data/lib/textpow/debug_processor.rb +35 -35
- data/lib/textpow/recording_processor.rb +13 -0
- data/lib/textpow/score_manager.rb +60 -60
- data/lib/textpow/syntax.rb +303 -262
- data/lib/textpow/syntax/broken/markdown.syntax +519 -0
- data/lib/textpow/syntax/broken/php.syntax +1253 -0
- data/lib/textpow/syntax/buggy/nemerle.syntax +74 -0
- data/lib/textpow/syntax/old/YAML.yaml +160 -0
- data/lib/textpow/syntax/old/txt2tags.yaml +139 -0
- data/lib/textpow/syntax/source.actionscript.syntax +97 -0
- data/lib/textpow/syntax/source.active4d.library.syntax +21 -0
- data/lib/textpow/syntax/source.active4d.syntax +276 -0
- data/lib/textpow/syntax/source.ada.syntax +33 -0
- data/lib/textpow/syntax/source.antlr.syntax +151 -0
- data/lib/textpow/syntax/source.apache-config.mod_perl.syntax +50 -0
- data/lib/textpow/syntax/source.apache-config.syntax +191 -0
- data/lib/textpow/syntax/source.applescript.syntax +384 -0
- data/lib/textpow/syntax/source.asp.syntax +70 -0
- data/lib/textpow/syntax/source.asp.vb.net.syntax +129 -0
- data/lib/textpow/syntax/source.c++.qt.syntax +26 -0
- data/lib/textpow/syntax/source.c++.syntax +186 -0
- data/lib/textpow/syntax/source.c-sharp.syntax +59 -0
- data/lib/textpow/syntax/source.c.ragel.syntax +201 -0
- data/lib/textpow/syntax/source.c.syntax +414 -0
- data/lib/textpow/syntax/source.camlp4.ocaml.syntax +36 -0
- data/lib/textpow/syntax/source.cm.syntax +32 -0
- data/lib/textpow/syntax/source.coffee.syntax +216 -0
- data/lib/textpow/syntax/source.context-free.syntax +176 -0
- data/lib/textpow/syntax/source.css.beta.syntax +1925 -0
- data/lib/textpow/syntax/source.css.syntax +195 -0
- data/lib/textpow/syntax/source.d.syntax +142 -0
- data/lib/textpow/syntax/source.diff.syntax +81 -0
- data/lib/textpow/syntax/source.dot.syntax +47 -0
- data/lib/textpow/syntax/source.dylan.syntax +62 -0
- data/lib/textpow/syntax/source.eiffel.syntax +78 -0
- data/lib/textpow/syntax/source.erlang.syntax +922 -0
- data/lib/textpow/syntax/source.fortran.syntax +141 -0
- data/lib/textpow/syntax/source.fscript.syntax +80 -0
- data/lib/textpow/syntax/source.fxscript.syntax +142 -0
- data/lib/textpow/syntax/source.gri.syntax +83 -0
- data/lib/textpow/syntax/source.groovy.groovy.syntax +191 -0
- data/lib/textpow/syntax/source.haskell.syntax +88 -0
- data/lib/textpow/syntax/source.icalendar.syntax +32 -0
- data/lib/textpow/syntax/source.inform.syntax +48 -0
- data/lib/textpow/syntax/source.ini.syntax +55 -0
- data/lib/textpow/syntax/source.io.syntax +81 -0
- data/lib/textpow/syntax/source.java-props.syntax +20 -0
- data/lib/textpow/syntax/source.java.syntax +211 -0
- data/lib/textpow/syntax/source.js.greasemonkey.syntax +34 -0
- data/lib/textpow/syntax/source.js.jquery.syntax +114 -0
- data/lib/textpow/syntax/source.js.mootools.syntax +572 -0
- data/lib/textpow/syntax/source.js.prototype.bracketed.syntax +140 -0
- data/lib/textpow/syntax/source.js.prototype.syntax +72 -0
- data/lib/textpow/syntax/source.js.syntax +256 -0
- data/lib/textpow/syntax/source.js.yui.syntax +176 -0
- data/lib/textpow/syntax/source.json.syntax +136 -0
- data/lib/textpow/syntax/source.lex.syntax +219 -0
- data/lib/textpow/syntax/source.lighttpd-config.syntax +54 -0
- data/lib/textpow/syntax/source.lilypond.syntax +492 -0
- data/lib/textpow/syntax/source.lisp.syntax +61 -0
- data/lib/textpow/syntax/source.logo.syntax +29 -0
- data/lib/textpow/syntax/source.logtalk.syntax +152 -0
- data/lib/textpow/syntax/source.lua.syntax +86 -0
- data/lib/textpow/syntax/source.makefile.syntax +36 -0
- data/lib/textpow/syntax/source.matlab.syntax +142 -0
- data/lib/textpow/syntax/source.mel.syntax +92 -0
- data/lib/textpow/syntax/source.mips.syntax +66 -0
- data/lib/textpow/syntax/source.ml.syntax +121 -0
- data/lib/textpow/syntax/source.modula-3.syntax +47 -0
- data/lib/textpow/syntax/source.nant-build.syntax +53 -0
- data/lib/textpow/syntax/source.objc++.syntax +18 -0
- data/lib/textpow/syntax/source.objc.syntax +233 -0
- data/lib/textpow/syntax/source.ocaml.syntax +764 -0
- data/lib/textpow/syntax/source.ocamllex.syntax +167 -0
- data/lib/textpow/syntax/source.ocamlyacc.syntax +184 -0
- data/lib/textpow/syntax/source.open-gl.syntax +14 -0
- data/lib/textpow/syntax/source.pascal.syntax +77 -0
- data/lib/textpow/syntax/source.pascal.vectorscript.syntax +57 -0
- data/lib/textpow/syntax/source.perl.syntax +1113 -0
- data/lib/textpow/syntax/source.php.cake.syntax +55 -0
- data/lib/textpow/syntax/source.plist.tm-grammar.syntax +708 -0
- data/lib/textpow/syntax/source.postscript.syntax +114 -0
- data/lib/textpow/syntax/source.processing.syntax +106 -0
- data/lib/textpow/syntax/source.prolog.syntax +40 -0
- data/lib/textpow/syntax/source.python.django.syntax +21 -0
- data/lib/textpow/syntax/source.python.syntax +868 -0
- data/lib/textpow/syntax/source.qmake.syntax +114 -0
- data/lib/textpow/syntax/source.quake-config.syntax +32 -0
- data/lib/textpow/syntax/source.r-console.syntax +16 -0
- data/lib/textpow/syntax/source.r.syntax +81 -0
- data/lib/textpow/syntax/source.regexp.oniguruma.syntax +107 -0
- data/lib/textpow/syntax/source.regexp.python.syntax +109 -0
- data/lib/textpow/syntax/source.regexp.syntax +50 -0
- data/lib/textpow/syntax/source.remind.syntax +253 -0
- data/lib/textpow/syntax/source.rez.syntax +80 -0
- data/lib/textpow/syntax/source.ruby.experimental.syntax +145 -0
- data/lib/textpow/syntax/source.ruby.rails.syntax +88 -0
- data/lib/textpow/syntax/source.ruby.syntax +1035 -0
- data/lib/textpow/syntax/source.s5.syntax +69 -0
- data/lib/textpow/syntax/source.sass.syntax +45 -0
- data/lib/textpow/syntax/source.scheme.syntax +347 -0
- data/lib/textpow/syntax/source.scilab.syntax +41 -0
- data/lib/textpow/syntax/source.scss.syntax +527 -0
- data/lib/textpow/syntax/source.shell.syntax +384 -0
- data/lib/textpow/syntax/source.slate.syntax +149 -0
- data/lib/textpow/syntax/source.smarty.syntax +63 -0
- data/lib/textpow/syntax/source.sql.ruby.syntax +18 -0
- data/lib/textpow/syntax/source.sql.syntax +237 -0
- data/lib/textpow/syntax/source.ssh-config.syntax +33 -0
- data/lib/textpow/syntax/source.strings.syntax +39 -0
- data/lib/textpow/syntax/source.swig.syntax +57 -0
- data/lib/textpow/syntax/source.tcl.macports.syntax +163 -0
- data/lib/textpow/syntax/source.tcl.syntax +152 -0
- data/lib/textpow/syntax/source.yaml.syntax +160 -0
- data/lib/textpow/syntax/text.active4d-ini.syntax +50 -0
- data/lib/textpow/syntax/text.bbcode.syntax +287 -0
- data/lib/textpow/syntax/text.bibtex.syntax +151 -0
- data/lib/textpow/syntax/text.blog.html.syntax +41 -0
- data/lib/textpow/syntax/text.blog.markdown.syntax +42 -0
- data/lib/textpow/syntax/text.blog.syntax +27 -0
- data/lib/textpow/syntax/text.blog.textile.syntax +27 -0
- data/lib/textpow/syntax/text.gtdalt.syntax +143 -0
- data/lib/textpow/syntax/text.haml.syntax +88 -0
- data/lib/textpow/syntax/text.html.asp.net.syntax +424 -0
- data/lib/textpow/syntax/text.html.asp.syntax +27 -0
- data/lib/textpow/syntax/text.html.basic.syntax +362 -0
- data/lib/textpow/syntax/text.html.cfm.syntax +119 -0
- data/lib/textpow/syntax/text.html.django.syntax +36 -0
- data/lib/textpow/syntax/text.html.dokuwiki.syntax +204 -0
- data/lib/textpow/syntax/text.html.doxygen.syntax +43 -0
- data/lib/textpow/syntax/text.html.markdown.multimarkdown.syntax +39 -0
- data/lib/textpow/syntax/text.html.mason.syntax +119 -0
- data/lib/textpow/syntax/text.html.mediawiki.syntax +567 -0
- data/lib/textpow/syntax/text.html.mt.syntax +162 -0
- data/lib/textpow/syntax/text.html.ruby.syntax +40 -0
- data/lib/textpow/syntax/text.html.strict.active4d.syntax +311 -0
- data/lib/textpow/syntax/text.html.tcl.syntax +26 -0
- data/lib/textpow/syntax/text.html.textile.syntax +215 -0
- data/lib/textpow/syntax/text.html.tt.syntax +121 -0
- data/lib/textpow/syntax/text.html.twiki.syntax +241 -0
- data/lib/textpow/syntax/text.html.xhtml.1-strict.syntax +4027 -0
- data/lib/textpow/syntax/text.log.latex.syntax +50 -0
- data/lib/textpow/syntax/text.mail.markdown.syntax +118 -0
- data/lib/textpow/syntax/text.man.syntax +17 -0
- data/lib/textpow/syntax/text.moinmoin.syntax +189 -0
- data/lib/textpow/syntax/text.plain.gtd.syntax +22 -0
- data/lib/textpow/syntax/text.plain.release-notes.syntax +46 -0
- data/lib/textpow/syntax/text.plain.syntax +32 -0
- data/lib/textpow/syntax/text.plist.syntax +635 -0
- data/lib/textpow/syntax/text.pmwiki.syntax +113 -0
- data/lib/textpow/syntax/text.restructuredtext.syntax +250 -0
- data/lib/textpow/syntax/text.setext.syntax +147 -0
- data/lib/textpow/syntax/text.subversion-commit.syntax +36 -0
- data/lib/textpow/syntax/text.tabular.csv.syntax +68 -0
- data/lib/textpow/syntax/text.tabular.tsv.syntax +50 -0
- data/lib/textpow/syntax/text.tex.latex.beamer.syntax +41 -0
- data/lib/textpow/syntax/text.tex.latex.haskell.syntax +24 -0
- data/lib/textpow/syntax/text.tex.latex.memoir.syntax +64 -0
- data/lib/textpow/syntax/text.tex.latex.rd.syntax +91 -0
- data/lib/textpow/syntax/text.tex.latex.sweave.syntax +84 -0
- data/lib/textpow/syntax/text.tex.latex.syntax +566 -0
- data/lib/textpow/syntax/text.tex.math.syntax +49 -0
- data/lib/textpow/syntax/text.tex.syntax +86 -0
- data/lib/textpow/syntax/text.txt2tags.syntax +79 -0
- data/lib/textpow/syntax/text.xml.apple-dist.syntax +77 -0
- data/lib/textpow/syntax/text.xml.strict.syntax +92 -0
- data/lib/textpow/syntax/text.xml.syntax +180 -0
- data/lib/textpow/syntax/text.xml.xsl.syntax +60 -0
- data/lib/textpow/version.rb +3 -0
- data/spec/fixtures/objeck.plist +107 -0
- data/spec/fixtures/utf8.txt +1 -0
- data/spec/spec_helper.rb +2 -0
- data/spec/textpow/score_manager_spec.rb +20 -0
- data/spec/textpow/syntax_files_spec.rb +26 -0
- data/spec/textpow/syntax_spec.rb +225 -0
- data/spec/textpow_spec.rb +57 -0
- data/textpow.gemspec +19 -0
- metadata +246 -68
- data/Manifest.txt +0 -13
- data/mm/manual.mm +0 -266
- data/test/test_textpow.rb +0 -25
@@ -0,0 +1,162 @@
|
|
1
|
+
---
|
2
|
+
name: Movable Type
|
3
|
+
fileTypes:
|
4
|
+
- mtml
|
5
|
+
firstLineMatch: <\$?MT
|
6
|
+
scopeName: text.html.mt
|
7
|
+
repository:
|
8
|
+
tag-stuff:
|
9
|
+
patterns:
|
10
|
+
- include: "#tag-generic-attribute"
|
11
|
+
- include: "#string-double-quoted"
|
12
|
+
- include: "#string-single-quoted"
|
13
|
+
string-double-quoted:
|
14
|
+
name: string.quoted.double.html
|
15
|
+
endCaptures:
|
16
|
+
"0":
|
17
|
+
name: punctuation.definition.string.end.html
|
18
|
+
begin: "\""
|
19
|
+
beginCaptures:
|
20
|
+
"0":
|
21
|
+
name: punctuation.definition.string.begin.html
|
22
|
+
end: "\""
|
23
|
+
patterns:
|
24
|
+
- include: "#embedded-code"
|
25
|
+
- include: "#entities"
|
26
|
+
mt-container-tag:
|
27
|
+
patterns:
|
28
|
+
- name: meta.tag.mt.container.html
|
29
|
+
endCaptures:
|
30
|
+
"0":
|
31
|
+
name: punctuation.definition.tag.mt
|
32
|
+
begin: (</?)(MT\w+)
|
33
|
+
beginCaptures:
|
34
|
+
"1":
|
35
|
+
name: punctuation.definition.tag.mt
|
36
|
+
"2":
|
37
|
+
name: entity.name.tag.mt
|
38
|
+
end: ">"
|
39
|
+
patterns:
|
40
|
+
- include: "#tag-stuff"
|
41
|
+
php:
|
42
|
+
patterns:
|
43
|
+
- name: source.php.embedded.html
|
44
|
+
captures:
|
45
|
+
"1":
|
46
|
+
name: punctuation.section.embedded.php
|
47
|
+
begin: (?:^\s*)(<\?(php|=)?)(?!.*\?>)
|
48
|
+
end: (\?>)(?:\s*$\n)?
|
49
|
+
patterns:
|
50
|
+
- include: "#php-source"
|
51
|
+
comment: match only multi-line PHP with leading whitespace
|
52
|
+
- name: source.php.embedded.html
|
53
|
+
captures:
|
54
|
+
"0":
|
55
|
+
name: punctuation.section.embedded.php
|
56
|
+
begin: <\?(php|=)?
|
57
|
+
end: \?>
|
58
|
+
patterns:
|
59
|
+
- include: "#php-source"
|
60
|
+
mt-variable-tag:
|
61
|
+
patterns:
|
62
|
+
- name: meta.tag.mt.variable.html
|
63
|
+
endCaptures:
|
64
|
+
"1":
|
65
|
+
name: variable.other.mt
|
66
|
+
"2":
|
67
|
+
name: punctuation.definition.tag.mt
|
68
|
+
begin: (<)(\$MT\w+)
|
69
|
+
beginCaptures:
|
70
|
+
"1":
|
71
|
+
name: punctuation.definition.tag.mt
|
72
|
+
"2":
|
73
|
+
name: variable.other.mt
|
74
|
+
end: (\$)?(>)
|
75
|
+
patterns:
|
76
|
+
- include: "#tag-stuff"
|
77
|
+
php-source:
|
78
|
+
patterns:
|
79
|
+
- name: comment.line.number-sign.ruby
|
80
|
+
captures:
|
81
|
+
"1":
|
82
|
+
name: punctuation.definition.comment.php
|
83
|
+
match: (#).*?(?=\?>)
|
84
|
+
- name: comment.line.double-slash.ruby
|
85
|
+
captures:
|
86
|
+
"1":
|
87
|
+
name: punctuation.definition.comment.php
|
88
|
+
match: (//).*?(?=\?>)
|
89
|
+
- include: source.php
|
90
|
+
entities:
|
91
|
+
patterns:
|
92
|
+
- name: constant.character.entity.html
|
93
|
+
captures:
|
94
|
+
"1":
|
95
|
+
name: punctuation.definition.constant.html
|
96
|
+
"3":
|
97
|
+
name: punctuation.definition.constant.html
|
98
|
+
match: (&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)
|
99
|
+
- name: invalid.illegal.bad-ampersand.html
|
100
|
+
match: "&"
|
101
|
+
string-single-quoted:
|
102
|
+
name: string.quoted.single.html
|
103
|
+
endCaptures:
|
104
|
+
"0":
|
105
|
+
name: punctuation.definition.string.end.html
|
106
|
+
begin: "'"
|
107
|
+
beginCaptures:
|
108
|
+
"0":
|
109
|
+
name: punctuation.definition.string.begin.html
|
110
|
+
end: "'"
|
111
|
+
patterns:
|
112
|
+
- include: "#embedded-code"
|
113
|
+
- include: "#entities"
|
114
|
+
tag-generic-attribute:
|
115
|
+
name: entity.other.attribute-name.html
|
116
|
+
match: \b([a-zA-Z-_:]+)
|
117
|
+
ruby:
|
118
|
+
name: source.ruby.embedded.html
|
119
|
+
captures:
|
120
|
+
"0":
|
121
|
+
name: punctuation.section.embedded.ruby
|
122
|
+
begin: <%+(?!>)=?
|
123
|
+
end: -?%>
|
124
|
+
patterns:
|
125
|
+
- name: comment.line.number-sign.ruby
|
126
|
+
captures:
|
127
|
+
"1":
|
128
|
+
name: punctuation.definition.comment.ruby
|
129
|
+
match: (#).*?(?=-?%>)
|
130
|
+
- include: source.ruby
|
131
|
+
smarty:
|
132
|
+
name: source.smarty.embedded.xhtml
|
133
|
+
captures:
|
134
|
+
"0":
|
135
|
+
name: punctuation.section.embedded.smarty
|
136
|
+
begin: "{{|{"
|
137
|
+
end: "}}|}"
|
138
|
+
disabled: "1"
|
139
|
+
patterns:
|
140
|
+
- include: source.smarty
|
141
|
+
embedded-code:
|
142
|
+
patterns:
|
143
|
+
- include: "#php"
|
144
|
+
- include: "#ruby"
|
145
|
+
- include: "#smarty"
|
146
|
+
uuid: 7071B5CA-849A-4D88-A96E-DD725ED622BF
|
147
|
+
foldingStartMarker: (<(?i:(head|table|tr|div|style|script|ul|ol|form|dl))\b.*?>|<MT\w+\b.*?>|\{\{(if|foreach|capture|literal|foreach|php|section|strip)|\{\s*$)
|
148
|
+
patterns:
|
149
|
+
- include: "#mt-container-tag"
|
150
|
+
- include: "#mt-variable-tag"
|
151
|
+
- include: text.html.basic
|
152
|
+
comment: This is set to use XHTML standards, but you can change that by changing .strict to .basic for HTML standards
|
153
|
+
- name: source.smarty.embedded.html
|
154
|
+
captures:
|
155
|
+
"0":
|
156
|
+
name: punctuation.section.embedded.smarty
|
157
|
+
begin: "{{"
|
158
|
+
end: "}}"
|
159
|
+
patterns:
|
160
|
+
- include: source.smarty
|
161
|
+
foldingStopMarker: (</(?i:(head|table|tr|div|style|script|ul|ol|form|dl))>|<\/MT\w+\b.*?>|\{\{/(if|foreach|capture|literal|foreach|php|section|strip)|(^|\s)\}\})
|
162
|
+
keyEquivalent: ^~M
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
name: HTML (Rails)
|
3
|
+
fileTypes:
|
4
|
+
- rhtml
|
5
|
+
scopeName: text.html.ruby
|
6
|
+
uuid: 45D7E1FC-7D0B-4105-A1A2-3D10BB555A5C
|
7
|
+
foldingStartMarker: |-
|
8
|
+
(?x)
|
9
|
+
(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\b.*?>
|
10
|
+
|<!--(?!.*-->)
|
11
|
+
|\{\s*($|\?>\s*$|//|/\*(.*\*/\s*$|(?!.*?\*/)))
|
12
|
+
)
|
13
|
+
patterns:
|
14
|
+
- name: comment.block.erb
|
15
|
+
captures:
|
16
|
+
"0":
|
17
|
+
name: punctuation.definition.comment.erb
|
18
|
+
begin: <%+#
|
19
|
+
end: "%>"
|
20
|
+
- name: source.ruby.rails.embedded.html
|
21
|
+
captures:
|
22
|
+
"0":
|
23
|
+
name: punctuation.section.embedded.ruby
|
24
|
+
begin: <%+(?!>)=?
|
25
|
+
end: -?%>
|
26
|
+
patterns:
|
27
|
+
- name: comment.line.number-sign.ruby
|
28
|
+
captures:
|
29
|
+
"1":
|
30
|
+
name: punctuation.definition.comment.ruby
|
31
|
+
match: (#).*?(?=-?%>)
|
32
|
+
- include: source.ruby.rails
|
33
|
+
- include: text.html.basic
|
34
|
+
foldingStopMarker: |-
|
35
|
+
(?x)
|
36
|
+
(</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>
|
37
|
+
|^\s*-->
|
38
|
+
|(^|\s)\}
|
39
|
+
)
|
40
|
+
keyEquivalent: ^~R
|
@@ -0,0 +1,311 @@
|
|
1
|
+
---
|
2
|
+
name: HTML (Active4D)
|
3
|
+
fileTypes:
|
4
|
+
- a4d
|
5
|
+
- a4p
|
6
|
+
scopeName: text.html.strict.active4d
|
7
|
+
repository:
|
8
|
+
tag-stuff:
|
9
|
+
patterns:
|
10
|
+
- include: "#tag-id-attribute"
|
11
|
+
- include: "#tag-generic-attribute"
|
12
|
+
- include: "#string-double-quoted"
|
13
|
+
- include: "#string-single-quoted"
|
14
|
+
- include: "#embedded-code"
|
15
|
+
string-double-quoted:
|
16
|
+
name: string.quoted.double.html
|
17
|
+
endCaptures:
|
18
|
+
"0":
|
19
|
+
name: punctuation.definition.string.end.html
|
20
|
+
begin: "\""
|
21
|
+
beginCaptures:
|
22
|
+
"0":
|
23
|
+
name: punctuation.definition.string.begin.html
|
24
|
+
end: "\""
|
25
|
+
patterns:
|
26
|
+
- include: "#embedded-code"
|
27
|
+
- include: "#entities"
|
28
|
+
entities:
|
29
|
+
patterns:
|
30
|
+
- name: constant.character.entity.html
|
31
|
+
captures:
|
32
|
+
"1":
|
33
|
+
name: punctuation.definition.entity.html
|
34
|
+
"3":
|
35
|
+
name: punctuation.terminator.entity.html
|
36
|
+
match: (&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)
|
37
|
+
- name: invalid.illegal.bad-ampersand.html
|
38
|
+
match: "&"
|
39
|
+
embedded-js:
|
40
|
+
patterns:
|
41
|
+
- include: "#string-double-quoted-js"
|
42
|
+
- include: "#string-single-quoted-js"
|
43
|
+
- include: "#embedded-code"
|
44
|
+
string-single-quoted:
|
45
|
+
name: string.quoted.single.html
|
46
|
+
endCaptures:
|
47
|
+
"0":
|
48
|
+
name: punctuation.definition.string.end.html
|
49
|
+
begin: "'"
|
50
|
+
beginCaptures:
|
51
|
+
"0":
|
52
|
+
name: punctuation.definition.string.begin.html
|
53
|
+
end: "'"
|
54
|
+
patterns:
|
55
|
+
- include: "#embedded-code"
|
56
|
+
- include: "#entities"
|
57
|
+
tag-id-attribute:
|
58
|
+
name: meta.attribute-with-value.id.html
|
59
|
+
captures:
|
60
|
+
"1":
|
61
|
+
name: entity.other.attribute-name.id.html
|
62
|
+
"2":
|
63
|
+
name: punctuation.separator.key-value.html
|
64
|
+
begin: \b(id)\b\s*(=)
|
65
|
+
end: (?<='|")
|
66
|
+
patterns:
|
67
|
+
- name: string.quoted.double.html
|
68
|
+
endCaptures:
|
69
|
+
"0":
|
70
|
+
name: punctuation.definition.string.end.html
|
71
|
+
begin: "\""
|
72
|
+
contentName: meta.toc-list.id.html
|
73
|
+
beginCaptures:
|
74
|
+
"0":
|
75
|
+
name: punctuation.definition.string.begin.html
|
76
|
+
end: "\""
|
77
|
+
patterns:
|
78
|
+
- include: "#embedded-code"
|
79
|
+
- include: "#entities"
|
80
|
+
- name: string.quoted.single.html
|
81
|
+
endCaptures:
|
82
|
+
"0":
|
83
|
+
name: punctuation.definition.string.end.html
|
84
|
+
begin: "'"
|
85
|
+
contentName: meta.toc-list.id.html
|
86
|
+
beginCaptures:
|
87
|
+
"0":
|
88
|
+
name: punctuation.definition.string.begin.html
|
89
|
+
end: "'"
|
90
|
+
patterns:
|
91
|
+
- include: "#embedded-code"
|
92
|
+
- include: "#entities"
|
93
|
+
string-double-quoted-js:
|
94
|
+
name: string.quoted.double.js
|
95
|
+
endCaptures:
|
96
|
+
"0":
|
97
|
+
name: punctuation.definition.string.end.js
|
98
|
+
begin: "\""
|
99
|
+
beginCaptures:
|
100
|
+
"0":
|
101
|
+
name: punctuation.definition.string.begin.js
|
102
|
+
end: "\""
|
103
|
+
patterns:
|
104
|
+
- include: "#embedded-code"
|
105
|
+
tag-generic-attribute:
|
106
|
+
name: entity.other.attribute-name.html
|
107
|
+
match: \b([a-zA-Z-:]+)
|
108
|
+
string-single-quoted-js:
|
109
|
+
name: string.quoted.single.js
|
110
|
+
endCaptures:
|
111
|
+
"0":
|
112
|
+
name: punctuation.definition.string.end.js
|
113
|
+
begin: "'"
|
114
|
+
beginCaptures:
|
115
|
+
"0":
|
116
|
+
name: punctuation.definition.string.begin.js
|
117
|
+
end: "'"
|
118
|
+
patterns:
|
119
|
+
- include: "#embedded-code"
|
120
|
+
embedded-code:
|
121
|
+
name: source.active4d.embedded.html
|
122
|
+
endCaptures:
|
123
|
+
"0":
|
124
|
+
name: punctuation.section.embedded.active4d
|
125
|
+
begin: <%
|
126
|
+
beginCaptures:
|
127
|
+
"0":
|
128
|
+
name: punctuation.section.embedded.active4d
|
129
|
+
end: "%>"
|
130
|
+
patterns:
|
131
|
+
- include: source.active4d
|
132
|
+
uuid: E666209C-4477-4D83-8B49-9463DFBACD9F
|
133
|
+
foldingStartMarker: |-
|
134
|
+
(?x)
|
135
|
+
(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\b.*?>
|
136
|
+
|<!--(?!.*-->)
|
137
|
+
|^\s*<%(?!.*%>)
|
138
|
+
|(^\s*|<%\s*)(?i:if|while|for\ each|for|case\ of|repeat|method|save\ output)\b
|
139
|
+
)
|
140
|
+
patterns:
|
141
|
+
- name: meta.tag.any.html
|
142
|
+
endCaptures:
|
143
|
+
"1":
|
144
|
+
name: punctuation.definition.tag.html
|
145
|
+
"2":
|
146
|
+
name: meta.scope.between-tag-pair.html
|
147
|
+
"3":
|
148
|
+
name: entity.name.tag.html
|
149
|
+
"4":
|
150
|
+
name: punctuation.definition.tag.html
|
151
|
+
begin: (<)([a-zA-Z0-9:]+)(?=[^>]*></\2>)
|
152
|
+
beginCaptures:
|
153
|
+
"1":
|
154
|
+
name: punctuation.definition.tag.html
|
155
|
+
"2":
|
156
|
+
name: entity.name.tag.html
|
157
|
+
end: (>(<)/)(\2)(>)
|
158
|
+
patterns:
|
159
|
+
- include: "#tag-stuff"
|
160
|
+
- name: meta.tag.preprocessor.xml.html
|
161
|
+
captures:
|
162
|
+
"1":
|
163
|
+
name: punctuation.definition.tag.xml.html
|
164
|
+
"2":
|
165
|
+
name: entity.name.tag.xml.html
|
166
|
+
begin: (<\?)(xml)
|
167
|
+
end: (\?>)
|
168
|
+
patterns:
|
169
|
+
- include: "#tag-generic-attribute"
|
170
|
+
- include: "#string-double-quoted"
|
171
|
+
- include: "#string-single-quoted"
|
172
|
+
- name: comment.block.html
|
173
|
+
captures:
|
174
|
+
"0":
|
175
|
+
name: punctuation.definition.comment.html
|
176
|
+
begin: <!--
|
177
|
+
end: -->
|
178
|
+
patterns:
|
179
|
+
- name: invalid.illegal.bad-comments-or-CDATA.html
|
180
|
+
match: --
|
181
|
+
- name: meta.tag.sgml.html
|
182
|
+
captures:
|
183
|
+
"0":
|
184
|
+
name: punctuation.definition.tag.html
|
185
|
+
begin: <!
|
186
|
+
end: ">"
|
187
|
+
patterns:
|
188
|
+
- name: meta.tag.sgml.doctype.html
|
189
|
+
captures:
|
190
|
+
"1":
|
191
|
+
name: entity.name.tag.doctype.html
|
192
|
+
begin: (DOCTYPE)
|
193
|
+
end: (?=>)
|
194
|
+
patterns:
|
195
|
+
- name: string.quoted.double.doctype.identifiers-and-DTDs.html
|
196
|
+
match: "\"[^\">]*\""
|
197
|
+
- name: constant.other.inline-data.html
|
198
|
+
begin: \[CDATA\[
|
199
|
+
end: "]](?=>)"
|
200
|
+
- name: invalid.illegal.bad-comments-or-CDATA.html
|
201
|
+
match: (\s*)(?!--|>)\S(\s*)
|
202
|
+
- name: meta.tag.processor.html
|
203
|
+
endCaptures:
|
204
|
+
"0":
|
205
|
+
name: punctuation.section.embedded.active4d
|
206
|
+
"1":
|
207
|
+
name: meta.scope.between-tag-pair.html
|
208
|
+
begin: <%(?=%>)
|
209
|
+
beginCaptures:
|
210
|
+
"0":
|
211
|
+
name: punctuation.section.embedded.active4d
|
212
|
+
end: (%)>
|
213
|
+
patterns:
|
214
|
+
- include: "#embedded-code"
|
215
|
+
- include: "#embedded-code"
|
216
|
+
- name: source.css.embedded.html
|
217
|
+
captures:
|
218
|
+
"1":
|
219
|
+
name: punctuation.definition.tag.html
|
220
|
+
"2":
|
221
|
+
name: entity.name.tag.style.html
|
222
|
+
"3":
|
223
|
+
name: punctuation.definition.tag.html
|
224
|
+
begin: (?:^\s+)?(<)((?i:style))\b(?![^>]*/>)
|
225
|
+
end: (</)((?i:style))(>)(?:\s*\n)?
|
226
|
+
patterns:
|
227
|
+
- include: "#tag-stuff"
|
228
|
+
- begin: (>)
|
229
|
+
beginCaptures:
|
230
|
+
"1":
|
231
|
+
name: punctuation.definition.tag.html
|
232
|
+
end: (?=</(?i:style))
|
233
|
+
patterns:
|
234
|
+
- include: "#embedded-code"
|
235
|
+
- include: source.css
|
236
|
+
- name: source.js.embedded.html
|
237
|
+
endCaptures:
|
238
|
+
"1":
|
239
|
+
name: entity.name.tag.script.html
|
240
|
+
"2":
|
241
|
+
name: punctuation.definition.tag.html
|
242
|
+
begin: (?:^\s+)?(<)((?i:script))\b(?![^>]*/>)
|
243
|
+
beginCaptures:
|
244
|
+
"1":
|
245
|
+
name: punctuation.definition.tag.html
|
246
|
+
"2":
|
247
|
+
name: entity.name.tag.script.html
|
248
|
+
end: (?<=</(script|SCRIPT))(>)(?:\s*\n)?
|
249
|
+
patterns:
|
250
|
+
- include: "#tag-stuff"
|
251
|
+
- captures:
|
252
|
+
"1":
|
253
|
+
name: punctuation.definition.tag.html
|
254
|
+
begin: (?<!</(?:script|SCRIPT))(>)
|
255
|
+
end: (</)((?i:script))
|
256
|
+
patterns:
|
257
|
+
- include: "#embedded-js"
|
258
|
+
- include: source.js
|
259
|
+
- name: meta.tag.structure.any.html
|
260
|
+
captures:
|
261
|
+
"1":
|
262
|
+
name: punctuation.definition.tag.html
|
263
|
+
"2":
|
264
|
+
name: entity.name.tag.structure.any.html
|
265
|
+
begin: (</?)((?i:body|head|html)\b)
|
266
|
+
end: (>)
|
267
|
+
patterns:
|
268
|
+
- include: "#tag-stuff"
|
269
|
+
- name: meta.tag.block.any.html
|
270
|
+
captures:
|
271
|
+
"1":
|
272
|
+
name: punctuation.definition.tag.html
|
273
|
+
"2":
|
274
|
+
name: entity.name.tag.block.any.html
|
275
|
+
begin: (</?)((?i:address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)\b)
|
276
|
+
end: (>)
|
277
|
+
patterns:
|
278
|
+
- include: "#tag-stuff"
|
279
|
+
- name: meta.tag.inline.any.html
|
280
|
+
captures:
|
281
|
+
"1":
|
282
|
+
name: punctuation.definition.tag.html
|
283
|
+
"2":
|
284
|
+
name: entity.name.tag.inline.any.html
|
285
|
+
begin: (</?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)\b)
|
286
|
+
end: (>)
|
287
|
+
patterns:
|
288
|
+
- include: "#tag-stuff"
|
289
|
+
- name: meta.tag.other.html
|
290
|
+
captures:
|
291
|
+
"1":
|
292
|
+
name: punctuation.definition.tag.html
|
293
|
+
"2":
|
294
|
+
name: entity.name.tag.other.html
|
295
|
+
begin: (</?)([a-zA-Z0-9:]+)
|
296
|
+
end: (>)
|
297
|
+
patterns:
|
298
|
+
- include: "#tag-stuff"
|
299
|
+
- include: "#entities"
|
300
|
+
- name: invalid.illegal.incomplete.html
|
301
|
+
match: <>
|
302
|
+
- name: invalid.illegal.bad-angle-bracket.html
|
303
|
+
match: <(?=\W)|>
|
304
|
+
foldingStopMarker: |-
|
305
|
+
(?x)
|
306
|
+
(</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>
|
307
|
+
|^(?!.*?<!--).*?-->
|
308
|
+
|^\s*%>
|
309
|
+
|(^\s*|<%\s*)(?i:end\ (if|while|for\ each|for|case|method|save\ output)|until)\b
|
310
|
+
)
|
311
|
+
keyEquivalent: ^~A
|