Permalink
Browse files

fixed #183

  • Loading branch information...
1 parent bcd053d commit 6decc5a7c9195ff2050aee6b429aecdae747db5c @ignatov committed Feb 22, 2013

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -420,7 +420,8 @@ function_call_expression ::= q_atom argument_list {
pin=0
methods = [getReference getNameIdentifier getTextOffset]
}
-macros_call ::= generic_function_call_expression
+macros_call ::= &('?') generic_function_call_expression {recoverUntil=macros_call_recover}
+private macros_call_recover ::= !('.')
generic_function_call_expression ::= (q_atom_or_var ':')? (q_atom_or_var | macros) argument_list {pin=0}
private q_atom_or_var ::= q_atom | q_var
View
@@ -0,0 +1,5 @@
+foo1(0).
+
+foo() -> ok.
+
+xxx(1) -> not_ok.
View
@@ -0,0 +1,38 @@
+ERL_FILE
+ PsiElement(atom)('foo1')
+ PsiElement(()('(')
+ PsiElement(integer)('0')
+ PsiElement())(')')
+ PsiErrorElement:'->', ':-' or when expected, got '.'
+ <empty list>
+ PsiErrorElement:'.' expected, got '.'
+ PsiElement(.)('.')
+ ERL_FUNCTION
+ ERL_FUNCTION_CLAUSE
+ ERL_Q_ATOM
+ PsiElement(atom)('foo')
+ ERL_ARGUMENT_DEFINITION_LIST
+ PsiElement(()('(')
+ PsiElement())(')')
+ ERL_CLAUSE_BODY
+ PsiElement(->)('->')
+ ERL_MAX_EXPRESSION
+ ERL_Q_ATOM
+ PsiElement(atom)('ok')
+ PsiElement(.)('.')
+ ERL_FUNCTION
+ ERL_FUNCTION_CLAUSE
+ ERL_Q_ATOM
+ PsiElement(atom)('xxx')
+ ERL_ARGUMENT_DEFINITION_LIST
+ PsiElement(()('(')
+ ERL_ARGUMENT_DEFINITION
+ ERL_MAX_EXPRESSION
+ PsiElement(integer)('1')
+ PsiElement())(')')
+ ERL_CLAUSE_BODY
+ PsiElement(->)('->')
+ ERL_MAX_EXPRESSION
+ ERL_Q_ATOM
+ PsiElement(atom)('not_ok')
+ PsiElement(.)('.')
Oops, something went wrong.

0 comments on commit 6decc5a

Please sign in to comment.