{"action":"created","comment":{"url":"https://api.github.com/repos/rapidpro/expressions/pulls/comments/43721648","id":43721648,"diff_hunk":"@@ -52,4 +52,47 @@ describe(\"get auto-complete context\", function() {\n         expect(parser.autoCompleteContext('Hi @(CONCAT(\"@con')).toBeNull();\n         expect(parser.autoCompleteContext('Hi @(\"!\" & \"@con')).toBeNull();\n     });\n+\n+    it(\"ignore parenthesis triggering functions completions for variables\", function() {\n+        expect(parser.autoCompleteContext(\"Hi @(contact.age\")).toBe('contact.age');\n+    });\n+\n+    it('ignore the parenthesis triggering functions completions for functions', function() {\n+        expect(parser.autoCompleteContext(\"Hi @(SUM\")).toBe('SUM');\n+    });\n+\n+    it(\"matches the function without parameters\", function() {\n+        expect(parser.autoCompleteContext(\"Hi @(SUM(\")).toBe('SUM');","path":"js/tests.js","position":14,"original_position":14,"commit_id":"fd22e55015960c908f1a1453bed8ee969b019943","original_commit_id":"fd22e55015960c908f1a1453bed8ee969b019943","user":{"login":"norkans7","id":1040571,"avatar_url":"https://avatars.githubusercontent.com/u/1040571?v=3","gravatar_id":"","url":"https://api.github.com/users/norkans7","html_url":"https://github.com/norkans7","followers_url":"https://api.github.com/users/norkans7/followers","following_url":"https://api.github.com/users/norkans7/following{/other_user}","gists_url":"https://api.github.com/users/norkans7/gists{/gist_id}","starred_url":"https://api.github.com/users/norkans7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/norkans7/subscriptions","organizations_url":"https://api.github.com/users/norkans7/orgs","repos_url":"https://api.github.com/users/norkans7/repos","events_url":"https://api.github.com/users/norkans7/events{/privacy}","received_events_url":"https://api.github.com/users/norkans7/received_events","type":"User","site_admin":false},"body":"we do not have different boxes, I always use the results one\r\nand change the template for function \r\n\r\nhttps://github.com/nyaruka/rapidpro/blob/master/static/coffee/completions.coffee#L137\r\n\r\nand the use CSS to only show the signature when we have one li in the ul\r\n","created_at":"2015-11-03T07:30:29Z","updated_at":"2015-11-03T07:30:29Z","html_url":"https://github.com/rapidpro/expressions/pull/2#discussion_r43721648","pull_request_url":"https://api.github.com/repos/rapidpro/expressions/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/rapidpro/expressions/pulls/comments/43721648"},"html":{"href":"https://github.com/rapidpro/expressions/pull/2#discussion_r43721648"},"pull_request":{"href":"https://api.github.com/repos/rapidpro/expressions/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/rapidpro/expressions/pulls/2","id":49525186,"html_url":"https://github.com/rapidpro/expressions/pull/2","diff_url":"https://github.com/rapidpro/expressions/pull/2.diff","patch_url":"https://github.com/rapidpro/expressions/pull/2.patch","issue_url":"https://api.github.com/repos/rapidpro/expressions/issues/2","number":2,"state":"open","locked":false,"title":"Context query","user":{"login":"norkans7","id":1040571,"avatar_url":"https://avatars.githubusercontent.com/u/1040571?v=3","gravatar_id":"","url":"https://api.github.com/users/norkans7","html_url":"https://github.com/norkans7","followers_url":"https://api.github.com/users/norkans7/followers","following_url":"https://api.github.com/users/norkans7/following{/other_user}","gists_url":"https://api.github.com/users/norkans7/gists{/gist_id}","starred_url":"https://api.github.com/users/norkans7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/norkans7/subscriptions","organizations_url":"https://api.github.com/users/norkans7/orgs","repos_url":"https://api.github.com/users/norkans7/repos","events_url":"https://api.github.com/users/norkans7/events{/privacy}","received_events_url":"https://api.github.com/users/norkans7/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-03T07:13:14Z","updated_at":"2015-11-03T07:30:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0bfe04037ba5fad63bf1bd978bd476e253a5e9ee","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rapidpro/expressions/pulls/2/commits","review_comments_url":"https://api.github.com/repos/rapidpro/expressions/pulls/2/comments","review_comment_url":"https://api.github.com/repos/rapidpro/expressions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rapidpro/expressions/issues/2/comments","statuses_url":"https://api.github.com/repos/rapidpro/expressions/statuses/fd22e55015960c908f1a1453bed8ee969b019943","head":{"label":"rapidpro:context-query","ref":"context-query","sha":"fd22e55015960c908f1a1453bed8ee969b019943","user":{"login":"rapidpro","id":7733752,"avatar_url":"https://avatars.githubusercontent.com/u/7733752?v=3","gravatar_id":"","url":"https://api.github.com/users/rapidpro","html_url":"https://github.com/rapidpro","followers_url":"https://api.github.com/users/rapidpro/followers","following_url":"https://api.github.com/users/rapidpro/following{/other_user}","gists_url":"https://api.github.com/users/rapidpro/gists{/gist_id}","starred_url":"https://api.github.com/users/rapidpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapidpro/subscriptions","organizations_url":"https://api.github.com/users/rapidpro/orgs","repos_url":"https://api.github.com/users/rapidpro/repos","events_url":"https://api.github.com/users/rapidpro/events{/privacy}","received_events_url":"https://api.github.com/users/rapidpro/received_events","type":"Organization","site_admin":false},"repo":{"id":43113391,"name":"expressions","full_name":"rapidpro/expressions","owner":{"login":"rapidpro","id":7733752,"avatar_url":"https://avatars.githubusercontent.com/u/7733752?v=3","gravatar_id":"","url":"https://api.github.com/users/rapidpro","html_url":"https://github.com/rapidpro","followers_url":"https://api.github.com/users/rapidpro/followers","following_url":"https://api.github.com/users/rapidpro/following{/other_user}","gists_url":"https://api.github.com/users/rapidpro/gists{/gist_id}","starred_url":"https://api.github.com/users/rapidpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapidpro/subscriptions","organizations_url":"https://api.github.com/users/rapidpro/orgs","repos_url":"https://api.github.com/users/rapidpro/repos","events_url":"https://api.github.com/users/rapidpro/events{/privacy}","received_events_url":"https://api.github.com/users/rapidpro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rapidpro/expressions","description":"Expression parsing and evaluation support","fork":false,"url":"https://api.github.com/repos/rapidpro/expressions","forks_url":"https://api.github.com/repos/rapidpro/expressions/forks","keys_url":"https://api.github.com/repos/rapidpro/expressions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rapidpro/expressions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rapidpro/expressions/teams","hooks_url":"https://api.github.com/repos/rapidpro/expressions/hooks","issue_events_url":"https://api.github.com/repos/rapidpro/expressions/issues/events{/number}","events_url":"https://api.github.com/repos/rapidpro/expressions/events","assignees_url":"https://api.github.com/repos/rapidpro/expressions/assignees{/user}","branches_url":"https://api.github.com/repos/rapidpro/expressions/branches{/branch}","tags_url":"https://api.github.com/repos/rapidpro/expressions/tags","blobs_url":"https://api.github.com/repos/rapidpro/expressions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rapidpro/expressions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rapidpro/expressions/git/refs{/sha}","trees_url":"https://api.github.com/repos/rapidpro/expressions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rapidpro/expressions/statuses/{sha}","languages_url":"https://api.github.com/repos/rapidpro/expressions/languages","stargazers_url":"https://api.github.com/repos/rapidpro/expressions/stargazers","contributors_url":"https://api.github.com/repos/rapidpro/expressions/contributors","subscribers_url":"https://api.github.com/repos/rapidpro/expressions/subscribers","subscription_url":"https://api.github.com/repos/rapidpro/expressions/subscription","commits_url":"https://api.github.com/repos/rapidpro/expressions/commits{/sha}","git_commits_url":"https://api.github.com/repos/rapidpro/expressions/git/commits{/sha}","comments_url":"https://api.github.com/repos/rapidpro/expressions/comments{/number}","issue_comment_url":"https://api.github.com/repos/rapidpro/expressions/issues/comments{/number}","contents_url":"https://api.github.com/repos/rapidpro/expressions/contents/{+path}","compare_url":"https://api.github.com/repos/rapidpro/expressions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rapidpro/expressions/merges","archive_url":"https://api.github.com/repos/rapidpro/expressions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rapidpro/expressions/downloads","issues_url":"https://api.github.com/repos/rapidpro/expressions/issues{/number}","pulls_url":"https://api.github.com/repos/rapidpro/expressions/pulls{/number}","milestones_url":"https://api.github.com/repos/rapidpro/expressions/milestones{/number}","notifications_url":"https://api.github.com/repos/rapidpro/expressions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rapidpro/expressions/labels{/name}","releases_url":"https://api.github.com/repos/rapidpro/expressions/releases{/id}","created_at":"2015-09-25T06:24:59Z","updated_at":"2015-09-25T06:37:22Z","pushed_at":"2015-11-03T07:13:14Z","git_url":"git://github.com/rapidpro/expressions.git","ssh_url":"git@github.com:rapidpro/expressions.git","clone_url":"https://github.com/rapidpro/expressions.git","svn_url":"https://github.com/rapidpro/expressions","homepage":null,"size":4812,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"rapidpro:master","ref":"master","sha":"17c27139cb34cd929c763d4ad9160c9c1fe9367f","user":{"login":"rapidpro","id":7733752,"avatar_url":"https://avatars.githubusercontent.com/u/7733752?v=3","gravatar_id":"","url":"https://api.github.com/users/rapidpro","html_url":"https://github.com/rapidpro","followers_url":"https://api.github.com/users/rapidpro/followers","following_url":"https://api.github.com/users/rapidpro/following{/other_user}","gists_url":"https://api.github.com/users/rapidpro/gists{/gist_id}","starred_url":"https://api.github.com/users/rapidpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapidpro/subscriptions","organizations_url":"https://api.github.com/users/rapidpro/orgs","repos_url":"https://api.github.com/users/rapidpro/repos","events_url":"https://api.github.com/users/rapidpro/events{/privacy}","received_events_url":"https://api.github.com/users/rapidpro/received_events","type":"Organization","site_admin":false},"repo":{"id":43113391,"name":"expressions","full_name":"rapidpro/expressions","owner":{"login":"rapidpro","id":7733752,"avatar_url":"https://avatars.githubusercontent.com/u/7733752?v=3","gravatar_id":"","url":"https://api.github.com/users/rapidpro","html_url":"https://github.com/rapidpro","followers_url":"https://api.github.com/users/rapidpro/followers","following_url":"https://api.github.com/users/rapidpro/following{/other_user}","gists_url":"https://api.github.com/users/rapidpro/gists{/gist_id}","starred_url":"https://api.github.com/users/rapidpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapidpro/subscriptions","organizations_url":"https://api.github.com/users/rapidpro/orgs","repos_url":"https://api.github.com/users/rapidpro/repos","events_url":"https://api.github.com/users/rapidpro/events{/privacy}","received_events_url":"https://api.github.com/users/rapidpro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rapidpro/expressions","description":"Expression parsing and evaluation support","fork":false,"url":"https://api.github.com/repos/rapidpro/expressions","forks_url":"https://api.github.com/repos/rapidpro/expressions/forks","keys_url":"https://api.github.com/repos/rapidpro/expressions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rapidpro/expressions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rapidpro/expressions/teams","hooks_url":"https://api.github.com/repos/rapidpro/expressions/hooks","issue_events_url":"https://api.github.com/repos/rapidpro/expressions/issues/events{/number}","events_url":"https://api.github.com/repos/rapidpro/expressions/events","assignees_url":"https://api.github.com/repos/rapidpro/expressions/assignees{/user}","branches_url":"https://api.github.com/repos/rapidpro/expressions/branches{/branch}","tags_url":"https://api.github.com/repos/rapidpro/expressions/tags","blobs_url":"https://api.github.com/repos/rapidpro/expressions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rapidpro/expressions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rapidpro/expressions/git/refs{/sha}","trees_url":"https://api.github.com/repos/rapidpro/expressions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rapidpro/expressions/statuses/{sha}","languages_url":"https://api.github.com/repos/rapidpro/expressions/languages","stargazers_url":"https://api.github.com/repos/rapidpro/expressions/stargazers","contributors_url":"https://api.github.com/repos/rapidpro/expressions/contributors","subscribers_url":"https://api.github.com/repos/rapidpro/expressions/subscribers","subscription_url":"https://api.github.com/repos/rapidpro/expressions/subscription","commits_url":"https://api.github.com/repos/rapidpro/expressions/commits{/sha}","git_commits_url":"https://api.github.com/repos/rapidpro/expressions/git/commits{/sha}","comments_url":"https://api.github.com/repos/rapidpro/expressions/comments{/number}","issue_comment_url":"https://api.github.com/repos/rapidpro/expressions/issues/comments{/number}","contents_url":"https://api.github.com/repos/rapidpro/expressions/contents/{+path}","compare_url":"https://api.github.com/repos/rapidpro/expressions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rapidpro/expressions/merges","archive_url":"https://api.github.com/repos/rapidpro/expressions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rapidpro/expressions/downloads","issues_url":"https://api.github.com/repos/rapidpro/expressions/issues{/number}","pulls_url":"https://api.github.com/repos/rapidpro/expressions/pulls{/number}","milestones_url":"https://api.github.com/repos/rapidpro/expressions/milestones{/number}","notifications_url":"https://api.github.com/repos/rapidpro/expressions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rapidpro/expressions/labels{/name}","releases_url":"https://api.github.com/repos/rapidpro/expressions/releases{/id}","created_at":"2015-09-25T06:24:59Z","updated_at":"2015-09-25T06:37:22Z","pushed_at":"2015-11-03T07:13:14Z","git_url":"git://github.com/rapidpro/expressions.git","ssh_url":"git@github.com:rapidpro/expressions.git","clone_url":"https://github.com/rapidpro/expressions.git","svn_url":"https://github.com/rapidpro/expressions","homepage":null,"size":4812,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapidpro/expressions/pulls/2"},"html":{"href":"https://github.com/rapidpro/expressions/pull/2"},"issue":{"href":"https://api.github.com/repos/rapidpro/expressions/issues/2"},"comments":{"href":"https://api.github.com/repos/rapidpro/expressions/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/rapidpro/expressions/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/rapidpro/expressions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rapidpro/expressions/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/rapidpro/expressions/statuses/fd22e55015960c908f1a1453bed8ee969b019943"}}}}