code_rippa 0.0.7 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,276 +1,322 @@
|
|
1
|
-
---
|
1
|
+
---
|
2
2
|
name: Active4D
|
3
3
|
fileTypes: []
|
4
|
-
|
5
4
|
scopeName: source.active4d
|
6
|
-
repository:
|
7
|
-
escaped_char:
|
5
|
+
repository:
|
6
|
+
escaped_char:
|
8
7
|
name: constant.character.escape.active4d
|
9
|
-
match:
|
10
|
-
interpolated_variable:
|
8
|
+
match: "\\\\."
|
9
|
+
interpolated_variable:
|
11
10
|
name: variable.other.interpolated.local.active4d
|
12
|
-
captures:
|
13
|
-
|
11
|
+
captures:
|
12
|
+
'1':
|
14
13
|
name: punctuation.definition.variable.active4d
|
15
|
-
match: (
|
16
|
-
interpolated_table_field:
|
14
|
+
match: "(\\$)[\\w_]+({(\".+?\"|\\d+|\\$[\\w_]+)})*(\\[\\[\\d+\\]\\])*"
|
15
|
+
interpolated_table_field:
|
17
16
|
name: variable.other.interpolated.table-field.active4d
|
18
|
-
match:
|
19
|
-
interpolated_string:
|
20
|
-
patterns:
|
17
|
+
match: "\\[\\w[\\w_ ]*\\][\\w_]+(\\[\\[\\d+\\]\\])*"
|
18
|
+
interpolated_string:
|
19
|
+
patterns:
|
21
20
|
- include: "#escaped_char"
|
22
21
|
- include: "#interpolated_code"
|
23
22
|
- include: "#interpolated_table_field"
|
24
23
|
- include: "#interpolated_variable"
|
25
24
|
- include: "#interpolated_collection_ref"
|
26
|
-
interpolated_code:
|
25
|
+
interpolated_code:
|
27
26
|
name: source.interpolated.active4d
|
28
|
-
endCaptures:
|
29
|
-
|
27
|
+
endCaptures:
|
28
|
+
'0':
|
30
29
|
name: punctuation.definition.string.end.active4d
|
31
|
-
begin: `
|
32
|
-
beginCaptures:
|
33
|
-
|
30
|
+
begin: "`"
|
31
|
+
beginCaptures:
|
32
|
+
'0':
|
34
33
|
name: punctuation.definition.string.begin.active4d
|
35
|
-
end: `
|
36
|
-
patterns:
|
37
|
-
- include: $self
|
38
|
-
interpolated_collection_ref:
|
34
|
+
end: "`"
|
35
|
+
patterns:
|
36
|
+
- include: "$self"
|
37
|
+
interpolated_collection_ref:
|
39
38
|
name: variable.other.interpolated.collection-ref.active4d
|
40
|
-
match: (_form|_query|_request|globals|session)({("
|
41
|
-
fusedoc:
|
39
|
+
match: "(_form|_query|_request|globals|session)({(\".+?\"|\\d+|\\$[\\w_]+)})+(\\[\\[\\d+\\]\\])*"
|
40
|
+
fusedoc:
|
42
41
|
name: text.xml
|
43
|
-
begin: (
|
44
|
-
end: (?<=</fusedoc>)
|
45
|
-
patterns:
|
42
|
+
begin: "(?=^\\s*<fusedoc )"
|
43
|
+
end: "(?<=</fusedoc>)"
|
44
|
+
patterns:
|
46
45
|
- include: text.xml
|
47
46
|
uuid: 8C2BF09D-AE95-479B-B516-F8DB62C86A0C
|
48
|
-
foldingStartMarker:
|
49
|
-
|
50
|
-
|
51
|
-
)
|
52
|
-
patterns:
|
47
|
+
foldingStartMarker: "(?x)\n\t\t(^\\s*(?i:if|while|for\\ each|for|case\\ of|repeat|method|save
|
48
|
+
output)\\b\n\t\t)"
|
49
|
+
patterns:
|
53
50
|
- name: comment.line.backtick.active4d
|
54
|
-
captures:
|
55
|
-
|
51
|
+
captures:
|
52
|
+
'1':
|
56
53
|
name: punctuation.definition.comment.active4d
|
57
|
-
match: (`)
|
54
|
+
match: "(`).*$\\n?"
|
58
55
|
- name: comment.line.double-slash.active4d
|
59
|
-
captures:
|
60
|
-
|
56
|
+
captures:
|
57
|
+
'1':
|
61
58
|
name: punctuation.definition.comment.active4d
|
62
|
-
match: (//)
|
59
|
+
match: "(//).*$\\n?"
|
63
60
|
- name: comment.line.double-backslash.continuation.active4d
|
64
|
-
captures:
|
65
|
-
|
61
|
+
captures:
|
62
|
+
'1':
|
66
63
|
name: punctuation.definition.comment.active4d
|
67
|
-
match: (
|
64
|
+
match: "(\\\\\\\\).*$\\n?"
|
68
65
|
- name: comment.block.active4d
|
69
|
-
captures:
|
70
|
-
|
66
|
+
captures:
|
67
|
+
'0':
|
71
68
|
name: punctuation.definition.comment.active4d
|
72
|
-
begin:
|
73
|
-
end:
|
74
|
-
patterns:
|
69
|
+
begin: "/\\*"
|
70
|
+
end: "\\*/"
|
71
|
+
patterns:
|
75
72
|
- include: "#fusedoc"
|
76
73
|
- name: string.quoted.double.active4d
|
77
|
-
endCaptures:
|
78
|
-
|
74
|
+
endCaptures:
|
75
|
+
'0':
|
79
76
|
name: punctuation.definition.string.end.active4d
|
80
77
|
begin: "\"(?!\"\")"
|
81
|
-
beginCaptures:
|
82
|
-
|
78
|
+
beginCaptures:
|
79
|
+
'0':
|
83
80
|
name: punctuation.definition.string.begin.active4d
|
84
81
|
end: "\""
|
85
|
-
patterns:
|
82
|
+
patterns:
|
86
83
|
- include: "#escaped_char"
|
87
84
|
- name: string.quoted.triple.heredoc.active4d
|
88
|
-
endCaptures:
|
89
|
-
|
85
|
+
endCaptures:
|
86
|
+
'0':
|
90
87
|
name: punctuation.definition.string.end.active4d
|
91
88
|
begin: "\"\"\""
|
92
|
-
beginCaptures:
|
93
|
-
|
89
|
+
beginCaptures:
|
90
|
+
'0':
|
94
91
|
name: punctuation.definition.string.begin.active4d
|
95
92
|
end: "\"\"\""
|
96
|
-
patterns:
|
93
|
+
patterns:
|
97
94
|
- include: "#escaped_char"
|
98
95
|
- name: string.interpolated.quoted.single.active4d
|
99
|
-
endCaptures:
|
100
|
-
|
96
|
+
endCaptures:
|
97
|
+
'0':
|
101
98
|
name: punctuation.definition.string.end.active4d
|
102
99
|
begin: "'(?!'')"
|
103
|
-
beginCaptures:
|
104
|
-
|
100
|
+
beginCaptures:
|
101
|
+
'0':
|
105
102
|
name: punctuation.definition.string.begin.active4d
|
106
103
|
end: "'"
|
107
|
-
patterns:
|
104
|
+
patterns:
|
108
105
|
- include: "#interpolated_string"
|
109
106
|
- name: string.interpolated.quoted.triple.heredoc.active4d
|
110
|
-
endCaptures:
|
111
|
-
|
107
|
+
endCaptures:
|
108
|
+
'0':
|
112
109
|
name: punctuation.definition.string.end.active4d
|
113
110
|
begin: "'''"
|
114
|
-
beginCaptures:
|
115
|
-
|
111
|
+
beginCaptures:
|
112
|
+
'0':
|
116
113
|
name: punctuation.definition.string.begin.active4d
|
117
114
|
end: "'''"
|
118
|
-
patterns:
|
115
|
+
patterns:
|
119
116
|
- include: "#interpolated_string"
|
120
117
|
- name: constant.numeric.active4d
|
121
|
-
match: (?<![[:alpha:]])[
|
118
|
+
match: "(?<![[:alpha:]])[\\-]?(?:0x[[:xdigit:]]{1,4}|\\d+(\\.\\d+)?)(?![[:alpha:]])"
|
122
119
|
- name: constant.language.boolean.active4d
|
123
|
-
match:
|
120
|
+
match: "\\b(?i)(true|false)\\b"
|
124
121
|
- name: variable.other.local.active4d
|
125
|
-
captures:
|
126
|
-
|
122
|
+
captures:
|
123
|
+
'1':
|
127
124
|
name: punctuation.definition.variable.active4d
|
128
|
-
match: (
|
125
|
+
match: "(\\$)[\\w_]+"
|
129
126
|
- name: variable.other.interprocess.active4d
|
130
|
-
captures:
|
131
|
-
|
127
|
+
captures:
|
128
|
+
'1':
|
132
129
|
name: punctuation.definition.variable.active4d
|
133
|
-
match: (
|
130
|
+
match: "(\\<\\>)[\\w_]+"
|
134
131
|
- name: variable.other.table-field.active4d
|
135
|
-
captures:
|
136
|
-
|
132
|
+
captures:
|
133
|
+
'1':
|
137
134
|
name: punctuation.definition.variable.active4d
|
138
|
-
|
135
|
+
'2':
|
139
136
|
name: punctuation.definition.variable.active4d
|
140
|
-
match: (
|
137
|
+
match: "(\\[)[^\\[].*?(\\])([\\w_ ]+)?"
|
141
138
|
- name: constant.other.date.active4d
|
142
|
-
captures:
|
143
|
-
|
139
|
+
captures:
|
140
|
+
'1':
|
144
141
|
name: punctuation.definition.constant.active4d
|
145
|
-
|
142
|
+
'2':
|
146
143
|
name: punctuation.definition.constant.active4d
|
147
|
-
match: (!)
|
144
|
+
match: "(!)\\d{1,2}/\\d{1,2}/\\d{2,4}(!)"
|
148
145
|
- name: constant.other.time.active4d
|
149
|
-
captures:
|
150
|
-
|
146
|
+
captures:
|
147
|
+
'1':
|
151
148
|
name: punctuation.definition.constant.active4d
|
152
|
-
|
149
|
+
'2':
|
153
150
|
name: punctuation.definition.constant.active4d
|
154
|
-
match: (
|
151
|
+
match: "(\\?)\\d{1,2}:\\d{1,2}:\\d{1,2}(\\?)"
|
155
152
|
- name: meta.function.active4d
|
156
|
-
captures:
|
157
|
-
|
153
|
+
captures:
|
154
|
+
'1':
|
158
155
|
name: storage.type.function.active4d
|
159
|
-
|
156
|
+
'2':
|
160
157
|
name: entity.name.function.active4d
|
161
|
-
match:
|
158
|
+
match: "^\\s*(method)\\s*(\"[^\"]+\")(?!\\s*\\()"
|
162
159
|
comment: method definition without parameters
|
163
160
|
- name: meta.function.active4d
|
164
|
-
endCaptures:
|
165
|
-
|
161
|
+
endCaptures:
|
162
|
+
'1':
|
166
163
|
name: punctuation.definition.parameters.active4d
|
167
|
-
begin:
|
168
|
-
beginCaptures:
|
169
|
-
|
164
|
+
begin: "^\\s*(method)\\s*((\")[^\"]+(\"))\\s*(\\()"
|
165
|
+
beginCaptures:
|
166
|
+
'1':
|
170
167
|
name: storage.type.function.active4d
|
171
|
-
|
168
|
+
'2':
|
172
169
|
name: entity.name.function.active4d
|
173
|
-
|
170
|
+
'3':
|
174
171
|
name: punctuation.definition.entity.active4d
|
175
|
-
|
172
|
+
'4':
|
176
173
|
name: punctuation.definition.entity.active4d
|
177
|
-
|
174
|
+
'5':
|
178
175
|
name: punctuation.definition.parameters.active4d
|
179
|
-
end: (
|
180
|
-
patterns:
|
176
|
+
end: "(\\))\\s*(?:(?:\\\\\\\\|//|`).*)?$"
|
177
|
+
patterns:
|
181
178
|
- name: variable.parameter.function.active4d
|
182
|
-
captures:
|
183
|
-
|
179
|
+
captures:
|
180
|
+
'1':
|
184
181
|
name: keyword.operator.active4d
|
185
|
-
|
182
|
+
'2':
|
186
183
|
name: punctuation.definition.variable.active4d
|
187
|
-
|
184
|
+
'3':
|
188
185
|
name: punctuation.separator.parameters.active4d
|
189
|
-
match: (&)?(
|
190
|
-
- endCaptures:
|
191
|
-
|
186
|
+
match: "(&)?(\\$)[\\w_]+(;)?"
|
187
|
+
- endCaptures:
|
188
|
+
'1':
|
192
189
|
name: punctuation.separator.parameters.active4d
|
193
|
-
begin: (=)
|
194
|
-
beginCaptures:
|
195
|
-
|
190
|
+
begin: "(=)"
|
191
|
+
beginCaptures:
|
192
|
+
'1':
|
196
193
|
name: punctuation.separator.key-value.active4d
|
197
|
-
end: (;)|(
|
198
|
-
patterns:
|
199
|
-
- include: $self
|
194
|
+
end: "(;)|(?=\\))"
|
195
|
+
patterns:
|
196
|
+
- include: "$self"
|
200
197
|
comment: method definition with parameters
|
201
198
|
- name: keyword.operator.active4d
|
202
|
-
match:
|
203
|
-
(?x) (
|
204
|
-
:=
|
205
|
-
| \+=
|
206
|
-
| \-=
|
207
|
-
| /=
|
208
|
-
| \\=
|
209
|
-
| \*=
|
210
|
-
| \%=
|
211
|
-
| \^=
|
212
|
-
| &=
|
213
|
-
| \|=
|
214
|
-
| <<=
|
215
|
-
| >>=
|
216
|
-
| >
|
217
|
-
| <
|
218
|
-
| >=
|
219
|
-
| <=
|
220
|
-
| =
|
221
|
-
| =~
|
222
|
-
| \#
|
223
|
-
| \#~
|
224
|
-
| ~
|
225
|
-
| !~
|
226
|
-
| \+
|
227
|
-
| \+\+
|
228
|
-
| \-
|
229
|
-
| \-\-
|
230
|
-
| /
|
231
|
-
| \\
|
232
|
-
| \*
|
233
|
-
| \*\+
|
234
|
-
| \*/
|
235
|
-
| %
|
236
|
-
| &
|
237
|
-
| \|
|
238
|
-
| \^
|
239
|
-
| \^\|
|
240
|
-
| <<
|
241
|
-
| >>
|
242
|
-
| \?\+
|
243
|
-
| \?\-
|
244
|
-
| \?\?
|
245
|
-
| \}
|
246
|
-
| \{
|
247
|
-
| ;
|
248
|
-
| \:
|
249
|
-
| \]\]
|
250
|
-
| \[\[
|
251
|
-
| \->)
|
199
|
+
match: "(?x) (\n\t\t\t\t:=\n\t\t\t|\t\\+=\t\n\t\t\t|\t\\-=\t\n\t\t\t|\t/=\t\n\t\t\t|\t\\\\=\t\n\t\t\t|\t\\*=\t\n\t\t\t|\t\\%=\t\n\t\t\t|\t\\^=\t\n\t\t\t|\t&=\t\n\t\t\t|\t\\|=\t\n\t\t\t|\t<<=\t\n\t\t\t|\t>>=\t\n\t\t\t|\t>\t\n\t\t\t|\t<\t\n\t\t\t|\t>=\t\n\t\t\t|\t<=\t\n\t\t\t|\t=\t\n\t\t\t|\t=~\t\n\t\t\t|\t\\#\t\n\t\t\t|\t\\#~\t\n\t\t\t|\t~\t\n\t\t\t|\t!~\t\n\t\t\t|\t\\+\n\t\t\t|\t\\+\\+\t\n\t\t\t|\t\\-\t\n\t\t\t|\t\\-\\-\t\n\t\t\t|\t/\t\n\t\t\t|\t\\\\\t\n\t\t\t|\t\\*\n\t\t\t|\t\\*\\+\n\t\t\t|\t\\*/\n\t\t\t|\t%\t\n\t\t\t|\t&\t\n\t\t\t|\t\\|\t\n\t\t\t|\t\\^\t\n\t\t\t|\t\\^\\|\t\n\t\t\t|\t<<\n\t\t\t|\t>>\n\t\t\t|\t\\?\\+\n\t\t\t|\t\\?\\-\n\t\t\t|\t\\?\\?\n\t\t\t|\t\\}\n\t\t\t|\t\\{\n\t\t\t|\t;\n\t\t\t|\t\\:\n\t\t\t|\t\\]\\]\n\t\t\t|\t\\[\\[\n\t\t\t|\t\\->)"
|
252
200
|
- name: keyword.control.active4d
|
253
|
-
match:
|
201
|
+
match: "\\b(?i)(end (if|for each|for|while|case)|if|else|while|for each|for|case
|
202
|
+
of|repeat|until|break|continue)\\b"
|
254
203
|
- name: keyword.other.active4d
|
255
|
-
match:
|
204
|
+
match: "\\b(?i)(end method|method|define|return|exit|self|import|require|global|throw)\\b"
|
256
205
|
- name: support.constant.active4d
|
257
|
-
match: (?i)
|
206
|
+
match: "(?i)\\b(Write Mode|Text without length|Text array|String array|Short|Real
|
207
|
+
array|Read Mode|Read and Write|Pointer array|Picture array|No current record|New
|
208
|
+
record|Month Day Year|MM DD YYYY Forced|MM DD YYYY|MAXTEXTLEN|MAXLONG|Longint
|
209
|
+
array|Long|Line feed|Is Undefined|Is Time|Is Text|Is String Var|Is Real|Is Pointer|Is
|
210
|
+
Picture|Is Longint|Is Integer|Is Date|Is Boolean|Is BLOB|Is Alpha Field|Into variable|Into
|
211
|
+
set|Into named selection|Into current selection|Integer array|Hour Min Sec|Hour
|
212
|
+
Min|HH MM SS|HH MM AM PM|HH MM|Get Pathname|Date array|Carriage return|Boolean
|
213
|
+
array|Array 2D|Abbreviated|Abbr Month Day|A4D Parameter Mode Separate|A4D Parameter
|
214
|
+
Mode Query|A4D Parameter Mode Form|A4D License Type Deployment|A4D Encoding Tags|A4D
|
215
|
+
Encoding Quotes|A4D Encoding None|A4D Encoding HTML|A4D Encoding Extended|A4D
|
216
|
+
Encoding Ampersand|A4D Encoding All|A4D Charset Win|A4D Charset Shift_JIS|A4D
|
217
|
+
Charset Mac|A4D Charset ISO Latin1|A4D Charset GB2312)\\b"
|
258
218
|
- name: support.function.active4d
|
259
|
-
match: (?i)
|
219
|
+
match: "(?i)\\b(_request|_query|_form|Year of|writep|writeln|writebr|write to console|write
|
220
|
+
raw|write png|WRITE PICTURE FILE|write jpg|write jpeg|write gif|write blob|write|Win
|
221
|
+
to Mac|week of year|variable name|VALIDATE TRANSACTION|utc to local time|utc to
|
222
|
+
local datetime|USE SET|USE NAMED SELECTION|url to native path|url encode query|url
|
223
|
+
encode path|url encode|url decode query|url decode path|url decode|Uppercase|unlock
|
224
|
+
globals|UNLOAD RECORD|UNION|Undefined|type descriptor|Type|Trunc|True|trim|timestamp
|
225
|
+
year|timestamp time|timestamp string|timestamp second|timestamp month|timestamp
|
226
|
+
minute|timestamp millisecond|timestamp hour|timestamp difference|timestamp day|timestamp
|
227
|
+
date|timestamp|time to longint|Time string|Time|Tickcount|throw|TEXT TO BLOB|Test
|
228
|
+
semaphore|Test path name|Table name|Table|Substring|Structure file|STRING LIST
|
229
|
+
TO ARRAY|String|START TRANSACTION|split string|SORT ARRAY|slice string|Size of
|
230
|
+
array|set session timeout|set session array|set session|set script timeout|set
|
231
|
+
response status|set response header|set response cookie path|set response cookie
|
232
|
+
expires|set response cookie domain|set response cookie|set response buffer|SET
|
233
|
+
QUERY LIMIT|SET QUERY DESTINATION|set platform charset|set output encoding|set
|
234
|
+
output charset|set log level|set local|set global array|set global|set expires
|
235
|
+
date|set expires|set error page|SET DOCUMENT POSITION|SET DEFAULT CENTURY|set
|
236
|
+
current script timeout|set content type|set content charset|set collection array|set
|
237
|
+
collection|set cache control|SET AUTOMATIC RELATIONS|set array|session to blob|session
|
238
|
+
query|session local|session internal id|session id|session has|session|Sequence
|
239
|
+
number|SEND PACKET|Semaphore|SELECTION TO ARRAY|SELECTION RANGE TO ARRAY|Selected
|
240
|
+
record number|SCAN INDEX|save upload to field|SAVE RECORD|save output|save collection|Round|right
|
241
|
+
trim|response headers|response cookies|response buffer size|RESOLVE POINTER|resize
|
242
|
+
array|require|requested url|request query|request info|request cookies|Replace
|
243
|
+
string|REMOVE FROM SET|RELATE ONE SELECTION|RELATE ONE|RELATE MANY SELECTION|RELATE
|
244
|
+
MANY|regex split|regex replace|regex quote pattern|regex match all|regex match|regex
|
245
|
+
find in array|regex find all in array|regex callback replace|REDUCE SELECTION|redirect|Records
|
246
|
+
in table|Records in set|Records in selection|Record number|RECEIVE PACKET|READ
|
247
|
+
WRITE|READ PICTURE FILE|Read only state|READ ONLY|random between|Random|QUERY
|
248
|
+
WITH ARRAY|QUERY SELECTION BY FORMULA|QUERY SELECTION|query params has|query params|QUERY
|
249
|
+
BY FORMULA|QUERY|PREVIOUS RECORD|Position|Picture size|PICTURE PROPERTIES|parameter
|
250
|
+
mode|param text|ORDER BY FORMULA|ORDER BY|Open document|ONE RECORD SELECT|Num|Not|nil
|
251
|
+
pointer|Nil|NEXT RECORD|next item|new local collection|new global collection|new
|
252
|
+
collection|native to url path|multisort named arrays|multisort arrays|MOVE DOCUMENT|more
|
253
|
+
items|Month of|min of|Milliseconds|method exists|merge collections|md5 sum|max
|
254
|
+
of|Mac to Win|Mac to ISO|mac to html|Lowercase|longint to time|log message|Locked|lock
|
255
|
+
globals|local variables|local time to utc|local datetime to utc|LOAD RECORD|load
|
256
|
+
collection|LIST TO ARRAY|library list|Length|left trim|LAST RECORD|last of|last
|
257
|
+
not of|join paths|join array|ISO to Mac|Is in set|is array|is an iterator|is a
|
258
|
+
collection|INTERSECTION|interpolate string|Int|insert into array|INSERT ELEMENT|include
|
259
|
+
into|include|in error|import|identical strings|hide session field|GOTO SELECTED
|
260
|
+
RECORD|GOTO RECORD|globals has|globals|global|get version|get utc delta|get upload
|
261
|
+
size|get upload remote filename|get upload extension|get upload encoding|get upload
|
262
|
+
content type|get timestamp datetime|get time remaining|get session timeout|get
|
263
|
+
session stats|get session names|get session item|get session array size|get session
|
264
|
+
array|get session|get script timeout|get root|get response headers|get response
|
265
|
+
header|get response cookies|get response cookie path|get response cookie expires|get
|
266
|
+
response cookie domain|get response cookie|get response buffer|get request value|get
|
267
|
+
request infos|get request info|get request cookies|get request cookie|get query
|
268
|
+
params|get query param count|get query param choices|get query param|Get pointer|get
|
269
|
+
platform charset|GET PICTURE FROM LIBRARY|get output encoding|get output charset|get
|
270
|
+
log level|get local|get license info|get library list|get item value|get item
|
271
|
+
type|get item key|get item array|Get indexed string|get global keys|get global
|
272
|
+
item|get global array size|get global array|get global|get form variables|get
|
273
|
+
form variable count|get form variable choices|get form variable|GET FIELD PROPERTIES|get
|
274
|
+
field pointer|get field numbers|get expires date|get expires|get error page|Get
|
275
|
+
document position|get current script timeout|get content type|get content charset|get
|
276
|
+
collection keys|get collection item count|get collection item|get collection array
|
277
|
+
size|get collection array|get collection|get call chain|get cache control|get
|
278
|
+
auto relations|full requested url|form variables has|form variables|FOLDER LIST|FIRST
|
279
|
+
RECORD|first of|first not of|Find index key|Find in array|fill array|filename
|
280
|
+
of|file exists|Field name|Field|False|extension of|execute in 4d|EXECUTE|End selection|end
|
281
|
+
save output|enclose|DOCUMENT TO BLOB|DOCUMENT LIST|DISTINCT VALUES|directory separator|directory
|
282
|
+
of|directory exists|DIFFERENCE|Delete string|delete session item|DELETE SELECTION|delete
|
283
|
+
response header|delete response cookie|DELETE RECORD|delete global|DELETE FOLDER|DELETE
|
284
|
+
ELEMENT|DELETE DOCUMENT|delete collection item|DELAY PROCESS|defined|define|default
|
285
|
+
directory|deep copy collection|deep clear collection|Dec|day of year|Day of|Day
|
286
|
+
number|Date|C_TIME|C_TEXT|C_STRING|C_REAL|C_POINTER|C_PICTURE|C_LONGINT|C_DATE|C_BOOLEAN|C_BLOB|CUT
|
287
|
+
NAMED SELECTION|Current time|current realm|Current process|current platform|current
|
288
|
+
path|Current method name|current line number|current library name|current file|Current
|
289
|
+
date|CREATE SET FROM ARRAY|CREATE SET|CREATE SELECTION FROM ARRAY|CREATE RECORD|CREATE
|
290
|
+
FOLDER|CREATE EMPTY SET|Create document|count uploads|Count tables|count session
|
291
|
+
items|count response headers|count response cookies|count request infos|count
|
292
|
+
request cookies|count query params|Count in array|count globals|count form variables|Count
|
293
|
+
fields|count collection items|copy upload|COPY SET|COPY NAMED SELECTION|COPY DOCUMENT|copy
|
294
|
+
collection|COPY ARRAY|concat|compare strings|collection to blob|collection has|collection|CLOSE
|
295
|
+
DOCUMENT|CLEAR VARIABLE|CLEAR SET|CLEAR SEMAPHORE|clear response buffer|CLEAR
|
296
|
+
NAMED SELECTION|clear collection|clear buffer (deprecated)|clear array|choose|Char|cell|capitalize|CANCEL
|
297
|
+
TRANSACTION|call method|call 4d method|build query string|blowfish encrypt|blowfish
|
298
|
+
decrypt|BLOB to text|blob to session|BLOB TO DOCUMENT|blob to collection|BLOB
|
299
|
+
size|Before selection|base64 encode|base64 decode|AUTOMATIC RELATIONS|auto relate|authenticate|auth
|
300
|
+
user|auth type|auth password|Ascii|ARRAY TEXT|ARRAY STRING|ARRAY REAL|ARRAY POINTER|ARRAY
|
301
|
+
PICTURE|ARRAY LONGINT|ARRAY INTEGER|ARRAY DATE|ARRAY BOOLEAN|append to array|Append
|
302
|
+
document|ALL RECORDS|add to timestamp|ADD TO SET|Add to date|add element|Abs|abandon
|
303
|
+
session|abandon response cookie)\\b"
|
260
304
|
comment: 4D and Active4D commands
|
261
305
|
- name: support.function.active4d
|
262
|
-
match: (?i)
|
306
|
+
match: "(?i)\\b((yearMonthDay|writeDumpStyles|writeBold|write|warnInvalidField|valueList|valueCountNoCase|valueCount|validPrice|validEmailAddress|validateTextFields|unlockAndLoad|truncateText|timedOut|sourceRowCount|sort|setTitle|setTimeout|setSMTPHost|setSMTPAuthorization|setSeparator|setRelateOne|setMailMethod|setDivId|setDefaults|setColumnData|setColumnArray|setAt|sendMail|sendFuseaction|saveFormToSession|rowCount|reverseArray|rest|qualify|previous|prepend|postHandleError|persistent|ordinalOf|nextID|next|newFromSelection|newFromRowSet|newFromFile|newFromData|newFromCachedSelection|newFromArrays|newFromArray|new|move|maxRows|makeURL|makeSafeMailto|makeLinks|makeFuseboxLinks|listToArray|len|last|isLast|isFuseboxRequest|isFirst|isBeforeFirst|isAfterLast|insertAt|hideUniqueField|hideField|handleError|gotoRow|getVariablesIterator|getUniqueID|getTitle|getTimeout|getStarts|getStart|getSMTPHost|getSMTPAuthUser|getSMTPAuthPassword|getSMTPAuthorization|getRow|getPointerReferent|getPictureDescriptor|getPersistentList|getMailMethod|getEnd|getEmptyFields|getDefaults|getData|getColumn|getAt|fuseboxNew|formVariableListToQuery|formatUSPhone|first|findRow|findNoCase|findColumn|find|filterCollection|embedVariables|embedQueryParams|embedFormVariables|embedFormVariableList|embedCollectionItems|embedCollection|dumpPersistent|dumpLib|dumpDefaults|dump
|
307
|
+
session stats|dump session|dump selection|dump RowSet|dump request info|dump request|dump
|
308
|
+
query params|dump locals|dump license info|dump form variables|dump collection|dump
|
309
|
+
array|dump|deleteSelection|deleteAt|currentRow|core|containsNoCase|contains|columnCount|collectionToQuery|collectionItemsToQuery|clearPersistent|chopText|checkSession|checkboxState|changeDelims|camelCaseText|buildSelectValueMenu|buildSelectMenu|buildRecordList|buildOptionsFromSelection|buildOptionsFromRowSet|buildOptionsFromOptionList|buildOptionsFromOptionArray|buildOptionsFromLists|buildOptionsFromArrays|buildArrayValueList|buildArrayList|beforeFirst|articleFor|arrayToList|append|afterLast|addMetaTag|addJS|addJavascript|addDumpStyles|addCSS|add))\\b"
|
263
310
|
comment: library methods
|
264
311
|
- name: support.variable.active4d
|
265
|
-
match: (?i)
|
266
|
-
- captures:
|
267
|
-
|
312
|
+
match: "(?i)\\b(OK|Document|fusebox\\.conf\\.fuseaction)\\b"
|
313
|
+
- captures:
|
314
|
+
'1':
|
268
315
|
name: support.class.active4d
|
269
|
-
|
316
|
+
'2':
|
270
317
|
name: support.function.active4d
|
271
|
-
match: (
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
keyEquivalent: ^~A
|
318
|
+
match: "(?<!\\$)\\b((?:a4d\\.(?:console|debug|lists|utils|web)|Batch|Breadcrumbs|fusebox\\.conf|fusebox\\.head|fusebox|RowSet))\\.([[:alpha:]][[[:alnum:]]_
|
319
|
+
]+[[:alnum:]])"
|
320
|
+
foldingStopMarker: "(?x)\n\t\t(^\\s*(?i:end\\ (if|while|for\\ each|for|case|method|save
|
321
|
+
output)|until)\\b\n\t\t)"
|
322
|
+
keyEquivalent: "^~A"
|