       if matchRules
         for rule, ruleSet of matchRules
           matches = val.match ruleSet.regex
-          
+
           return unless matches
 
           matches.forEach (match,i)->

    @input.setBlur()
    @menu = new JContextMenu o, data
    @menu.on "ContextMenuItemReceivedClick", (menuItem)=>
      @getOptions().match[rule].callback token, menuItem.getData()

  pistachio:->


              ruleSet.dataSource match

  showMenu:(options, data)->

    {token,rule} = options
    @menu.destroy() if @menu
    o =
