Skip to content

Improve args handling #61

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

Merged
merged 5 commits into from
Apr 14, 2025
Merged

Improve args handling #61

merged 5 commits into from
Apr 14, 2025

Conversation

RblSb
Copy link
Member

@RblSb RblSb commented Mar 30, 2025

This also generates punctuation.separator.comma.hx tag between function args

See #57
Closes #39

^^^
source.hx meta.method.hx meta.parameters.hx support.class.builtin.hx
^
source.hx meta.method.hx meta.parameters.hx
Copy link
Member

Choose a reason for hiding this comment

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

should be a "comma", or is that what the other PR fixes?

there are some more places where it fails to detect a comma, it'll be easier to spot once the source is converted from tabs.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep, there is still a lot of skipped commas it seems, but it was like this before too? At least coloring is much better.

There is still one broken case in test:

var a = (
    a:Int,
    b:Int, // bad b color, () is detected as block instead of arrow
) -> 0;

Do i need to remove it and move to separate issue for now?

Copy link
Member

Choose a reason for hiding this comment

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

I agree, colors are less broken than before :)

I think it's fine to split them off into different issues, unless you want to have a go and try to fix trailing commas and arrow args before merging.

Copy link
Member Author

Choose a reason for hiding this comment

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

Not this time, just tried it a bit and still cannot understand why multiline arrows is not handled

Copy link
Member

Choose a reason for hiding this comment

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

then we'll have to keep #57 open for now.

@AlexHaxe
Copy link
Member

feel free to merge when ready

@RblSb RblSb merged commit c1b9bc8 into vshaxe:master Apr 14, 2025
1 check passed
@RblSb RblSb deleted the trails branch April 14, 2025 00:10
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.

Inline block comment on function declaration
2 participants