Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf7a5c7a

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 parente6f8cd9 commitf7a5c7a

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)

[8]ページ先頭

©2009-2025 Movatter.jp