-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error parsing when using 'new' in a ternary expression. #229
Comments
Probably need to add ':' to the new_recovery rule in haxe.bnf. But maybe not, since it should have recovered at the right parenthesis. So, it might be the ternary expression rule needs tweaking. |
I see declaration: private ternaryExpressionWrapper ::= logicOrExpressionWrapper ternaryExpression? left ternaryExpression ::= '?' expression ':' ternaryExpressionWrapper Maybe the same as coma, need ":" -> private new_recovery ::= !(')' | '}' | ';' | '.' | ','|':')? newExpression ::= 'new' type '(' (expression (',' expression)*)? ')' {pin=2 recoverWhile="new_recovery" mixin="com.intellij.plugins.haxe.lang.psi.impl.HaxeReferenceImpl" implements="com.intellij.plugins.haxe.lang.psi.HaxeReference"} private new_recovery ::= !(')' | '}' | ';' | '.' | ',') |
Yes, that's the first thing to try. |
Fixes tivo/intellij-haxe #229 Added a unit test for the 'new' command.
Fixed. |
Thanks! |
Code example:
TIR: STB-9401
Cant recognize ":"
Environment:
IDEA 14.1.1
Haxe Plugin: 0.9.3
Java: 1.8.0
Platform: Windows 7
The text was updated successfully, but these errors were encountered: