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

Update SCSS autocompletion scopes #51

Merged
merged 1 commit into from
Jun 10, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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