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

Commit e976b1c

Browse files
author
Wliu
authored
Merge pull request #76 from atom/wl-language-html-changes
Scope is a tag scope if it begins with meta.tag., ends with .html
2 parents 563fe24 + 5d1d3bf commit e976b1c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/provider.coffee

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,9 @@ module.exports =
6969
@getPreviousAttribute(editor, bufferPosition)?
7070

7171
hasTagScope: (scopes) ->
72-
scopes.indexOf('meta.tag.any.html') isnt -1 or
73-
scopes.indexOf('meta.tag.other.html') isnt -1 or
74-
scopes.indexOf('meta.tag.block.any.html') isnt -1 or
75-
scopes.indexOf('meta.tag.inline.any.html') isnt -1 or
76-
scopes.indexOf('meta.tag.structure.any.html') isnt -1
72+
for scope in scopes
73+
return true if scope.startsWith('meta.tag.') and scope.endsWith('.html')
74+
return false
7775

7876
hasStringScope: (scopes) ->
7977
scopes.indexOf('string.quoted.double.html') isnt -1 or

0 commit comments

Comments
 (0)