Skip to content

Commit c56c9d8

Browse files
committed
Split scopes correctly
1 parent b22715b commit c56c9d8

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

index.js

+14-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,20 @@ function testFile(file, grammar, options) {
134134
[
135135
padRight(value, 14),
136136
' : ',
137-
_.chain(scopes).uniq().sort().value().join(', ')
137+
138+
_.chain(scopes)
139+
.flatten()
140+
.reduce(
141+
function(m, v) {
142+
m.push.apply(m, v.split(/\s+/g));
143+
return m;
144+
},
145+
[]
146+
)
147+
.uniq()
148+
.sort()
149+
.value()
150+
.join(', ')
138151
].join('')
139152
)
140153
}

0 commit comments

Comments
 (0)