code_rippa 0.0.7 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile.lock +36 -0
- data/LICENSE +2 -2
- data/README.md +18 -1
- data/bin/code_rippa +15 -16
- data/code_rippa.gemspec +12 -10
- data/lib/code_rippa.rb +69 -51
- data/lib/code_rippa/syntax/actionscript.syntax +52 -52
- data/lib/code_rippa/syntax/active4d.syntax +226 -180
- data/lib/code_rippa/syntax/active4d_html.syntax +163 -173
- data/lib/code_rippa/syntax/active4d_ini.syntax +34 -27
- data/lib/code_rippa/syntax/active4d_library.syntax +8 -15
- data/lib/code_rippa/syntax/ada.syntax +19 -18
- data/lib/code_rippa/syntax/antlr.syntax +85 -85
- data/lib/code_rippa/syntax/apache.syntax +103 -109
- data/lib/code_rippa/syntax/applescript.syntax +244 -229
- data/lib/code_rippa/syntax/asp.syntax +41 -36
- data/lib/code_rippa/syntax/asp_vb.net.syntax +77 -72
- data/lib/code_rippa/syntax/bibtex.syntax +88 -90
- data/lib/code_rippa/syntax/blog_html.syntax +17 -29
- data/lib/code_rippa/syntax/blog_markdown.syntax +17 -27
- data/lib/code_rippa/syntax/blog_text.syntax +15 -15
- data/lib/code_rippa/syntax/blog_textile.syntax +15 -15
- data/lib/code_rippa/syntax/build.syntax +27 -27
- data/lib/code_rippa/syntax/bulletin_board.syntax +159 -172
- data/lib/code_rippa/syntax/c.syntax +31 -34
- data/lib/code_rippa/syntax/cake.syntax +27 -27
- data/lib/code_rippa/syntax/camlp4.syntax +23 -23
- data/lib/code_rippa/syntax/cm.syntax +19 -18
- data/lib/code_rippa/syntax/coffeescript.syntax +134 -181
- data/lib/code_rippa/syntax/coldfusion.syntax +51 -60
- data/lib/code_rippa/syntax/context_free.syntax +106 -106
- data/lib/code_rippa/syntax/cs.syntax +31 -34
- data/lib/code_rippa/syntax/css.syntax +112 -112
- data/lib/code_rippa/syntax/css_experimental.syntax +1006 -1004
- data/lib/code_rippa/syntax/csv.syntax +40 -44
- data/lib/code_rippa/syntax/d.syntax +80 -84
- data/lib/code_rippa/syntax/diff.syntax +46 -45
- data/lib/code_rippa/syntax/dokuwiki.syntax +118 -119
- data/lib/code_rippa/syntax/dot.syntax +26 -26
- data/lib/code_rippa/syntax/doxygen.syntax +26 -26
- data/lib/code_rippa/syntax/dylan.syntax +35 -35
- data/lib/code_rippa/syntax/eiffel.syntax +39 -42
- data/lib/code_rippa/syntax/erlang.syntax +514 -511
- data/lib/code_rippa/syntax/f-script.syntax +44 -44
- data/lib/code_rippa/syntax/fortran.syntax +80 -76
- data/lib/code_rippa/syntax/fxscript.syntax +78 -77
- data/lib/code_rippa/syntax/greasemonkey.syntax +20 -20
- data/lib/code_rippa/syntax/gri.syntax +47 -47
- data/lib/code_rippa/syntax/groovy.syntax +105 -114
- data/lib/code_rippa/syntax/gtd.syntax +10 -10
- data/lib/code_rippa/syntax/gtdalt.syntax +83 -83
- data/lib/code_rippa/syntax/haml.syntax +50 -50
- data/lib/code_rippa/syntax/haskell.syntax +47 -47
- data/lib/code_rippa/syntax/html-asp.syntax +15 -15
- data/lib/code_rippa/syntax/html_django.syntax +15 -14
- data/lib/code_rippa/syntax/html_for_asp.net.syntax +232 -245
- data/lib/code_rippa/syntax/html_mason.syntax +75 -74
- data/lib/code_rippa/syntax/html_rails.syntax +17 -27
- data/lib/code_rippa/syntax/html_tcl.syntax +13 -13
- data/lib/code_rippa/syntax/icalendar.syntax +15 -15
- data/lib/code_rippa/syntax/inform.syntax +26 -26
- data/lib/code_rippa/syntax/ini.syntax +30 -30
- data/lib/code_rippa/syntax/installer_distribution_script.syntax +49 -49
- data/lib/code_rippa/syntax/io.syntax +49 -46
- data/lib/code_rippa/syntax/java.syntax +117 -126
- data/lib/code_rippa/syntax/javaproperties.syntax +13 -12
- data/lib/code_rippa/syntax/javascript.syntax +141 -141
- data/lib/code_rippa/syntax/javascript_+_prototype.syntax +42 -41
- data/lib/code_rippa/syntax/javascript_+_prototype_bracketed.syntax +92 -91
- data/lib/code_rippa/syntax/jquery_javascript.syntax +64 -64
- data/lib/code_rippa/syntax/json.syntax +39 -39
- data/lib/code_rippa/syntax/languagedefinition.syntax +373 -453
- data/lib/code_rippa/syntax/lexflex.syntax +136 -136
- data/lib/code_rippa/syntax/lighttpd.syntax +31 -31
- data/lib/code_rippa/syntax/lilypond.syntax +246 -337
- data/lib/code_rippa/syntax/lisp.syntax +32 -32
- data/lib/code_rippa/syntax/literate_haskell.syntax +12 -12
- data/lib/code_rippa/syntax/logo.syntax +13 -14
- data/lib/code_rippa/syntax/logtalk.syntax +81 -81
- data/lib/code_rippa/syntax/lua.syntax +50 -48
- data/lib/code_rippa/syntax/m.syntax +78 -78
- data/lib/code_rippa/syntax/macports_portfile.syntax +98 -97
- data/lib/code_rippa/syntax/makefile.syntax +19 -19
- data/lib/code_rippa/syntax/man.syntax +9 -9
- data/lib/code_rippa/syntax/mediawiki.syntax +311 -401
- data/lib/code_rippa/syntax/mips.syntax +34 -34
- data/lib/code_rippa/syntax/mod_perl.syntax +25 -31
- data/lib/code_rippa/syntax/modula-3.syntax +24 -24
- data/lib/code_rippa/syntax/moinmoin.syntax +102 -102
- data/lib/code_rippa/syntax/mootools.syntax +283 -300
- data/lib/code_rippa/syntax/movable_type.syntax +91 -90
- data/lib/code_rippa/syntax/multimarkdown.syntax +19 -30
- data/lib/code_rippa/syntax/objective-c++.syntax +6 -10
- data/lib/code_rippa/syntax/objective-c.syntax +134 -138
- data/lib/code_rippa/syntax/ocaml.syntax +455 -453
- data/lib/code_rippa/syntax/ocamllex.syntax +94 -93
- data/lib/code_rippa/syntax/ocamlyacc.syntax +98 -98
- data/lib/code_rippa/syntax/opengl.syntax +6 -6
- data/lib/code_rippa/syntax/pascal.syntax +43 -42
- data/lib/code_rippa/syntax/perl.syntax +612 -615
- data/lib/code_rippa/syntax/plain_text.syntax +17 -20
- data/lib/code_rippa/syntax/postscript.syntax +71 -69
- data/lib/code_rippa/syntax/processing.syntax +60 -60
- data/lib/code_rippa/syntax/prolog.syntax +17 -20
- data/lib/code_rippa/syntax/property_list.syntax +338 -359
- data/lib/code_rippa/syntax/python.syntax +487 -509
- data/lib/code_rippa/syntax/python_django.syntax +9 -10
- data/lib/code_rippa/syntax/qmake_project.syntax +67 -67
- data/lib/code_rippa/syntax/qt_c++.syntax +12 -15
- data/lib/code_rippa/syntax/quake3_config.syntax +18 -17
- data/lib/code_rippa/syntax/r.syntax +42 -42
- data/lib/code_rippa/syntax/r_console.syntax +7 -8
- data/lib/code_rippa/syntax/ragel.syntax +109 -115
- data/lib/code_rippa/syntax/rd_r_documentation.syntax +53 -53
- data/lib/code_rippa/syntax/regexp.syntax +26 -26
- data/lib/code_rippa/syntax/release_notes.syntax +46 -26
- data/lib/code_rippa/syntax/remind.syntax +146 -146
- data/lib/code_rippa/syntax/restructuredtext.syntax +132 -131
- data/lib/code_rippa/syntax/rez.syntax +46 -45
- data/lib/code_rippa/syntax/ruby.syntax +533 -601
- data/lib/code_rippa/syntax/ruby_experimental.syntax +82 -100
- data/lib/code_rippa/syntax/ruby_on_rails.syntax +56 -68
- data/lib/code_rippa/syntax/s5.syntax +35 -51
- data/lib/code_rippa/syntax/scheme.syntax +162 -260
- data/lib/code_rippa/syntax/scilab.syntax +18 -18
- data/lib/code_rippa/syntax/setext.syntax +82 -82
- data/lib/code_rippa/syntax/shell-unix-generic.syntax +227 -226
- data/lib/code_rippa/syntax/slate.syntax +91 -91
- data/lib/code_rippa/syntax/sql.syntax +137 -139
- data/lib/code_rippa/syntax/sql_rails.syntax +8 -8
- data/lib/code_rippa/syntax/ssh-config.syntax +17 -17
- data/lib/code_rippa/syntax/standard_ml.syntax +67 -69
- data/lib/code_rippa/syntax/strings_file.syntax +20 -23
- data/lib/code_rippa/syntax/subversion_commit_message.syntax +20 -20
- data/lib/code_rippa/syntax/sweave.syntax +45 -45
- data/lib/code_rippa/syntax/swig.syntax +34 -33
- data/lib/code_rippa/syntax/tcl.syntax +87 -86
- data/lib/code_rippa/syntax/template_toolkit.syntax +67 -65
- data/lib/code_rippa/syntax/textile.syntax +111 -145
- data/lib/code_rippa/syntax/tsv.syntax +31 -33
- data/lib/code_rippa/syntax/twiki.syntax +141 -141
- data/lib/code_rippa/syntax/txt2tags.syntax +39 -38
- data/lib/code_rippa/syntax/vectorscript.syntax +31 -31
- data/lib/code_rippa/syntax/xhtml_1.0.syntax +2297 -2296
- data/lib/code_rippa/syntax/xml.syntax +95 -95
- data/lib/code_rippa/syntax/xml_strict.syntax +49 -50
- data/lib/code_rippa/syntax/xsl.syntax +31 -31
- data/lib/code_rippa/syntax/yaml.syntax +86 -86
- data/lib/code_rippa/syntax/yaml_converter.rb +37 -0
- data/lib/code_rippa/syntax/yui_javascript.syntax +88 -88
- data/lib/code_rippa/version.rb +2 -2
- data/test/fixtures/hello.rb +5 -3
- data/test/test_private_methods.rb +40 -40
- data/test/test_public_methods.rb +9 -18
- metadata +61 -63
@@ -1,27 +1,27 @@
|
|
1
|
-
---
|
1
|
+
---
|
2
2
|
name: HTML (ASP)
|
3
|
-
fileTypes:
|
3
|
+
fileTypes:
|
4
4
|
- asp
|
5
5
|
scopeName: text.html.asp
|
6
6
|
uuid: 27798CC6-6B1D-11D9-B8FA-000D93589AF6
|
7
|
-
foldingStartMarker: (<(?i:(head|table|div|style|script|ul|ol|form|dl))
|
8
|
-
patterns:
|
7
|
+
foldingStartMarker: "(<(?i:(head|table|div|style|script|ul|ol|form|dl))\\b.*?>|\\{)"
|
8
|
+
patterns:
|
9
9
|
- name: source.asp.embedded.html
|
10
|
-
endCaptures:
|
11
|
-
|
10
|
+
endCaptures:
|
11
|
+
'0':
|
12
12
|
name: punctuation.section.embedded.end.asp
|
13
|
-
begin: <%=?
|
14
|
-
beginCaptures:
|
15
|
-
|
13
|
+
begin: "<%=?"
|
14
|
+
beginCaptures:
|
15
|
+
'0':
|
16
16
|
name: punctuation.section.embedded.begin.asp
|
17
17
|
end: "%>"
|
18
|
-
patterns:
|
18
|
+
patterns:
|
19
19
|
- name: comment.line.apostrophe.asp
|
20
|
-
captures:
|
21
|
-
|
20
|
+
captures:
|
21
|
+
'1':
|
22
22
|
name: punctuation.definition.comment.asp
|
23
|
-
match: (').*?(?=%>)
|
23
|
+
match: "(').*?(?=%>)"
|
24
24
|
- include: source.asp
|
25
25
|
- include: text.html.basic
|
26
|
-
foldingStopMarker: (</(?i:(head|table|div|style|script|ul|ol|form|dl))
|
27
|
-
keyEquivalent: ^~A
|
26
|
+
foldingStopMarker: "(</(?i:(head|table|div|style|script|ul|ol|form|dl))>|\\})"
|
27
|
+
keyEquivalent: "^~A"
|
@@ -1,11 +1,11 @@
|
|
1
|
-
---
|
1
|
+
---
|
2
2
|
name: HTML (Django)
|
3
3
|
fileTypes: []
|
4
|
-
|
5
4
|
scopeName: text.html.django
|
6
5
|
uuid: F4B0A70C-ECF6-4660-BC26-785216E3CF02
|
7
|
-
foldingStartMarker: (<(?i:(head|table|tr|div|style|script|ul|ol|form|dl))
|
8
|
-
|
6
|
+
foldingStartMarker: "(<(?i:(head|table|tr|div|style|script|ul|ol|form|dl))\\b.*?>|{%
|
7
|
+
(block|comment|filter|for|if|ifchanged|ifequal|ifnotequal))"
|
8
|
+
patterns:
|
9
9
|
- include: text.html.basic
|
10
10
|
comment: Since html is valid in Django templates include the html patterns
|
11
11
|
- name: comment.block.django.template
|
@@ -15,22 +15,23 @@ patterns:
|
|
15
15
|
begin: "{{"
|
16
16
|
end: "}}"
|
17
17
|
- name: meta.scope.django.template.tag
|
18
|
-
captures:
|
19
|
-
|
18
|
+
captures:
|
19
|
+
'1':
|
20
20
|
name: entity.other.django.tagbraces
|
21
|
-
begin: ({%)
|
22
|
-
end: (%})
|
23
|
-
patterns:
|
21
|
+
begin: "({%)"
|
22
|
+
end: "(%})"
|
23
|
+
patterns:
|
24
24
|
- name: keyword.control.django.template
|
25
|
-
match:
|
25
|
+
match: "\\b(block|endblock|blocktrans|endblocktrans|plural|debug|extends|filter|firstof|for|endfor|if|include|else|endif|ifchanged|endifchanged|ifequal|endifequal|ifnotequal|endifnotequal|load|now|regroup|ssi|spaceless|templatetag|widthratio)\\b"
|
26
26
|
- name: keyword.operator.django.template
|
27
|
-
match:
|
27
|
+
match: "\\b(and|or|not|in|by|as)\\b"
|
28
28
|
- name: support.function.filter.django
|
29
|
-
match:
|
29
|
+
match: "\\|(add|addslashes|capfirst|center|cut|date|default|default_if_none|dictsort|dictsortreversed|divisibleby|escape|filesizeformat|first|fix_ampersands|floatformat|get_digit|join|length|length_is|linebreaks|linebreaksbr|linenumbers|ljust|lower|make_list|phone2numeric|pluralize|pprint|random|removetags|rjust|slice|slugify|stringformat|striptags|time|timesince|title|truncatewords|unordered_list|upper|urlencode|urlize|urlizetrunc|wordcount|wordwrap|yesno)\\b"
|
30
30
|
- name: string.other.django.template.tag
|
31
31
|
begin: "'|\""
|
32
32
|
end: "'|\""
|
33
33
|
- name: string.unquoted.django.template.tag
|
34
34
|
match: "[a-zA-Z_]+"
|
35
|
-
foldingStopMarker: (</(?i:(head|table|tr|div|style|script|ul|ol|form|dl))>|{% (endblock|endblocktrans|endcomment|endfilter|endfor|endif|endifchanged|endifequal|endifnotequal)
|
36
|
-
|
35
|
+
foldingStopMarker: "(</(?i:(head|table|tr|div|style|script|ul|ol|form|dl))>|{% (endblock|endblocktrans|endcomment|endfilter|endfor|endif|endifchanged|endifequal|endifnotequal)
|
36
|
+
%})"
|
37
|
+
keyEquivalent: "^~D"
|
@@ -1,424 +1,411 @@
|
|
1
|
-
---
|
1
|
+
---
|
2
2
|
name: HTML (ASP.net)
|
3
|
-
fileTypes:
|
3
|
+
fileTypes:
|
4
4
|
- aspx
|
5
5
|
- ascx
|
6
6
|
scopeName: text.html.asp.net
|
7
|
-
repository:
|
8
|
-
source-asp-embedded:
|
7
|
+
repository:
|
8
|
+
source-asp-embedded:
|
9
9
|
name: meta.source.embedded
|
10
|
-
endCaptures:
|
11
|
-
|
10
|
+
endCaptures:
|
11
|
+
'0':
|
12
12
|
name: punctuation.section.embedded.end.asp
|
13
|
-
begin: <%(?![=#])
|
14
|
-
beginCaptures:
|
15
|
-
|
13
|
+
begin: "<%(?![=#])"
|
14
|
+
beginCaptures:
|
15
|
+
'0':
|
16
16
|
name: punctuation.section.embedded.begin.asp
|
17
17
|
end: "%>"
|
18
|
-
patterns:
|
18
|
+
patterns:
|
19
19
|
- name: source.asp.embedded.html
|
20
|
-
begin: (?<=<%)
|
21
|
-
end: (?=%>)
|
22
|
-
patterns:
|
20
|
+
begin: "(?<=<%)"
|
21
|
+
end: "(?=%>)"
|
22
|
+
patterns:
|
23
23
|
- include: source.asp.vb.net
|
24
|
-
tag-stuff:
|
25
|
-
patterns:
|
24
|
+
tag-stuff:
|
25
|
+
patterns:
|
26
26
|
- include: "#tag-id-attribute"
|
27
27
|
- include: "#tag-generic-attribute"
|
28
28
|
- include: "#string-double-quoted"
|
29
29
|
- include: "#string-single-quoted"
|
30
|
-
string-double-quoted:
|
30
|
+
string-double-quoted:
|
31
31
|
name: string.quoted.double.html
|
32
|
-
endCaptures:
|
33
|
-
|
32
|
+
endCaptures:
|
33
|
+
'0':
|
34
34
|
name: punctuation.definition.string.end.html
|
35
35
|
begin: "\""
|
36
|
-
beginCaptures:
|
37
|
-
|
36
|
+
beginCaptures:
|
37
|
+
'0':
|
38
38
|
name: punctuation.definition.string.begin.html
|
39
39
|
end: "\""
|
40
|
-
patterns:
|
40
|
+
patterns:
|
41
41
|
- include: "#embedded-code"
|
42
42
|
- include: "#entities"
|
43
|
-
source-asp-single-line:
|
43
|
+
source-asp-single-line:
|
44
44
|
name: meta.source.embedded.single-line
|
45
|
-
endCaptures:
|
46
|
-
|
45
|
+
endCaptures:
|
46
|
+
'0':
|
47
47
|
name: punctuation.section.embedded.end.asp
|
48
|
-
begin: <%(=|#|@)
|
49
|
-
beginCaptures:
|
50
|
-
|
48
|
+
begin: "<%(=|#|@)"
|
49
|
+
beginCaptures:
|
50
|
+
'0':
|
51
51
|
name: punctuation.section.embedded.begin.asp
|
52
52
|
end: "%>"
|
53
|
-
patterns:
|
53
|
+
patterns:
|
54
54
|
- name: source.asp.embedded.html
|
55
|
-
begin: (?<=<%)
|
56
|
-
end: (?=%>)
|
57
|
-
patterns:
|
55
|
+
begin: "(?<=<%)"
|
56
|
+
end: "(?=%>)"
|
57
|
+
patterns:
|
58
58
|
- include: source.asp.vb.net
|
59
59
|
comment: DEBUG
|
60
|
-
php:
|
61
|
-
patterns:
|
60
|
+
php:
|
61
|
+
patterns:
|
62
62
|
- name: source.php.embedded.html
|
63
|
-
captures:
|
64
|
-
|
63
|
+
captures:
|
64
|
+
'1':
|
65
65
|
name: punctuation.section.embedded.php
|
66
|
-
begin: (
|
67
|
-
end: (
|
68
|
-
patterns:
|
66
|
+
begin: "(?:^\\s*)(<\\?(php|=)?)(?!.*\\?>)"
|
67
|
+
end: "(\\?>)(?:\\s*$\\n)?"
|
68
|
+
patterns:
|
69
69
|
- include: "#php-source"
|
70
70
|
comment: match only multi-line PHP with leading whitespace
|
71
71
|
- name: source.php.embedded.html
|
72
|
-
endCaptures:
|
73
|
-
|
72
|
+
endCaptures:
|
73
|
+
'0':
|
74
74
|
name: punctuation.section.embedded.end.php
|
75
|
-
begin:
|
76
|
-
beginCaptures:
|
77
|
-
|
75
|
+
begin: "<\\?(php|=)?"
|
76
|
+
beginCaptures:
|
77
|
+
'0':
|
78
78
|
name: punctuation.section.embedded.begin.php
|
79
|
-
end:
|
80
|
-
patterns:
|
79
|
+
end: "\\?>"
|
80
|
+
patterns:
|
81
81
|
- include: "#php-source"
|
82
|
-
php-source:
|
83
|
-
patterns:
|
82
|
+
php-source:
|
83
|
+
patterns:
|
84
84
|
- name: comment.line.number-sign.php
|
85
|
-
captures:
|
86
|
-
|
85
|
+
captures:
|
86
|
+
'1':
|
87
87
|
name: punctuation.definition.comment.php
|
88
|
-
match: (#).*?(
|
88
|
+
match: "(#).*?(?=\\?>)"
|
89
89
|
- name: comment.line.double-slash.php
|
90
|
-
captures:
|
91
|
-
|
90
|
+
captures:
|
91
|
+
'1':
|
92
92
|
name: punctuation.definition.comment.php
|
93
|
-
match: (//).*?(
|
93
|
+
match: "(//).*?(?=\\?>)"
|
94
94
|
- include: source.php
|
95
|
-
entities:
|
96
|
-
patterns:
|
95
|
+
entities:
|
96
|
+
patterns:
|
97
97
|
- name: constant.character.entity.html
|
98
|
-
captures:
|
99
|
-
|
98
|
+
captures:
|
99
|
+
'1':
|
100
100
|
name: punctuation.definition.entity.html
|
101
|
-
|
101
|
+
'3':
|
102
102
|
name: punctuation.definition.entity.html
|
103
|
-
match: (&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)
|
103
|
+
match: "(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)"
|
104
104
|
- name: invalid.illegal.bad-ampersand.html
|
105
105
|
match: "&"
|
106
|
-
string-single-quoted:
|
106
|
+
string-single-quoted:
|
107
107
|
name: string.quoted.single.html
|
108
|
-
endCaptures:
|
109
|
-
|
108
|
+
endCaptures:
|
109
|
+
'0':
|
110
110
|
name: punctuation.definition.string.end.html
|
111
111
|
begin: "'"
|
112
|
-
beginCaptures:
|
113
|
-
|
112
|
+
beginCaptures:
|
113
|
+
'0':
|
114
114
|
name: punctuation.definition.string.begin.html
|
115
115
|
end: "'"
|
116
|
-
patterns:
|
116
|
+
patterns:
|
117
117
|
- include: "#embedded-code"
|
118
118
|
- include: "#entities"
|
119
|
-
source-asp-return:
|
119
|
+
source-asp-return:
|
120
120
|
name: meta.source.embedded.return-value
|
121
|
-
endCaptures:
|
122
|
-
|
121
|
+
endCaptures:
|
122
|
+
'0':
|
123
123
|
name: punctuation.section.embedded.end.asp
|
124
|
-
begin: <%=
|
125
|
-
beginCaptures:
|
126
|
-
|
124
|
+
begin: "<%="
|
125
|
+
beginCaptures:
|
126
|
+
'0':
|
127
127
|
name: punctuation.section.embedded.begin.asp
|
128
128
|
end: "%>"
|
129
|
-
patterns:
|
129
|
+
patterns:
|
130
130
|
- name: source.asp.embedded.html
|
131
|
-
begin: (?<=<%=)
|
132
|
-
end: (?=%>)
|
133
|
-
patterns:
|
131
|
+
begin: "(?<=<%=)"
|
132
|
+
end: "(?=%>)"
|
133
|
+
patterns:
|
134
134
|
- include: source.asp.vb.net
|
135
|
-
source-asp-embedded-scripttag:
|
135
|
+
source-asp-embedded-scripttag:
|
136
136
|
name: meta.source.embedded.script-tag
|
137
|
-
captures:
|
138
|
-
|
137
|
+
captures:
|
138
|
+
'1':
|
139
139
|
name: punctuation.definition.tag.html
|
140
|
-
|
140
|
+
'2':
|
141
141
|
name: entity.name.tag.script.html
|
142
|
-
|
142
|
+
'3':
|
143
143
|
name: punctuation.definition.tag.html
|
144
|
-
begin: (
|
145
|
-
end: (</)(script)(>)(
|
146
|
-
patterns:
|
144
|
+
begin: "(?:^\\s+)?(<)(script).*runat=.server[^>]*(>)"
|
145
|
+
end: "(</)(script)(>)(?:\\s*$\\n)?"
|
146
|
+
patterns:
|
147
147
|
- name: source.asp.embedded.html
|
148
|
-
begin: (?<=(>))
|
149
|
-
end: (?=</script>)
|
150
|
-
patterns:
|
148
|
+
begin: "(?<=(>))"
|
149
|
+
end: "(?=</script>)"
|
150
|
+
patterns:
|
151
151
|
- include: source.asp.vb.net
|
152
|
-
tag-id-attribute:
|
152
|
+
tag-id-attribute:
|
153
153
|
name: meta.attribute-with-value.id.html
|
154
|
-
captures:
|
155
|
-
|
154
|
+
captures:
|
155
|
+
'1':
|
156
156
|
name: entity.other.attribute-name.id.html
|
157
|
-
|
157
|
+
'2':
|
158
158
|
name: punctuation.separator.key-value.html
|
159
|
-
begin:
|
160
|
-
end: (?<='
|
161
|
-
patterns:
|
159
|
+
begin: "\\b(id)\\b\\s*(=)"
|
160
|
+
end: "(?<='|\")"
|
161
|
+
patterns:
|
162
162
|
- name: string.quoted.double.html
|
163
|
-
endCaptures:
|
164
|
-
|
163
|
+
endCaptures:
|
164
|
+
'0':
|
165
165
|
name: punctuation.definition.string.end.html
|
166
166
|
begin: "\""
|
167
167
|
contentName: meta.toc-list.id.html
|
168
|
-
beginCaptures:
|
169
|
-
|
168
|
+
beginCaptures:
|
169
|
+
'0':
|
170
170
|
name: punctuation.definition.string.begin.html
|
171
171
|
end: "\""
|
172
|
-
patterns:
|
172
|
+
patterns:
|
173
173
|
- include: "#embedded-code"
|
174
174
|
- include: "#entities"
|
175
175
|
- name: string.quoted.single.html
|
176
|
-
endCaptures:
|
177
|
-
|
176
|
+
endCaptures:
|
177
|
+
'0':
|
178
178
|
name: punctuation.definition.string.end.html
|
179
179
|
begin: "'"
|
180
180
|
contentName: meta.toc-list.id.html
|
181
|
-
beginCaptures:
|
182
|
-
|
181
|
+
beginCaptures:
|
182
|
+
'0':
|
183
183
|
name: punctuation.definition.string.begin.html
|
184
184
|
end: "'"
|
185
|
-
patterns:
|
185
|
+
patterns:
|
186
186
|
- include: "#embedded-code"
|
187
187
|
- include: "#entities"
|
188
|
-
source-asp-bound:
|
188
|
+
source-asp-bound:
|
189
189
|
name: meta.source.embedded.bound
|
190
|
-
endCaptures:
|
191
|
-
|
190
|
+
endCaptures:
|
191
|
+
'0':
|
192
192
|
name: punctuation.section.embedded.end.asp
|
193
|
-
begin: <%#
|
194
|
-
beginCaptures:
|
195
|
-
|
193
|
+
begin: "<%#"
|
194
|
+
beginCaptures:
|
195
|
+
'0':
|
196
196
|
name: punctuation.section.embedded.begin.asp
|
197
197
|
end: "%>"
|
198
|
-
patterns:
|
198
|
+
patterns:
|
199
199
|
- name: source.asp.embedded.html
|
200
|
-
begin: (?<=<%#)
|
201
|
-
end: (?=%>)
|
202
|
-
patterns:
|
200
|
+
begin: "(?<=<%#)"
|
201
|
+
end: "(?=%>)"
|
202
|
+
patterns:
|
203
203
|
- include: source.asp.vb.net
|
204
|
-
tag-generic-attribute:
|
204
|
+
tag-generic-attribute:
|
205
205
|
name: entity.other.attribute-name.html
|
206
|
-
match:
|
207
|
-
ruby:
|
206
|
+
match: "\\b([a-zA-Z-:]+)"
|
207
|
+
ruby:
|
208
208
|
name: source.ruby.embedded.html
|
209
|
-
endCaptures:
|
210
|
-
|
209
|
+
endCaptures:
|
210
|
+
'0':
|
211
211
|
name: punctuation.section.embedded.end.ruby
|
212
|
-
begin: <%+(?!>)=?
|
213
|
-
beginCaptures:
|
214
|
-
|
212
|
+
begin: "<%+(?!>)=?"
|
213
|
+
beginCaptures:
|
214
|
+
'0':
|
215
215
|
name: punctuation.section.embedded.begin.ruby
|
216
|
-
end: -?%>
|
217
|
-
patterns:
|
216
|
+
end: "-?%>"
|
217
|
+
patterns:
|
218
218
|
- name: comment.line.number-sign.ruby
|
219
|
-
captures:
|
220
|
-
|
219
|
+
captures:
|
220
|
+
'1':
|
221
221
|
name: punctuation.definition.comment.ruby
|
222
|
-
match: (#).*?(?=-?%>)
|
222
|
+
match: "(#).*?(?=-?%>)"
|
223
223
|
- include: source.ruby
|
224
|
-
asp:
|
225
|
-
patterns:
|
224
|
+
asp:
|
225
|
+
patterns:
|
226
226
|
- include: "#source-asp-embedded-scripttag"
|
227
227
|
- include: "#source-asp-embedded"
|
228
228
|
- include: "#source-asp-bound"
|
229
229
|
- include: "#source-asp-return"
|
230
230
|
- name: meta.source.embedded.asp.include
|
231
|
-
captures:
|
232
|
-
|
231
|
+
captures:
|
232
|
+
'1':
|
233
233
|
name: punctuation.definition.tag.asp
|
234
|
-
|
234
|
+
'3':
|
235
235
|
name: punctuation.definition.tag.asp
|
236
|
-
match: (<!--)
|
237
|
-
smarty:
|
238
|
-
patterns:
|
239
|
-
- captures:
|
240
|
-
|
236
|
+
match: "(<!--)\\s+#include.*(-->)"
|
237
|
+
smarty:
|
238
|
+
patterns:
|
239
|
+
- captures:
|
240
|
+
'1':
|
241
241
|
name: source.smarty.embedded.html
|
242
|
-
|
242
|
+
'2':
|
243
243
|
name: punctuation.section.embedded.smarty
|
244
|
-
|
244
|
+
'3':
|
245
245
|
name: support.function.built-in.smarty
|
246
|
-
|
246
|
+
'4':
|
247
247
|
name: punctuation.section.embedded.smarty
|
248
|
-
begin: ((
|
249
|
-
end: ((
|
248
|
+
begin: "((\\{)(literal)(\\}))"
|
249
|
+
end: "((\\{/)(literal)(\\}))"
|
250
250
|
- name: source.smarty.embedded.html
|
251
|
-
captures:
|
252
|
-
|
251
|
+
captures:
|
252
|
+
'0':
|
253
253
|
name: punctuation.section.embedded.smarty
|
254
254
|
begin: "{{|{"
|
255
255
|
end: "}}|}"
|
256
256
|
disabled: 1
|
257
|
-
patterns:
|
257
|
+
patterns:
|
258
258
|
- include: source.smarty
|
259
|
-
embedded-code:
|
260
|
-
patterns:
|
259
|
+
embedded-code:
|
260
|
+
patterns:
|
261
261
|
- include: "#php"
|
262
262
|
- include: "#asp"
|
263
263
|
- include: "#smarty"
|
264
264
|
uuid: 426BF395-E61E-430F-8E4C-47F2E15C769B
|
265
|
-
foldingStartMarker:
|
266
|
-
|
267
|
-
(<(?i:mm:dataset|mm:insert|mm:update|asp:DataGrid|asp:Repeater|asp:TemplateColumn|head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\b
|
268
|
-
|<!--(?!.*-->)
|
269
|
-
|<%(?!.*%>)
|
270
|
-
|\{\{?(if|foreach|capture|literal|foreach|php|section|strip)
|
271
|
-
|\{\s*($|\?>\s*$|//|/\*(.*\*/\s*$|(?!.*?\*/)))
|
272
|
-
)
|
273
|
-
patterns:
|
265
|
+
foldingStartMarker: "(?x)\n\t\t(<(?i:mm:dataset|mm:insert|mm:update|asp:DataGrid|asp:Repeater|asp:TemplateColumn|head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\\b\n\t\t|<!--(?!.*-->)\n\t\t|<%(?!.*%>)\n\t\t|\\{\\{?(if|foreach|capture|literal|foreach|php|section|strip)\n\t\t|\\{\\s*($|\\?>\\s*$|//|/\\*(.*\\*/\\s*$|(?!.*?\\*/)))\n\t\t)"
|
266
|
+
patterns:
|
274
267
|
- include: "#php"
|
275
268
|
- include: "#asp"
|
276
269
|
- include: "#smarty"
|
277
270
|
- name: meta.tag.html
|
278
|
-
captures:
|
279
|
-
|
271
|
+
captures:
|
272
|
+
'6':
|
280
273
|
name: punctuation.definition.tag.html
|
281
|
-
|
274
|
+
'1':
|
282
275
|
name: punctuation.definition.tag.html
|
283
|
-
|
276
|
+
'2':
|
284
277
|
name: entity.name.tag.html
|
285
|
-
|
278
|
+
'3':
|
286
279
|
name: punctuation.definition.tag.html
|
287
|
-
|
280
|
+
'4':
|
288
281
|
name: meta.scope.between-tag-pair.html
|
289
|
-
|
282
|
+
'5':
|
290
283
|
name: entity.name.tag.html
|
291
|
-
match: (<)(
|
284
|
+
match: "(<)(\\w+)[^>]*((>)</)(\\2)(>)"
|
292
285
|
- name: meta.tag.preprocessor.xml.html
|
293
|
-
captures:
|
294
|
-
|
286
|
+
captures:
|
287
|
+
'1':
|
295
288
|
name: punctuation.definition.tag.html
|
296
|
-
|
289
|
+
'2':
|
297
290
|
name: entity.name.tag.xml.html
|
298
|
-
begin: (
|
299
|
-
end: (
|
300
|
-
patterns:
|
291
|
+
begin: "(<\\?)(xml)"
|
292
|
+
end: "(\\?>)"
|
293
|
+
patterns:
|
301
294
|
- include: "#tag-generic-attribute"
|
302
295
|
- include: "#string-double-quoted"
|
303
296
|
- include: "#string-single-quoted"
|
304
297
|
- name: comment.block.html
|
305
|
-
captures:
|
306
|
-
|
298
|
+
captures:
|
299
|
+
'0':
|
307
300
|
name: punctuation.definition.comment.asp.net
|
308
|
-
begin: <!--
|
309
|
-
end: -->
|
310
|
-
patterns:
|
301
|
+
begin: "<!--"
|
302
|
+
end: "-->"
|
303
|
+
patterns:
|
311
304
|
- name: invalid.illegal.bad-comments-or-CDATA.html
|
312
|
-
match: --
|
305
|
+
match: "--"
|
313
306
|
- name: meta.tag.sgml.html
|
314
|
-
captures:
|
315
|
-
|
307
|
+
captures:
|
308
|
+
'0':
|
316
309
|
name: punctuation.definition.tag.asp.net
|
317
|
-
begin: <!
|
310
|
+
begin: "<!"
|
318
311
|
end: ">"
|
319
|
-
patterns:
|
312
|
+
patterns:
|
320
313
|
- name: meta.tag.sgml.doctype.html
|
321
|
-
captures:
|
322
|
-
|
314
|
+
captures:
|
315
|
+
'1':
|
323
316
|
name: entity.name.tag.doctype.html
|
324
|
-
begin: (DOCTYPE)
|
325
|
-
end: (?=>)
|
326
|
-
patterns:
|
317
|
+
begin: "(DOCTYPE)"
|
318
|
+
end: "(?=>)"
|
319
|
+
patterns:
|
327
320
|
- name: string.quoted.double.doctype.identifiers-and-DTDs.html
|
328
321
|
match: "\"[^\">]*\""
|
329
322
|
- name: constant.other.inline-data.html
|
330
|
-
begin:
|
323
|
+
begin: "\\[CDATA\\["
|
331
324
|
end: "]](?=>)"
|
332
325
|
- name: invalid.illegal.bad-comments-or-CDATA.html
|
333
|
-
match: (
|
326
|
+
match: "(\\s*)(?!--|>)\\S(\\s*)"
|
334
327
|
- name: source.js.embedded.html
|
335
|
-
captures:
|
336
|
-
|
328
|
+
captures:
|
329
|
+
'1':
|
337
330
|
name: punctuation.definition.tag.html
|
338
|
-
|
331
|
+
'2':
|
339
332
|
name: entity.name.tag.script.html
|
340
|
-
begin: (
|
341
|
-
end: (?<=</(script|SCRIPT))(>)(
|
342
|
-
patterns:
|
333
|
+
begin: "(?:^\\s+)?(<)((?i:script))\\b(?![^>]*/>)"
|
334
|
+
end: "(?<=</(script|SCRIPT))(>)(?:\\s*\\n)?"
|
335
|
+
patterns:
|
343
336
|
- include: "#tag-stuff"
|
344
|
-
- captures:
|
345
|
-
|
337
|
+
- captures:
|
338
|
+
'1':
|
346
339
|
name: punctuation.definition.tag.html
|
347
|
-
begin: (?<!</(?:script|SCRIPT))(>)
|
348
|
-
end: (</)((?i:script))
|
349
|
-
patterns:
|
340
|
+
begin: "(?<!</(?:script|SCRIPT))(>)"
|
341
|
+
end: "(</)((?i:script))"
|
342
|
+
patterns:
|
350
343
|
- include: source.js
|
351
344
|
- name: source.css.embedded.html
|
352
|
-
captures:
|
353
|
-
|
345
|
+
captures:
|
346
|
+
'1':
|
354
347
|
name: punctuation.definition.tag.html
|
355
|
-
|
348
|
+
'2':
|
356
349
|
name: entity.name.tag.style.html
|
357
|
-
|
350
|
+
'3':
|
358
351
|
name: punctuation.definition.tag.html
|
359
|
-
begin: (
|
360
|
-
end: (</)((?i:style))(>)(
|
361
|
-
patterns:
|
352
|
+
begin: "(?:^\\s+)?(<)((?i:style))\\b(?![^>]*/>)"
|
353
|
+
end: "(</)((?i:style))(>)(?:\\s*\\n)?"
|
354
|
+
patterns:
|
362
355
|
- include: "#tag-stuff"
|
363
|
-
- begin: (>)
|
364
|
-
beginCaptures:
|
365
|
-
|
356
|
+
- begin: "(>)"
|
357
|
+
beginCaptures:
|
358
|
+
'1':
|
366
359
|
name: punctuation.definition.tag.html
|
367
|
-
end: (?=</(?i:style))
|
368
|
-
patterns:
|
360
|
+
end: "(?=</(?i:style))"
|
361
|
+
patterns:
|
369
362
|
- include: source.css
|
370
363
|
- name: meta.tag.structure.any.html
|
371
|
-
captures:
|
372
|
-
|
364
|
+
captures:
|
365
|
+
'1':
|
373
366
|
name: punctuation.definition.tag.html
|
374
|
-
|
367
|
+
'2':
|
375
368
|
name: entity.name.tag.structure.any.html
|
376
|
-
begin: (</?)((?i:body|head|html)
|
377
|
-
end: (>)
|
378
|
-
patterns:
|
369
|
+
begin: "(</?)((?i:body|head|html)\\b)"
|
370
|
+
end: "(>)"
|
371
|
+
patterns:
|
379
372
|
- include: "#tag-stuff"
|
380
373
|
- name: meta.tag.block.any.html
|
381
|
-
captures:
|
382
|
-
|
374
|
+
captures:
|
375
|
+
'1':
|
383
376
|
name: punctuation.definition.tag.html
|
384
|
-
|
377
|
+
'2':
|
385
378
|
name: entity.name.tag.block.any.html
|
386
|
-
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)
|
387
|
-
end: (>)
|
388
|
-
patterns:
|
379
|
+
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)"
|
380
|
+
end: "(>)"
|
381
|
+
patterns:
|
389
382
|
- include: "#tag-stuff"
|
390
383
|
- name: meta.tag.inline.any.html
|
391
|
-
captures:
|
392
|
-
|
384
|
+
captures:
|
385
|
+
'1':
|
393
386
|
name: punctuation.definition.tag.html
|
394
|
-
|
387
|
+
'2':
|
395
388
|
name: entity.name.tag.inline.any.html
|
396
|
-
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)
|
397
|
-
end: (>)
|
398
|
-
patterns:
|
389
|
+
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)"
|
390
|
+
end: "(>)"
|
391
|
+
patterns:
|
399
392
|
- include: "#tag-stuff"
|
400
393
|
- name: meta.tag.other.html
|
401
|
-
captures:
|
402
|
-
|
394
|
+
captures:
|
395
|
+
'1':
|
403
396
|
name: punctuation.definition.tag.html
|
404
|
-
|
397
|
+
'2':
|
405
398
|
name: entity.name.tag.other.html
|
406
|
-
begin: (</?)([a-zA-Z0-9:]+)
|
407
|
-
end: (>)
|
408
|
-
patterns:
|
399
|
+
begin: "(</?)([a-zA-Z0-9:]+)"
|
400
|
+
end: "(>)"
|
401
|
+
patterns:
|
409
402
|
- include: "#tag-stuff"
|
410
403
|
- include: "#entities"
|
411
404
|
- name: invalid.illegal.incomplete.html
|
412
|
-
match: <>
|
405
|
+
match: "<>"
|
413
406
|
- name: invalid.illegal.bad-angle-bracket.html
|
414
|
-
match: <(
|
415
|
-
foldingStopMarker:
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|^\s*%>
|
420
|
-
|\{\{?/(if|foreach|capture|literal|foreach|php|section|strip)
|
421
|
-
|(^|\s)\}
|
422
|
-
)
|
423
|
-
keyEquivalent: ^~A
|
424
|
-
comment: This is a modified version of the HTML language that uses ASP VB.NET for embedded source code instead of ruby. Thomas Aylott subtleGradient.com
|
407
|
+
match: "<(?=\\W)|>"
|
408
|
+
foldingStopMarker: "(?x)\n\t\t(</(?i:mm:dataset|mm:insert|mm:update|asp:DataGrid|asp:Repeater|asp:TemplateColumn|head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>\n\t\t|^\\s*-->\n\t\t|^\\s*%>\n\t\t|\\{\\{?/(if|foreach|capture|literal|foreach|php|section|strip)\n\t\t|(^|\\s)\\}\n\t\t)"
|
409
|
+
keyEquivalent: "^~A"
|
410
|
+
comment: This is a modified version of the HTML language that uses ASP VB.NET for
|
411
|
+
embedded source code instead of ruby. Thomas Aylott subtleGradient.com
|