ruby-uv 0.0.6.2 → 0.0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/theme2xhtmlrender +4 -4
- data/lib/uv/version.rb +1 -1
- data/syntax/html_rails.syntax +24 -32
- data/syntax/javascript_rails.syntax +30 -0
- data/syntax/ruby_on_rails.syntax +180 -68
- data/syntax/sql_rails.syntax +15 -14
- metadata +6 -5
data/bin/theme2xhtmlrender
CHANGED
@@ -36,7 +36,7 @@ count_names = {}
|
|
36
36
|
if class_name == ""
|
37
37
|
class_name = "x" * t["name"].size
|
38
38
|
end
|
39
|
-
|
39
|
+
|
40
40
|
if count_names[class_name]
|
41
41
|
tname = class_name
|
42
42
|
class_name = "#{class_name}#{count_names[class_name]}"
|
@@ -44,13 +44,13 @@ count_names = {}
|
|
44
44
|
else
|
45
45
|
count_names[class_name] = 1
|
46
46
|
end
|
47
|
-
|
47
|
+
|
48
48
|
tag = {}
|
49
49
|
tag["selector"] = t["scope"]
|
50
50
|
tag["begin"] = "<span class=\"#{class_name}\">"
|
51
51
|
tag["end"] = "</span>"
|
52
52
|
render["tags"] << tag
|
53
|
-
|
53
|
+
|
54
54
|
if s = t["settings"]
|
55
55
|
style = {}
|
56
56
|
style["color"] = Uv.normalize_color(settings, s["foreground"], true)
|
@@ -73,7 +73,7 @@ count_names = {}
|
|
73
73
|
style["background-color"] = Uv.alpha_blend(s["selection"], s["selection"])
|
74
74
|
style["color"] = Uv.foreground( style["background-color"] )
|
75
75
|
css[".line-numbers"] = style
|
76
|
-
|
76
|
+
|
77
77
|
tag = {}
|
78
78
|
tag["begin"] = "<span class=\"line-numbers\">"
|
79
79
|
tag["end"] = "</span>"
|
data/lib/uv/version.rb
CHANGED
data/syntax/html_rails.syntax
CHANGED
@@ -1,40 +1,32 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
fileTypes:
|
1
|
+
---
|
2
|
+
fileTypes:
|
4
3
|
- rhtml
|
5
|
-
|
6
|
-
|
7
|
-
foldingStartMarker:
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
captures:
|
16
|
-
"0":
|
4
|
+
- erb
|
5
|
+
- html.erb
|
6
|
+
foldingStartMarker: ! "(?x)\n\t\t(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\\b.*?>\n\t\t|<!--(?!.*-->)\n\t\t|\\{\\s*($|\\?>\\s*$|//|/\\*(.*\\*/\\s*$|(?!.*?\\*/)))\n\t\t)"
|
7
|
+
foldingStopMarker: ! "(?x)\n\t\t(</(?i: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)"
|
8
|
+
keyEquivalent: ^~R
|
9
|
+
name: HTML (Rails)
|
10
|
+
patterns:
|
11
|
+
- begin: <%+#
|
12
|
+
captures:
|
13
|
+
'0':
|
17
14
|
name: punctuation.definition.comment.erb
|
18
|
-
|
19
|
-
|
20
|
-
-
|
21
|
-
captures:
|
22
|
-
|
15
|
+
end: ! '%>'
|
16
|
+
name: comment.block.erb
|
17
|
+
- begin: <%+(?!>)[-=]?
|
18
|
+
captures:
|
19
|
+
'0':
|
23
20
|
name: punctuation.section.embedded.ruby
|
24
|
-
begin: <%+(?!>)=?
|
25
21
|
end: -?%>
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
22
|
+
name: source.ruby.rails.embedded.html
|
23
|
+
patterns:
|
24
|
+
- captures:
|
25
|
+
'1':
|
30
26
|
name: punctuation.definition.comment.ruby
|
31
27
|
match: (#).*?(?=-?%>)
|
28
|
+
name: comment.line.number-sign.ruby
|
32
29
|
- include: source.ruby.rails
|
33
30
|
- include: text.html.basic
|
34
|
-
|
35
|
-
|
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
|
31
|
+
scopeName: text.html.ruby
|
32
|
+
uuid: 45D7E1FC-7D0B-4105-A1A2-3D10BB555A5C
|
@@ -0,0 +1,30 @@
|
|
1
|
+
---
|
2
|
+
fileTypes:
|
3
|
+
- js.erb
|
4
|
+
foldingStartMarker: /\*\*|\{\s*$
|
5
|
+
foldingStopMarker: \*\*/|^\s*\}
|
6
|
+
keyEquivalent: ^~J
|
7
|
+
name: JavaScript (Rails)
|
8
|
+
patterns:
|
9
|
+
- begin: <%+#
|
10
|
+
captures:
|
11
|
+
'0':
|
12
|
+
name: punctuation.definition.comment.erb
|
13
|
+
end: ! '%>'
|
14
|
+
name: comment.block.erb
|
15
|
+
- begin: <%+(?!>)[-=]?
|
16
|
+
captures:
|
17
|
+
'0':
|
18
|
+
name: punctuation.section.embedded.ruby
|
19
|
+
end: -?%>
|
20
|
+
name: source.ruby.rails.erb
|
21
|
+
patterns:
|
22
|
+
- captures:
|
23
|
+
'1':
|
24
|
+
name: punctuation.definition.comment.ruby
|
25
|
+
match: (#).*?(?=-?%>)
|
26
|
+
name: comment.line.number-sign.ruby
|
27
|
+
- include: source.ruby.rails
|
28
|
+
- include: source.js
|
29
|
+
scopeName: source.js.rails
|
30
|
+
uuid: 4A3E6DA7-67A3-45B1-9EE0-ECFF9C7FA6C0
|
data/syntax/ruby_on_rails.syntax
CHANGED
@@ -1,88 +1,200 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
1
|
+
---
|
2
|
+
fileTypes:
|
3
|
+
- rb
|
4
4
|
- rxml
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
\t
|
9
|
-
\t
|
10
|
-
\t
|
11
|
-
\
|
12
|
-
\t
|
13
|
-
\t
|
14
|
-
\
|
15
|
-
\
|
16
|
-
\
|
17
|
-
|
18
|
-
\
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
\t )*\n\
|
27
|
-
\t ( \\{ (?! [^}]*+ \\} )\n\
|
28
|
-
\t | \\[ (?! [^\\]]*+ \\] )\n\
|
29
|
-
\t )\n\
|
30
|
-
\t ).*$\n\
|
31
|
-
\t| [#] .*? \\(fold\\) \\s*+ $ # Sune\xE2\x80\x99s special marker\n\
|
32
|
-
\t"
|
33
|
-
patterns:
|
34
|
-
- name: meta.rails.functional_test
|
35
|
-
begin: (^\s*)(?=class\s+(([.a-zA-Z0-9_:]+ControllerTest(\s*<\s*[.a-zA-Z0-9_:]+)?)))
|
5
|
+
- builder
|
6
|
+
foldingStartMarker: ! "(?x)^\n\t (\\s*+\n\t (module|class|def\n\t |unless|if\n\t
|
7
|
+
\ |case\n\t |begin\n\t |for|while|until\n\t |( \"(\\\\.|[^\"])*+\"
|
8
|
+
\ # eat a double quoted string\n\t | '(\\\\.|[^'])*+' # eat
|
9
|
+
a single quoted string\n\t | [^#\"'] # eat all but comments
|
10
|
+
and strings\n\t )*\n\t ( \\s (do|begin|case)\n\t
|
11
|
+
\ | [-+=&|*/~%^<>~] \\s*+ (if|unless)\n\t )\n\t )\\b\n\t (?!
|
12
|
+
[^;]*+ ; .*? \\bend\\b )\n\t |( \"(\\\\.|[^\"])*+\" # eat a double
|
13
|
+
quoted string\n\t | '(\\\\.|[^'])*+' # eat a single quoted string\n\t
|
14
|
+
\ | [^#\"'] # eat all but comments and strings\n\t )*\n\t
|
15
|
+
\ ( \\{ (?! [^}]*+ \\} )\n\t | \\[ (?! [^\\]]*+ \\] )\n\t )\n\t ).*$\n\t|
|
16
|
+
\ [#] .*? \\(fold\\) \\s*+ $ # Sune’s special marker\n\t"
|
17
|
+
foldingStopMarker: ! "(?x)\n\t\t( (^|;) \\s*+ end \\s*+ ([#].*)? $\n\t\t| ^
|
18
|
+
\ \\s*+ [}\\]] \\s*+ ([#].*)? $\n\t\t| [#] .*? \\(end\\) \\s*+ $ # Sune’s
|
19
|
+
special marker\n\t\t)"
|
20
|
+
keyEquivalent: ^~R
|
21
|
+
name: Ruby on Rails
|
22
|
+
patterns:
|
23
|
+
- begin: (^\s*)(?=class\s+(([.a-zA-Z0-9_:]+ControllerTest(\s*<\s*[.a-zA-Z0-9_:]+)?)))
|
24
|
+
comment: Uses lookahead to match classes with the ControllerTest suffix; includes
|
25
|
+
'source.ruby' to avoid infinite recursion
|
36
26
|
end: ^\1(?=end)\b
|
37
|
-
|
27
|
+
name: meta.rails.functional_test
|
28
|
+
patterns:
|
29
|
+
- include: ! '#shoulda'
|
38
30
|
- include: source.ruby
|
39
31
|
- include: $self
|
40
|
-
|
41
|
-
|
42
|
-
|
32
|
+
- begin: (^\s*)(?=class\s+(([.a-zA-Z0-9_:]+Controller\b(\s*<\s*[.a-zA-Z0-9_:]+)?)|(<<\s*[.a-zA-Z0-9_:]+)))(?!.+\bend\b)
|
33
|
+
comment: Uses lookahead to match classes with the Controller suffix; includes 'source.ruby'
|
34
|
+
to avoid infinite recursion
|
43
35
|
end: ^\1(?=end)\b
|
44
|
-
|
36
|
+
name: meta.rails.controller
|
37
|
+
patterns:
|
45
38
|
- include: source.ruby
|
46
39
|
- include: $self
|
47
|
-
|
48
|
-
|
49
|
-
|
40
|
+
- begin: (^\s*)(?=module\s+((([A-Z]\w*::)*)[A-Z]\w*)Helper)
|
41
|
+
comment: Uses lookahead to match modules with the Helper suffix; includes 'source.ruby'
|
42
|
+
to avoid infinite recursion
|
50
43
|
end: ^\1(?=end)\b
|
51
|
-
|
44
|
+
name: meta.rails.helper
|
45
|
+
patterns:
|
52
46
|
- include: source.ruby
|
53
47
|
- include: $self
|
54
|
-
|
55
|
-
|
56
|
-
|
48
|
+
- begin: (^\s*)(?=class\s+(([.a-zA-Z0-9_:]+(\s*<\s*ActionMailer::Base))))
|
49
|
+
comment: Uses lookahead to match classes that inherit from ActionMailer::Base; includes
|
50
|
+
'source.ruby' to avoid infinite recursion
|
57
51
|
end: ^\1(?=end)\b
|
58
|
-
|
52
|
+
name: meta.rails.mailer
|
53
|
+
patterns:
|
59
54
|
- include: source.ruby
|
60
55
|
- include: $self
|
61
|
-
|
62
|
-
|
63
|
-
|
56
|
+
- begin: (^\s*)(?=class\s+.+ActiveRecord::Base)
|
57
|
+
comment: Uses lookahead to match classes that (may) inherit from ActiveRecord::Base;
|
58
|
+
includes 'source.ruby' to avoid infinite recursion
|
64
59
|
end: ^\1(?=end)\b
|
65
|
-
|
60
|
+
name: meta.rails.model
|
61
|
+
patterns:
|
66
62
|
- include: source.ruby
|
67
63
|
- include: $self
|
68
|
-
|
69
|
-
|
70
|
-
|
64
|
+
- begin: (^\s*)(?=class\s+.+ActiveRecord::Migration)
|
65
|
+
comment: Uses lookahead to match classes that (may) inherit from ActiveRecord::Migration;
|
66
|
+
includes 'source.ruby' to avoid infinite recursion
|
67
|
+
end: ^\1(?=end)\b
|
68
|
+
name: meta.rails.migration
|
69
|
+
patterns:
|
70
|
+
- begin: (^\s*)(?=change_table)\b
|
71
|
+
comment: Uses lookahead to match methods change_table; includes 'source.ruby'
|
72
|
+
to avoid infinite recursion
|
73
|
+
contentName: meta.rails.migration.change_table
|
74
|
+
end: ^\1(?=end)\b
|
75
|
+
patterns:
|
76
|
+
- include: source.ruby
|
77
|
+
- include: $self
|
78
|
+
- begin: (^\s*)(?=create_table)\b
|
79
|
+
comment: Uses lookahead to match methods create_table; includes 'source.ruby'
|
80
|
+
to avoid infinite recursion
|
81
|
+
contentName: meta.rails.migration.create_table
|
82
|
+
end: ^\1(?=end)\b
|
83
|
+
patterns:
|
84
|
+
- include: source.ruby
|
85
|
+
- include: $self
|
86
|
+
- include: source.ruby
|
87
|
+
- include: $self
|
88
|
+
- begin: (^\s*)(?=ActiveRecord::Schema.define)
|
89
|
+
end: ^\1(?=end)\b
|
90
|
+
name: meta.rails.schema
|
91
|
+
patterns:
|
92
|
+
- begin: (^\s*)(?=create_table)\b
|
93
|
+
comment: Uses lookahead to match methods create_table; includes 'source.ruby'
|
94
|
+
to avoid infinite recursion
|
95
|
+
contentName: meta.rails.migration.create_table
|
96
|
+
end: ^\1(?=end)\b
|
97
|
+
patterns:
|
98
|
+
- include: source.ruby
|
99
|
+
- include: $self
|
100
|
+
- begin: (^\s*)(?=class\s+(?![.a-zA-Z0-9_:]+ControllerTest)(([.a-zA-Z0-9_:]+Test(\s*<\s*[.a-zA-Z0-9_:]+)?)|(<<\s*[.a-zA-Z0-9_:]+)))
|
101
|
+
comment: Uses lookahead to match classes with the Test suffix; includes 'source.ruby'
|
102
|
+
to avoid infinite recursion
|
71
103
|
end: ^\1(?=end)\b
|
72
|
-
|
104
|
+
name: meta.rails.unit_test
|
105
|
+
patterns:
|
106
|
+
- include: ! '#shoulda'
|
107
|
+
- include: source.ruby
|
108
|
+
- include: $self
|
109
|
+
- begin: (^\s*)ActionController::Routing::Routes
|
110
|
+
comment: Uses ActionController::Routing::Routes to determine it is a routes file;
|
111
|
+
includes 'source.ruby' to avoid infinite recursion
|
112
|
+
end: ^\1(?=end)\b
|
113
|
+
name: meta.rails.routes
|
114
|
+
patterns:
|
115
|
+
- include: source.ruby
|
116
|
+
- include: $self
|
117
|
+
- match: \b(before_filter|skip_before_filter|skip_after_filter|after_filter|around_filter|filter|filter_parameter_logging|layout|require_dependency|render|render_action|render_text|render_file|render_template|render_nothing|render_component|render_without_layout|rescue_from|url_for|redirect_to|redirect_to_path|redirect_to_url|respond_to|helper|helper_method|model|service|observer|serialize|scaffold|verify|hide_action)\b
|
118
|
+
name: support.function.actionpack.rails
|
119
|
+
- match: \b(check_box|content_for|error_messages_for|form_for|fields_for|file_field|hidden_field|image_submit_tag|label|link_to|password_field|radio_button|submit|text_field|text_area)\b
|
120
|
+
name: support.function.viewhelpers.rails
|
121
|
+
- match: \b(named_scope|after_create|after_destroy|after_save|after_update|after_validation|after_validation_on_create|after_validation_on_update|before_create|before_destroy|before_save|before_update|before_validation|before_validation_on_create|before_validation_on_update|composed_of|belongs_to|has_one|has_many|has_and_belongs_to_many|validate|validate_on_create|validates_numericality_of|validate_on_update|validates_acceptance_of|validates_associated|validates_confirmation_of|validates_each|validates_format_of|validates_inclusion_of|validates_exclusion_of|validates_length_of|validates_presence_of|validates_size_of|validates_uniqueness_of|attr_protected|attr_accessible|attr_readonly|accepts_nested_attributes_for|default_scope)\b
|
122
|
+
name: support.function.activerecord.rails
|
123
|
+
- match: \b(alias_method_chain|alias_attribute|delegate|cattr_accessor|mattr_accessor|memoize)\b
|
124
|
+
name: support.function.activesupport.rails
|
125
|
+
- match: \b(returning)\b
|
126
|
+
name: keyword.function.activesupport.rails
|
127
|
+
- begin: (Factory).define
|
128
|
+
beginCaptures:
|
129
|
+
'1':
|
130
|
+
name: support.class.ruby
|
131
|
+
end: \b(do)\b
|
132
|
+
endCaptures:
|
133
|
+
'1':
|
134
|
+
name: keyword.control.start-block.ruby.shoulda
|
135
|
+
name: meta.rails.factory.header
|
136
|
+
patterns:
|
73
137
|
- include: source.ruby
|
74
138
|
- include: $self
|
75
|
-
comment: Uses lookahead to match classes with the Test suffix; includes 'source.ruby' to avoid infinite recursion
|
76
|
-
- name: support.function.actionpack.rails
|
77
|
-
match: \b(before_filter|skip_before_filter|skip_after_filter|after_filter|around_filter|filter|filter_parameter_logging|layout|require_dependency|render|render_action|render_text|render_file|render_template|render_nothing|render_component|render_without_layout|url_for|redirect_to|redirect_to_path|redirect_to_url|helper|helper_method|model|service|observer|serialize|scaffold|verify|hide_action)\b
|
78
|
-
- name: support.function.activerecord.rails
|
79
|
-
match: \b(acts_as_list|acts_as_tree|after_create|after_destroy|after_save|after_update|after_validation|after_validation_on_create|after_validation_on_update|before_create|before_destroy|before_save|before_update|before_validation|before_validation_on_create|before_validation_on_update|composed_of|belongs_to|has_one|has_many|has_and_belongs_to_many|helper|helper_method|validate|validate_on_create|validates_numericality_of|validate_on_update|validates_acceptance_of|validates_associated|validates_confirmation_of|validates_each|validates_format_of|validates_inclusion_of|validates_length_of|validates_presence_of|validates_size_of|validates_uniqueness_of|attr_protected|attr_accessible)\b
|
80
|
-
- name: support.function.activesupport.rails
|
81
|
-
match: \b(cattr_accessor|mattr_accessor)\b
|
82
139
|
- include: source.ruby
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
140
|
+
repository:
|
141
|
+
shoulda:
|
142
|
+
patterns:
|
143
|
+
- begin: (^\s*)(context)\s+(("|')(.*)\4)\s+(do)\b
|
144
|
+
beginCaptures:
|
145
|
+
'2':
|
146
|
+
name: keyword.other.context.ruby.rails.shoulda
|
147
|
+
'3':
|
148
|
+
name: entity.name.function.ruby.rails.shoulda
|
149
|
+
'5':
|
150
|
+
name: meta.context.ruby.rails.shoulda
|
151
|
+
'6':
|
152
|
+
name: keyword.control.start-block.ruby.shoulda
|
153
|
+
end: ^\1(?=end)\b
|
154
|
+
name: source.ruby.rails.shoulda
|
155
|
+
patterns:
|
156
|
+
- match: \b(should_validate_presence_of|should_validate_uniqueness_of|should_not_allow_mass_assignment_of|should_not_allow_values_for|should_allow_values_for|should_ensure_length_in_range|should_ensure_length_at_least|should_ensure_value_in_range|should_validate_numericality_of|should_have_many|should_have_and_belong_to_many|should_have_one|should_belong_to|should_be_restful|should_set_the_flash_to|should_not_set_the_flash|should_assign_to|should_not_assign_to|should_respond_with|should_render_template|should_redirect_to|should_render_a_form|setup|teardown|fixtures|load_all_fixtures|should_have_db_column|should_have_db_columns|should_have_index|should_have_indices|should_validate_acceptance_of|shuold_set_the_flash_to|should_have_readonly_attributes|should_change|should_not_change|should_have_named_scope|should_ensure_length_is|should_filter_params|should_respond_with_content_type|should_route|should_return_from_session)\b
|
157
|
+
name: support.shoulda.macro
|
158
|
+
- begin: ^\s*(should|should_eventually)\b
|
159
|
+
comment: beginCaptures = { 1 = { name = 'support.function.should.ruby.rails.shoulda';
|
160
|
+
}; };
|
161
|
+
end: (\n)|\b(do)\b\s*
|
162
|
+
endCaptures:
|
163
|
+
'1':
|
164
|
+
name: keyword.control.start-block.ruby.shoulda
|
165
|
+
name: meta.should.ruby.rails.shoulda
|
166
|
+
patterns:
|
167
|
+
- include: source.ruby
|
168
|
+
- begin: ^\s*(use_(should|setup|context))\b
|
169
|
+
comment: beginCaptures = { 1 = { name = 'support.function.should.ruby.rails.shoulda.shared_should';
|
170
|
+
}; };
|
171
|
+
end: (\n)|\b(do)\b\s*
|
172
|
+
endCaptures:
|
173
|
+
'2':
|
174
|
+
name: keyword.control.start-block.ruby.shoulda
|
175
|
+
name: meta.should.ruby.rails.shoulda.shared_should
|
176
|
+
patterns:
|
177
|
+
- include: source.ruby
|
178
|
+
- begin: ^\s*(setup)\b
|
179
|
+
comment: beginCaptures = { 1 = { name = 'support.function.setup.ruby.rails.shoulda';
|
180
|
+
}; };
|
181
|
+
end: (\n)|\b(do)\b\s*
|
182
|
+
endCaptures:
|
183
|
+
'1':
|
184
|
+
name: keyword.control.start-block.ruby.shoulda
|
185
|
+
patterns:
|
186
|
+
- include: source.ruby
|
187
|
+
- begin: ^\s*(shared_should|shared_context_should|shared_should_be|shared_context_for|share_should|share_context|share_setup)\b
|
188
|
+
comment: beginCaptures = { 1 = { name = 'support.function.should.ruby.rails.shoulda';
|
189
|
+
}; };
|
190
|
+
end: (\n)|\b(do)\b\s*
|
191
|
+
endCaptures:
|
192
|
+
'1':
|
193
|
+
name: keyword.control.start-block.ruby.shoulda
|
194
|
+
name: support.function.ruby.rails.shoulda
|
195
|
+
patterns:
|
196
|
+
- include: source.ruby
|
197
|
+
- include: ! '#shoulda'
|
198
|
+
- include: source.ruby
|
199
|
+
scopeName: source.ruby.rails
|
200
|
+
uuid: 54D6E91E-8F31-11D9-90C5-0011242E4184
|
data/syntax/sql_rails.syntax
CHANGED
@@ -1,18 +1,19 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
fileTypes:
|
1
|
+
---
|
2
|
+
fileTypes:
|
4
3
|
- erbsql
|
5
|
-
|
6
|
-
uuid: D54FBDED-5481-4CC7-B75F-66465A499882
|
4
|
+
- sql.erb
|
7
5
|
foldingStartMarker: \s*\(\s*$
|
8
|
-
patterns:
|
9
|
-
- name: source.ruby.rails.embedded.sql
|
10
|
-
begin: <%+(?!>)=?
|
11
|
-
end: "%>"
|
12
|
-
patterns:
|
13
|
-
- name: comment.line.number-sign.ruby
|
14
|
-
match: "#.*?(?=%>)"
|
15
|
-
- include: source.ruby.rails
|
16
|
-
- include: source.sql
|
17
6
|
foldingStopMarker: ^\s*\)
|
18
7
|
keyEquivalent: ^~R
|
8
|
+
name: SQL (Rails)
|
9
|
+
patterns:
|
10
|
+
- begin: <%+(?!>)=?
|
11
|
+
end: ! '%>'
|
12
|
+
name: source.ruby.rails.embedded.sql
|
13
|
+
patterns:
|
14
|
+
- match: ! '#.*?(?=%>)'
|
15
|
+
name: comment.line.number-sign.ruby
|
16
|
+
- include: source.ruby.rails
|
17
|
+
- include: source.sql
|
18
|
+
scopeName: source.sql.ruby
|
19
|
+
uuid: D54FBDED-5481-4CC7-B75F-66465A499882
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-uv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.6.
|
4
|
+
version: 0.0.6.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ date: 2011-09-20 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: spox-textpow
|
17
|
-
requirement: &
|
17
|
+
requirement: &70158857377040 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70158857377040
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: spox-plist
|
28
|
-
requirement: &
|
28
|
+
requirement: &70158857376100 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70158857376100
|
37
37
|
description: Ruby syntax highlighting
|
38
38
|
email:
|
39
39
|
- spox@modspox.com
|
@@ -164,6 +164,7 @@ files:
|
|
164
164
|
- syntax/javascript.syntax
|
165
165
|
- syntax/javascript_+_prototype.syntax
|
166
166
|
- syntax/javascript_+_prototype_bracketed.syntax
|
167
|
+
- syntax/javascript_rails.syntax
|
167
168
|
- syntax/jquery_javascript.syntax
|
168
169
|
- syntax/json.syntax
|
169
170
|
- syntax/languagedefinition.syntax
|