Skip to content

Commit 4960042

Browse files
committed
fix scss highlight (close #52)
1 parent 5c2b5af commit 4960042

File tree

4 files changed

+15
-12
lines changed

4 files changed

+15
-12
lines changed

samples/basic.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ Things to verify:
1212
<span
1313
v-text="foo * 10 + 'hi'"
1414
:id="foo + 'baz'"
15-
@click="onClick('hello')">
15+
@click="onClick('hello')"
16+
@click.prevent="onClick('hello')">
1617
Hello
1718
</span>
1819
</div>

samples/langs.vue

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@ body
1414
color primary-color
1515
</style>
1616

17+
<style lang="scss">
18+
@import '~foo';
19+
a {
20+
color: red;
21+
}
22+
</style>
23+
24+
<style lang="sass">
25+
@import '~foo'
26+
a
27+
color: red
28+
</style>
29+
1730
<template lang="pug">
1831
div.app
1932
h1.title This is the app

vue.YAML-tmLanguage

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ patterns:
159159
end: (?=</(?i:style))
160160
patterns:
161161
- include: source.sass
162-
- include: source.scss
163162

164163
- name: source.scss.embedded.html
165164
begin: (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang=(['"])scss\1?)
@@ -175,10 +174,8 @@ patterns:
175174
'1': {name: punctuation.definition.tag.end.html}
176175
end: (?=</(?i:style))
177176
patterns:
178-
- include: source.sass
179177
- include: source.scss
180178

181-
182179
- name: source.less.embedded.html
183180
begin: (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang=(['"])less\1?)
184181
end: (</)((?i:style))(>)(?:\s*\n)?

vue.tmLanguage

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -529,10 +529,6 @@
529529
<key>include</key>
530530
<string>source.sass</string>
531531
</dict>
532-
<dict>
533-
<key>include</key>
534-
<string>source.scss</string>
535-
</dict>
536532
</array>
537533
</dict>
538534
</array>
@@ -583,10 +579,6 @@
583579
<string>(?=&lt;/(?i:style))</string>
584580
<key>patterns</key>
585581
<array>
586-
<dict>
587-
<key>include</key>
588-
<string>source.sass</string>
589-
</dict>
590582
<dict>
591583
<key>include</key>
592584
<string>source.scss</string>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy