Skip to content

Commit

Permalink
fixing parser bug (macro statement after variable init using if-else …
Browse files Browse the repository at this point in the history
…value expression would fail)
  • Loading branch information
m0rkeulv committed Jan 11, 2025
1 parent 177153d commit d7509c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ localVarDeclarationList ::='static'? mutabilityModifier localVarDeclaration (','
localVarDeclaration ::= 'static'? componentName typeTag? varInit?
{recoverWhile="local_var_declaration_part_recover" mixin="com.intellij.plugins.haxe.lang.psi.impl.HaxePsiFieldImpl" implements="com.intellij.plugins.haxe.lang.psi.HaxePsiField"}
private localVarDeclarationWithInit ::= componentName typeTag? varInit {extends=localVarDeclaration}
private local_var_declaration_part_recover ::= !(!<<isSemicolonRuleEnabled>> | '!' | ppToken | '(' | ')' | '++' | ',' | '-' | '--' | ';' | '[' | 'break' | 'case' | 'cast' | 'continue' | 'default' | 'do' | 'else' | 'false' | 'final' | 'for' | 'function' | 'if' | 'new' | 'null' | 'return' | 'super' | 'switch' | 'this' | 'throw' | 'true' | 'try' | 'untyped' | 'var' | 'while' | '{' | '}' | '~' | ID | OPEN_QUOTE | LITFLOAT | LITHEX | LITINT | LITOCT | REG_EXP)
private local_var_declaration_part_recover ::= !(!<<isSemicolonRuleEnabled>> | '!' | ppToken | '(' | ')' | '++' | ',' | '-' | '--' | ';' | '[' | 'break' | 'case' | 'cast' | 'continue' | 'default' | 'do' | 'else' | 'false' | 'final' | 'for' | 'function' | 'if' | 'new' | 'null' | 'return' | 'super' | 'switch' | 'this' | 'throw' | 'true' | 'try' | 'untyped' | 'var' | 'while' | '{' | '}' | '~' | ID | MACRO_ID | OPEN_QUOTE | LITFLOAT | LITHEX | LITINT | LITOCT | REG_EXP)

propertyDeclaration ::= '(' propertyAccessor ',' propertyAccessor ')'

Expand Down

0 comments on commit d7509c1

Please sign in to comment.