File tree 2 files changed +21
-6
lines changed
2 files changed +21
-6
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <!DOCTYPE plist PUBLIC "-//Apple Computer //DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
3
<plist version =" 1.0" >
4
4
<dict >
5
5
<key >name </key >
11
11
<key >showInSymbolList </key >
12
12
<integer >1 </integer >
13
13
<key >symbolTransformation </key >
14
- <string >s/^\s*(describe)\s+(.+)\s+do\s*$ /$2/ </string >
14
+ <string >s/^\s*((?:RSpec\.)?[fx]?(?: describe|context|feature))\b\s*(.*?)do /$2/ </string >
15
15
</dict >
16
16
<key >uuid </key >
17
17
<string >28F89786-04F4-43D7-82A6-34B046C2BC6B </string >
Original file line number Diff line number Diff line change 94
94
<key >behaviour </key >
95
95
<dict >
96
96
<key >begin </key >
97
- <string >^\s*([fx]?(?:describe|context|feature))\b(?=.*\bdo\s*$) </string >
97
+ <string >^\s*(RSpec\.)?( [fx]?(?:describe|context|feature))\b(?=.*\bdo\s*$) </string >
98
98
<key >beginCaptures </key >
99
99
<dict >
100
100
<key >1 </key >
101
+ <dict >
102
+ <key >name </key >
103
+ <string >entity.name.type.rspec </string >
104
+ </dict >
105
+ <key >2 </key >
101
106
<dict >
102
107
<key >name </key >
103
108
<string >keyword.other.rspec.behaviour </string >
130
135
<key >captures </key >
131
136
<dict >
132
137
<key >1 </key >
138
+ <dict >
139
+ <key >name </key >
140
+ <string >entity.name.type.rspec </string >
141
+ </dict >
142
+ <key >2 </key >
133
143
<dict >
134
144
<key >name </key >
135
145
<string >keyword.other.rspec.behaviour </string >
138
148
<key >comment </key >
139
149
<string >Behaviours with multiline descriptions are not matched by `behaviour`, so as a fallback we just highlight the bare keywords </string >
140
150
<key >match </key >
141
- <string >^\s*([fx]?(?:describe|context|feature))\b </string >
151
+ <string >^\s*(RSpec\.)?( [fx]?(?:describe|context|feature))\b </string >
142
152
<key >name </key >
143
153
<string >meta.rspec.behaviour </string >
144
154
</dict >
200
210
<key >1 </key >
201
211
<dict >
202
212
<key >name </key >
203
- <string >keyword.other.rspec.pending </string >
213
+ <string >entity.name.type.rspec </string >
204
214
</dict >
205
215
<key >2 </key >
216
+ <dict >
217
+ <key >name </key >
218
+ <string >keyword.other.rspec.pending </string >
219
+ </dict >
220
+ <key >3 </key >
206
221
<dict >
207
222
<key >name </key >
208
223
<string >string.ruby </string >
211
226
<key >comment </key >
212
227
<string >This only works with simple single / double quoted strings. But matching too liberally causes bugs (see https://github.com/rspec/rspec-tmbundle/issues/45), so better err on the safe side. </string >
213
228
<key >match </key >
214
- <string >^\s*([fx]?(?:it|specify|scenario|describe|context|feature))\s+("[^"]*"|'[^']*')(?< !do)\s*$ </string >
229
+ <string >^\s*(?:RSpec\.)?( [fx]?(?:it|specify|scenario|describe|context|feature))\s+("[^"]*"|'[^']*')(?< !do)\s*$ </string >
215
230
<key >name </key >
216
231
<string >meta.rspec.pending </string >
217
232
</dict >
You can’t perform that action at this time.
0 commit comments