     return false if trailingWhitespace.test(prefix)
 
     scopes = scopeDescriptor.getScopesArray()
-    return true if scopes.indexOf('entity.other.attribute-name.localname.xml') isnt -1
+    return true if scopes.indexOf('entity.other.attribute-name.html') isnt -1
     return false unless @hasTagScope(scopes)
 
-    scopes.indexOf('punctuation.definition.tag.xml') isnt -1 or
-      scopes.indexOf('punctuation.definition.tag.end.xml') isnt -1
+    scopes.indexOf('punctuation.definition.tag.html') isnt -1 or
+      scopes.indexOf('punctuation.definition.tag.end.html') isnt -1
 
   isAttributeValueStartWithNoPrefix: ({scopeDescriptor, prefix}) ->
     lastPrefixCharacter = prefix[prefix.length - 1]

    @hasStringScope(scopes) and @hasTagScope(scopes)

  hasTagScope: (scopes) ->
    console.log scopes
    # scopes.indexOf('meta.tag.xml') isnt -1 or
    scopes.indexOf('entity.name.tag.localname.xml') isnt -1 #or
      # scopes.indexOf('meta.tag.block.any.html') isnt -1 or
      # scopes.indexOf('meta.tag.inline.any.html') isnt -1 or
      # scopes.indexOf('meta.tag.structure.any.html') isnt -1

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


  isTagStartWithNoPrefix: ({prefix, scopeDescriptor}) ->
    scopes = scopeDescriptor.getScopesArray()
    if prefix is '<' and scopes.length is 1
      scopes[0] is 'text.html.basic'
    else if prefix is '<' and scopes.length is 2
      scopes[0] is 'text.html.basic' and scopes[1] is 'meta.scope.outside-tag.html'
    else
      false

  isTagStartTagWithPrefix: ({prefix, scopeDescriptor}) ->
    return false unless prefix
    return false if trailingWhitespace.test(prefix)
    @hasTagScope(scopeDescriptor.getScopesArray())

  isAttributeStartWithNoPrefix: ({prefix, scopeDescriptor}) ->
