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

Define missing namespace state for haxe lexer #1858

Merged
merged 2 commits into from
Aug 18, 2022

Conversation

tancnle
Copy link
Collaborator

@tancnle tancnle commented Aug 15, 2022

This commit fixes an exception where the namespace state is not defined.

  • Standardise import, using and package statement
  • Support import with alias (in and as)
  • Distinguish Keyword::Namespace token

Screen Shot 2022-08-18 at 7 56 05 pm

Fixes #1720

This commit fixes an exception where namespace state is not defined.

- Standardise import, using and package statement
- Support import with alias
- Distinguish Keyword::Namespace token
@tancnle
Copy link
Collaborator Author

tancnle commented Aug 15, 2022

👋🏼 @MoritzBrueckner I am not an expert in Haxe but this is my attempt to address the reported issue. Please let me know if it looks right to you 🙏🏼 .

@MoritzBrueckner
Copy link

Hi, I can't test your changes but it looks correct to me, thanks a lot :)

For the import alias I think it's also possible to use as instead of in in newer Haxe versions: https://haxe.org/manual/type-system-import.html#since-haxe-3.2.0

@tancnle
Copy link
Collaborator Author

tancnle commented Aug 18, 2022

For the import alias I think it's also possible to use as instead of in in newer Haxe versions: https://haxe.org/manual/type-system-import.html#since-haxe-3.2.0

Added in de9ed46

@tancnle tancnle merged commit a1159e9 into rouge-ruby:master Aug 18, 2022
@tancnle tancnle deleted the fix.missing-namespace-state-haxe branch August 18, 2022 09:59
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.

Haxe: static extensions break highlighting
2 participants