Skip to content

fix scope of } in where clause (#129)#130

Open
Jollywatt wants to merge 1 commit into
JuliaEditorSupport:masterfrom
Jollywatt:where_scope
Open

fix scope of } in where clause (#129)#130
Jollywatt wants to merge 1 commit into
JuliaEditorSupport:masterfrom
Jollywatt:where_scope

Conversation

@Jollywatt

@Jollywatt Jollywatt commented Jul 1, 2025

Copy link
Copy Markdown
Contributor

Fixes sublime-syntax so that this test passes:

# #129
foo(x::A{B}) where {B} = 1
#         ^ punctuation.section.parameter.end.julia
#                    ^ punctuation.section.parameter.end.julia

Before the fix:

error: scope does not match
723 | foo(x::A{B}) where {B} = 1
725 | #                    ^ punctuation.section.parameter.end.julia
    |                      ^ this location did not match
actual:
    |                      ^ source.julia meta.function.inline.julia meta.where-clause.julia meta.parametric-type.julia 

which resulted in the } in where clause being highlighted a different colour to the { (icky!).

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.

1 participant