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

[Go] Fix slice date type highlighting #3843

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

deathaxe
Copy link
Collaborator

Fixes #3842

This commit refactors pop-type-single context:

  1. don't pop it off stack when matching [ so arbitrary numbers of bracket pairs (slices) can be contained.

  2. removes pop-after-brackets after ] is matched as all its content is also part of pop-type-single.

  3. simplify the context by removing some unneeded lookaheads.

    pop-type-identifier is included directly at last position as it also includes the pop-before-nonblank.

Fixes sublimehq#3842

This commit refactors `pop-type-single` context:

1. don't pop it off stack when matching `[` so arbitrary numbers of bracket
   pairs (slices) can be contained.

2. removes `pop-after-brackets` after `]` is matched as all its content is also
   part of `pop-type-single`.

3. simplify the context by removing some unneeded lookaheads.

   `pop-type-identifier` is included directly at last position as it also
   includes the `pop-before-nonblank`.
@FichteFoll FichteFoll merged commit f5132a0 into sublimehq:master Nov 1, 2023
@deathaxe deathaxe deleted the pr/go/fix-slice-types branch November 1, 2023 19:20
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.

[Go] Coloring for function signature is off for slices of slices
4 participants