Skip to content

Commit f7a5c7a

Browse files
benjcalyyx990803
authored andcommitted
separate sass and scss (#73)
limiting <style lang="scss"> to source.sass is quiet limiting, specially when it comes to autocomplete. The SCSS package is a lot more complete than the Sass on Sublime Text 3
1 parent e6f8cd9 commit f7a5c7a

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

vue.YAML-tmLanguage

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ patterns:
145145
- include: source.postcss
146146

147147
- name: source.sass.embedded.html
148-
begin: (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang="(?:s(a|c)ss)(?:\?[^"]*)?")
148+
begin: (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang="(?:sass)(?:\?[^"]*)?")
149149
end: (</)((?i:style))(>)(?:\s*\n)?
150150
captures:
151151
'1': {name: punctuation.definition.tag.begin.html}
@@ -160,6 +160,23 @@ patterns:
160160
patterns:
161161
- include: source.sass
162162

163+
- name: source.scss.embedded.html
164+
begin: (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang="(?:scss)(?:\?[^"]*)?")
165+
end: (</)((?i:style))(>)(?:\s*\n)?
166+
captures:
167+
'1': {name: punctuation.definition.tag.begin.html}
168+
'2': {name: entity.name.tag.style.html}
169+
'3': {name: punctuation.definition.tag.html}
170+
patterns:
171+
- include: '#tag-stuff'
172+
- begin: (>)
173+
beginCaptures:
174+
'1': {name: punctuation.definition.tag.end.html}
175+
end: (?=</(?i:style))
176+
patterns:
177+
- include: source.scss
178+
179+
163180
- name: source.less.embedded.html
164181
begin: (?:^\s+)?(<)((?i:style))\b(?=[^>]*lang="less(?:\?[^"]*)?")
165182
end: (</)((?i:style))(>)(?:\s*\n)?

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