     line = editor.getTextInRange([[bufferPosition.row, 0], bufferPosition])
     
     # if(@isPropertyNameCompletion()){
-    console.log alloyIdNamePatter.test(line)
-    console.log alloyIdNamePatter.exec(line)
+    console.log alloyIdNamePattern.test(line)
+    console.log alloyIdNamePattern.exec(line)
     console.log line
-    if alloyIdNamePatter.test(line)
+    if alloyIdNamePattern.test(line) # id name
       sourceEditor = util.getFileEditor related.getTargetPath('xml')
       if(!sourceEditor.isEmpty())
         sourceEditor.scan /id="(.*?)"/g, (item) -> 

            text: item.match[1]
            # description: item.match[1]'class definition'
          })
    else
      completions = @getPropertyNameCompletions(request)
    

tagRegExp =  /(<([^>]+)>)/ig
util = require './ti-pkg-util'
related = require './related'
_ = require 'underscore'
viewAutoProvider = require './viewProvider';

propertyNamePrefixPattern = /\.([a-zA-Z]+[-a-zA-Z-_]*)$/
alloyIdNamePattern = /\$\.([-a-zA-Z0-9-_]*)$/
alloyIdMemberPattern = /\$\.([-a-zA-Z0-9-_]*).([-a-zA-Z0-9-_]*)$/

module.exports =
  # This will work on JavaScript and CoffeeScript files, but not in js comments.
