Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Update SCSS scopes based on recent language-sass changes
Browse files Browse the repository at this point in the history
  • Loading branch information
50Wliu committed Jun 10, 2016
1 parent 8a9303f commit 76a54c2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/provider.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ module.exports =
previousScopesArray = previousScopes.getScopesArray()

(hasScope(scopes, 'meta.property-value.css') and not hasScope(scopes, 'punctuation.separator.key-value.css')) or
(hasScope(scopes, 'meta.property-value.scss') and not hasScope(scopes, 'punctuation.separator.key-value.scss')) or
(hasScope(scopes, 'meta.property-list.scss') and prefix.trim() is ":") or
(hasScope(scopes, 'meta.property-value.scss')) or
(hasScope(scopes, 'source.sass') and (hasScope(scopes, 'meta.property-value.sass') or
(not hasScope(previousScopesArray, "entity.name.tag.css.sass") and prefix.trim() is ":")
))
Expand Down Expand Up @@ -90,9 +91,9 @@ module.exports =
hasScope(previousScopesArray, 'entity.name.tag.scss')

isAtBeginScopePunctuation = hasScope(scopes, 'punctuation.section.property-list.begin.css') or
hasScope(scopes, 'punctuation.section.property-list.begin.scss')
hasScope(scopes, 'punctuation.section.property-list.begin.bracket.curly.scss')
isAtEndScopePunctuation = hasScope(scopes, 'punctuation.section.property-list.end.css') or
hasScope(scopes, 'punctuation.section.property-list.end.scss')
hasScope(scopes, 'punctuation.section.property-list.end.bracket.curly.scss')

if isAtBeginScopePunctuation
# * Disallow here: `canvas,|{}`
Expand Down

0 comments on commit 76a54c2

Please sign in to comment.