ruby-uv 0.0.6 → 0.0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/uv/version.rb +1 -1
- data/syntax/haml.syntax +133 -68
- data/syntax/ruby_haml.syntax +88 -0
- metadata +6 -5
data/lib/uv/version.rb
CHANGED
data/syntax/haml.syntax
CHANGED
@@ -1,88 +1,153 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
fileTypes:
|
1
|
+
---
|
2
|
+
fileTypes:
|
4
3
|
- haml
|
5
|
-
- sass
|
6
|
-
scopeName: text.haml
|
7
|
-
repository:
|
8
|
-
continuation:
|
9
|
-
captures:
|
10
|
-
"1":
|
11
|
-
name: punctuation.separator.continuation.haml
|
12
|
-
match: (\|)\s*\n
|
13
|
-
rubyline:
|
14
|
-
name: meta.line.ruby.haml
|
15
|
-
endCaptures:
|
16
|
-
"1":
|
17
|
-
name: source.ruby.embedded.html
|
18
|
-
"2":
|
19
|
-
name: keyword.control.ruby.start-block
|
20
|
-
begin: =|-|~
|
21
|
-
contentName: source.ruby.embedded.haml
|
22
|
-
end: ((do|\{)( \|[^|]+\|)?)$|$|^(?!.*\|\s*$)
|
23
|
-
patterns:
|
24
|
-
- name: comment.line.number-sign.ruby
|
25
|
-
match: "#.*$"
|
26
|
-
comment: Hack to let ruby comments work in this context properly
|
27
|
-
- include: source.ruby.rails
|
28
|
-
- include: "#continuation"
|
29
|
-
uuid: 3D727049-DD05-45DF-92A5-D50EA36FD035
|
30
4
|
foldingStartMarker: ^\s*([-%#\:\.\w\=].*)\s$
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
5
|
+
foldingStopMarker: ^\s*$
|
6
|
+
keyEquivalent: ^~H
|
7
|
+
name: Ruby Haml
|
8
|
+
patterns:
|
9
|
+
- captures:
|
10
|
+
'1':
|
35
11
|
name: punctuation.definition.prolog.haml
|
36
12
|
match: ^(!!!)($|\s.*)
|
37
|
-
|
38
|
-
|
39
|
-
|
13
|
+
name: meta.prolog.haml
|
14
|
+
- captures:
|
15
|
+
'1':
|
40
16
|
name: punctuation.section.comment.haml
|
41
17
|
match: ^ *(/)\s*\S.*$\n?
|
42
|
-
|
43
|
-
|
44
|
-
beginCaptures:
|
45
|
-
|
18
|
+
name: comment.line.slash.haml
|
19
|
+
- begin: ^( *)(/)\s*$
|
20
|
+
beginCaptures:
|
21
|
+
'2':
|
46
22
|
name: punctuation.section.comment.haml
|
47
23
|
end: ^(?!\1 )
|
48
|
-
|
24
|
+
name: comment.block.haml
|
25
|
+
patterns:
|
49
26
|
- include: text.haml
|
50
|
-
- captures:
|
51
|
-
|
27
|
+
- captures:
|
28
|
+
'0':
|
29
|
+
name: punctuation.section.embedded.ruby
|
30
|
+
'1':
|
31
|
+
name: source.ruby.embedded.source.empty
|
32
|
+
match: ! '#\{\s*(\})'
|
33
|
+
name: source.ruby.rails.embedded.source
|
34
|
+
- begin: ! '#\{'
|
35
|
+
captures:
|
36
|
+
'0':
|
37
|
+
name: punctuation.section.embedded.ruby
|
38
|
+
end: (?<!\\)\}
|
39
|
+
name: source.ruby.rails.embedded.source
|
40
|
+
patterns:
|
41
|
+
- include: ! '#nest_curly_and_self'
|
42
|
+
- include: source.ruby.rails
|
43
|
+
- begin: ^\s*(?:((%)([\w:]+))|(?=\.|#[^\{]))
|
44
|
+
captures:
|
45
|
+
'1':
|
52
46
|
name: meta.tag.haml
|
53
|
-
|
47
|
+
'2':
|
54
48
|
name: punctuation.definition.tag.haml
|
55
|
-
|
49
|
+
'3':
|
56
50
|
name: entity.name.tag.haml
|
57
|
-
begin: ^\s*(?:((%)([\w:]+))|(?=\.|#))
|
58
51
|
end: $|(?!\.|#|\{|\[|=|-|~|/)
|
59
|
-
patterns:
|
60
|
-
-
|
61
|
-
|
62
|
-
-
|
63
|
-
|
64
|
-
-
|
65
|
-
begin: \{(?=.*\}|.*\|\s*$)
|
52
|
+
patterns:
|
53
|
+
- match: \.[\w-]+
|
54
|
+
name: entity.name.tag.class.haml
|
55
|
+
- match: ! '#[\w-]+'
|
56
|
+
name: entity.name.tag.id.haml
|
57
|
+
- begin: \{(?=.*\}|.*\|\s*$)
|
66
58
|
end: \}|$|^(?!.*\|\s*$)
|
67
|
-
|
59
|
+
name: meta.section.attributes.haml
|
60
|
+
patterns:
|
68
61
|
- include: source.ruby.rails
|
69
|
-
- include:
|
70
|
-
-
|
71
|
-
begin: \[(?=.*\]|.*\|\s*$)
|
62
|
+
- include: ! '#continuation'
|
63
|
+
- begin: \[(?=.*\]|.*\|\s*$)
|
72
64
|
end: \]|$|^(?!.*\|\s*$)
|
73
|
-
|
65
|
+
name: meta.section.object.haml
|
66
|
+
patterns:
|
74
67
|
- include: source.ruby.rails
|
75
|
-
- include:
|
76
|
-
- include:
|
77
|
-
-
|
78
|
-
|
79
|
-
- captures:
|
80
|
-
|
68
|
+
- include: ! '#continuation'
|
69
|
+
- include: ! '#rubyline'
|
70
|
+
- match: /
|
71
|
+
name: punctuation.terminator.tag.haml
|
72
|
+
- captures:
|
73
|
+
'1':
|
81
74
|
name: meta.escape.haml
|
82
75
|
match: ^\s*(\\.)
|
83
|
-
- begin: ^\s*(
|
76
|
+
- begin: ^\s*(?==|-|~|!=)
|
84
77
|
end: $
|
85
|
-
patterns:
|
86
|
-
- include:
|
87
|
-
|
88
|
-
|
78
|
+
patterns:
|
79
|
+
- include: ! '#rubyline'
|
80
|
+
- match: <(?!(?i:a|abbr|access|acronym|action|address|applet|area|article|aside|audio|b|base|basefont|big|blockcode|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|command|datalist|dd|del|delete|details|di|dir|dispatch|div|dl|dt|em|embed|fieldset|figure|font|footer|form|frame|frameset|group|h|h1|h2|h3|h4|h5|h6|handler|head|header|hgroup|hr|html|i|iframe|img|input|ins|insert|l|label|legend|li|link|listing|load|map|mark|menu|message|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|plaintext|pre|progress|samp|script|secret|section|select|separator|small|source|span|strike|strong|style|sub|submit|summary|switch|table|tbody|td|textarea|tfoot|th|thead|title|tr|trigger|tt|u|ul|upload|video|/|%))
|
81
|
+
name: keyword.other.angle-bracket.haml
|
82
|
+
- include: text.html.basic
|
83
|
+
- match: ! '>'
|
84
|
+
name: keyword.other.angle-bracket.haml
|
85
|
+
- include: ! '#ruby'
|
86
|
+
- include: ! '#erb'
|
87
|
+
- include: ! '#javascript'
|
88
|
+
- include: ! '#sass'
|
89
|
+
- include: ! '#css'
|
90
|
+
repository:
|
91
|
+
continuation:
|
92
|
+
captures:
|
93
|
+
'1':
|
94
|
+
name: punctuation.separator.continuation.haml
|
95
|
+
match: (\|)\s*\n
|
96
|
+
css:
|
97
|
+
begin: ^(\s*):css
|
98
|
+
end: ^(?!\1\s)
|
99
|
+
name: source.css
|
100
|
+
patterns:
|
101
|
+
- include: source.css
|
102
|
+
erb:
|
103
|
+
begin: ^(\s*):erb
|
104
|
+
end: ^(?!\1\s)
|
105
|
+
name: text.html.ruby.embedded.haml
|
106
|
+
patterns:
|
107
|
+
- include: text.html.ruby
|
108
|
+
javascript:
|
109
|
+
begin: ^(\s*):javascript
|
110
|
+
end: ^(?!\1\s)
|
111
|
+
name: source.js
|
112
|
+
patterns:
|
113
|
+
- include: source.js
|
114
|
+
nest_curly_and_self:
|
115
|
+
patterns:
|
116
|
+
- begin: \{
|
117
|
+
captures:
|
118
|
+
'0':
|
119
|
+
name: punctuation.section.scope.ruby
|
120
|
+
end: \}
|
121
|
+
patterns:
|
122
|
+
- include: ! '#nest_curly_and_self'
|
123
|
+
- include: source.ruby
|
124
|
+
ruby:
|
125
|
+
begin: ^(\s*):ruby
|
126
|
+
end: ^(?!\1\s)
|
127
|
+
name: source.ruby.rails.embedded.haml
|
128
|
+
patterns:
|
129
|
+
- include: source.ruby.rails
|
130
|
+
rubyline:
|
131
|
+
begin: =|-|~
|
132
|
+
contentName: source.ruby.rails.embedded.haml
|
133
|
+
end: ((do|\{)( \|[^|]+\|)?)$|$|^(?!.*\|\s*$)
|
134
|
+
endCaptures:
|
135
|
+
'1':
|
136
|
+
name: source.ruby.rails.embedded.html
|
137
|
+
'2':
|
138
|
+
name: keyword.control.ruby.start-block
|
139
|
+
name: meta.line.ruby.haml
|
140
|
+
patterns:
|
141
|
+
- comment: Hack to let ruby comments work in this context properly
|
142
|
+
match: ! '#.*$'
|
143
|
+
name: comment.line.number-sign.ruby
|
144
|
+
- include: source.ruby.rails
|
145
|
+
- include: ! '#continuation'
|
146
|
+
sass:
|
147
|
+
begin: ^(\s*):sass
|
148
|
+
end: ^(?!\1 )
|
149
|
+
name: source.sass
|
150
|
+
patterns:
|
151
|
+
- include: source.sass
|
152
|
+
scopeName: text.haml
|
153
|
+
uuid: 3D727049-DD05-45DF-92A5-D50EA36FD035
|
@@ -0,0 +1,88 @@
|
|
1
|
+
---
|
2
|
+
name: Haml
|
3
|
+
fileTypes:
|
4
|
+
- haml
|
5
|
+
- sass
|
6
|
+
scopeName: text.haml
|
7
|
+
repository:
|
8
|
+
continuation:
|
9
|
+
captures:
|
10
|
+
"1":
|
11
|
+
name: punctuation.separator.continuation.haml
|
12
|
+
match: (\|)\s*\n
|
13
|
+
rubyline:
|
14
|
+
name: meta.line.ruby.haml
|
15
|
+
endCaptures:
|
16
|
+
"1":
|
17
|
+
name: source.ruby.embedded.html
|
18
|
+
"2":
|
19
|
+
name: keyword.control.ruby.start-block
|
20
|
+
begin: =|-|~
|
21
|
+
contentName: source.ruby.embedded.haml
|
22
|
+
end: ((do|\{)( \|[^|]+\|)?)$|$|^(?!.*\|\s*$)
|
23
|
+
patterns:
|
24
|
+
- name: comment.line.number-sign.ruby
|
25
|
+
match: "#.*$"
|
26
|
+
comment: Hack to let ruby comments work in this context properly
|
27
|
+
- include: source.ruby.rails
|
28
|
+
- include: "#continuation"
|
29
|
+
uuid: 3D727049-DD05-45DF-92A5-D50EA36FD035
|
30
|
+
foldingStartMarker: ^\s*([-%#\:\.\w\=].*)\s$
|
31
|
+
patterns:
|
32
|
+
- name: meta.prolog.haml
|
33
|
+
captures:
|
34
|
+
"1":
|
35
|
+
name: punctuation.definition.prolog.haml
|
36
|
+
match: ^(!!!)($|\s.*)
|
37
|
+
- name: comment.line.slash.haml
|
38
|
+
captures:
|
39
|
+
"1":
|
40
|
+
name: punctuation.section.comment.haml
|
41
|
+
match: ^ *(/)\s*\S.*$\n?
|
42
|
+
- name: comment.block.haml
|
43
|
+
begin: ^( *)(/)\s*$
|
44
|
+
beginCaptures:
|
45
|
+
"2":
|
46
|
+
name: punctuation.section.comment.haml
|
47
|
+
end: ^(?!\1 )
|
48
|
+
patterns:
|
49
|
+
- include: text.haml
|
50
|
+
- captures:
|
51
|
+
"1":
|
52
|
+
name: meta.tag.haml
|
53
|
+
"2":
|
54
|
+
name: punctuation.definition.tag.haml
|
55
|
+
"3":
|
56
|
+
name: entity.name.tag.haml
|
57
|
+
begin: ^\s*(?:((%)([\w:]+))|(?=\.|#))
|
58
|
+
end: $|(?!\.|#|\{|\[|=|-|~|/)
|
59
|
+
patterns:
|
60
|
+
- name: entity.name.tag.class.haml
|
61
|
+
match: \.[\w-]+
|
62
|
+
- name: entity.name.tag.id.haml
|
63
|
+
match: "#[\\w-]+"
|
64
|
+
- name: meta.section.attributes.haml
|
65
|
+
begin: \{(?=.*\}|.*\|\s*$)
|
66
|
+
end: \}|$|^(?!.*\|\s*$)
|
67
|
+
patterns:
|
68
|
+
- include: source.ruby.rails
|
69
|
+
- include: "#continuation"
|
70
|
+
- name: meta.section.object.haml
|
71
|
+
begin: \[(?=.*\]|.*\|\s*$)
|
72
|
+
end: \]|$|^(?!.*\|\s*$)
|
73
|
+
patterns:
|
74
|
+
- include: source.ruby.rails
|
75
|
+
- include: "#continuation"
|
76
|
+
- include: "#rubyline"
|
77
|
+
- name: punctuation.terminator.tag.haml
|
78
|
+
match: /
|
79
|
+
- captures:
|
80
|
+
"1":
|
81
|
+
name: meta.escape.haml
|
82
|
+
match: ^\s*(\\.)
|
83
|
+
- begin: ^\s*(?==|-|~)
|
84
|
+
end: $
|
85
|
+
patterns:
|
86
|
+
- include: "#rubyline"
|
87
|
+
foldingStopMarker: ^\s*$
|
88
|
+
keyEquivalent: ^~H
|
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.1
|
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: &70355889261700 !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: *70355889261700
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: spox-plist
|
28
|
-
requirement: &
|
28
|
+
requirement: &70355889260760 !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: *70355889260760
|
37
37
|
description: Ruby syntax highlighting
|
38
38
|
email:
|
39
39
|
- spox@modspox.com
|
@@ -220,6 +220,7 @@ files:
|
|
220
220
|
- syntax/rez.syntax
|
221
221
|
- syntax/ruby.syntax
|
222
222
|
- syntax/ruby_experimental.syntax
|
223
|
+
- syntax/ruby_haml.syntax
|
223
224
|
- syntax/ruby_on_rails.syntax
|
224
225
|
- syntax/s5.syntax
|
225
226
|
- syntax/scheme.syntax
|