Skip to content
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

[Haxe][ASFileParser] Added support for parsing of from and to keywords within header of abstract #1978

Conversation

SlavaRa
Copy link

@SlavaRa SlavaRa commented Jan 26, 2018

No description provided.

@SlavaRa SlavaRa changed the title [Haxe][ASFileParser] Added support for parsing of 'from' and 'to' keywords within header of 'abstract' [Haxe][ASFileParser] Added support for parsing of from and to keywords within header of abstract Jan 26, 2018
Copy link
Member

@elsassph elsassph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good approach!

@@ -1895,7 +1895,7 @@ private bool EvalToken(bool evalContext, bool evalKeyword, int position)

string token = curToken.Text;
int dotIndex = token.LastIndexOf('.');
if (evalKeyword && (token.Length > 2))
if (evalKeyword && (token.Length > 2 || (haXe && token.Length >= 2)))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe have a variable var minTokenLength = haXe ? 2 : 3;?

@SlavaRa SlavaRa merged commit b74c953 into fdorg:development Jan 29, 2018
@SlavaRa SlavaRa deleted the feature/Haxe_ASFileParser_Support_for_from_and_to branch January 29, 2018 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants