{"action":"opened","issue":{"url":"https://api.github.com/repos/KronicDeth/intellij-elixir/issues/149","labels_url":"https://api.github.com/repos/KronicDeth/intellij-elixir/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/KronicDeth/intellij-elixir/issues/149/comments","events_url":"https://api.github.com/repos/KronicDeth/intellij-elixir/issues/149/events","html_url":"https://github.com/KronicDeth/intellij-elixir/issues/149","id":92926649,"number":149,"title":"Parentheses in matchedExpression in stabSignature causes error","user":{"login":"KronicDeth","id":298259,"avatar_url":"https://avatars.githubusercontent.com/u/298259?v=3","gravatar_id":"","url":"https://api.github.com/users/KronicDeth","html_url":"https://github.com/KronicDeth","followers_url":"https://api.github.com/users/KronicDeth/followers","following_url":"https://api.github.com/users/KronicDeth/following{/other_user}","gists_url":"https://api.github.com/users/KronicDeth/gists{/gist_id}","starred_url":"https://api.github.com/users/KronicDeth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KronicDeth/subscriptions","organizations_url":"https://api.github.com/users/KronicDeth/orgs","repos_url":"https://api.github.com/users/KronicDeth/repos","events_url":"https://api.github.com/users/KronicDeth/events{/privacy}","received_events_url":"https://api.github.com/users/KronicDeth/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/KronicDeth/intellij-elixir/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/KronicDeth/intellij-elixir/labels/parser","name":"parser","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/KronicDeth/intellij-elixir/milestones/1","html_url":"https://github.com/KronicDeth/intellij-elixir/milestones/v1.0.0","labels_url":"https://api.github.com/repos/KronicDeth/intellij-elixir/milestones/1/labels","id":826555,"number":1,"title":"v1.0.0","description":"The parser is complete: it covers all of lib/elixir/src/elixir_parser.yrl.","creator":{"login":"KronicDeth","id":298259,"avatar_url":"https://avatars.githubusercontent.com/u/298259?v=3","gravatar_id":"","url":"https://api.github.com/users/KronicDeth","html_url":"https://github.com/KronicDeth","followers_url":"https://api.github.com/users/KronicDeth/followers","following_url":"https://api.github.com/users/KronicDeth/following{/other_user}","gists_url":"https://api.github.com/users/KronicDeth/gists{/gist_id}","starred_url":"https://api.github.com/users/KronicDeth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KronicDeth/subscriptions","organizations_url":"https://api.github.com/users/KronicDeth/orgs","repos_url":"https://api.github.com/users/KronicDeth/repos","events_url":"https://api.github.com/users/KronicDeth/events{/privacy}","received_events_url":"https://api.github.com/users/KronicDeth/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":59,"state":"open","created_at":"2014-10-14T23:00:00Z","updated_at":"2015-07-03T19:41:09Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-07-03T19:41:09Z","updated_at":"2015-07-03T19:41:09Z","closed_at":null,"body":"```elixir\r\n(\r\n  (signature_one) && signature_two ->\r\n    body_one\r\n)\r\n```\r\n\r\nparses with an error:\r\n\r\n```\r\nElixir File(0,54)\r\n  PsiElement(()('(')(0,1)\r\n  PsiElement(EOL)('\\n')(1,2)\r\n  PsiWhiteSpace('  ')(2,4)\r\n  PsiElement(()('(')(4,5)\r\n  PsiElement(identifier)('signature_one')(5,18)\r\n  PsiElement())(')')(18,19)\r\n  PsiWhiteSpace(' ')(19,20)\r\n  PsiElement(AND_OPERATOR)('&&')(20,22)\r\n  PsiWhiteSpace(' ')(22,23)\r\n  PsiElement(identifier)('signature_two')(23,36)\r\n  PsiWhiteSpace(' ')(36,37)\r\n  PsiElement(STAB_OPERATOR)('->')(37,39)\r\n  PsiErrorElement:KEYWORD_PAIR_COLON expected, got '\r\n'(39,40)\r\n    PsiElement(EOL)('\\n')(39,40)\r\n  PsiWhiteSpace('    ')(40,44)\r\n  PsiElement(identifier)('body_one')(44,52)\r\n  PsiElement(EOL)('\\n')(52,53)\r\n  PsiElement())(')')(53,54)\r\n```\r\n\r\nI believe this is because the `(signatureOne)` is matching as `stabParenthesesSignature`. It is before `stabNoParenthesesSignature` in `stabSignature`.  Filling order should fix it.\r\n\r\nBlocks #131:\r\n* [lib/elixir/lib/option_parser.ex](https://github.com/elixir-lang/elixir/blob/e02d7bf913f3e5ea8c9e49648e69324ec5c65919/lib/elixir/lib/option_parser.ex#L470)"}}