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

Change constructor tracking to not use type #29

Merged
merged 2 commits into from
May 24, 2022

Conversation

J3RN
Copy link
Member

@J3RN J3RN commented May 24, 2022

For the tags queries, it seemed odd that we were using definition.type and reference.type for tracking constructors. However, none of the standard set of capture names seem applicable (maybe class?), so I made up constructor and hope that most systems don't hardcode the standard set.

@J3RN J3RN merged commit d7861b2 into gleam-lang:main May 24, 2022
@J3RN J3RN deleted the constructor-tags branch May 24, 2022 19:45
the-mikedavis added a commit to the-mikedavis/helix that referenced this pull request May 24, 2022
With respect to the queries:

The locals scope for functions was not large enough, so a function's
parameter could outlive the function body. To fix it, we just widen
the scope to the `function` node.

See also gleam-lang/tree-sitter-gleam#25

With respect to the parser:

An external scanner has been added that fixes the parsing of strings.
Previously, a comment inside a string would act like a comment rather
than string contents.

See also gleam-lang/tree-sitter-gleam#14 (comment)

A new constructor node has been added as well which makes type
highlighting more fine grained.

See also gleam-lang/tree-sitter-gleam#29
archseer pushed a commit to helix-editor/helix that referenced this pull request May 25, 2022
With respect to the queries:

The locals scope for functions was not large enough, so a function's
parameter could outlive the function body. To fix it, we just widen
the scope to the `function` node.

See also gleam-lang/tree-sitter-gleam#25

With respect to the parser:

An external scanner has been added that fixes the parsing of strings.
Previously, a comment inside a string would act like a comment rather
than string contents.

See also gleam-lang/tree-sitter-gleam#14 (comment)

A new constructor node has been added as well which makes type
highlighting more fine grained.

See also gleam-lang/tree-sitter-gleam#29
mtoohey31 pushed a commit to mtoohey31/helix that referenced this pull request Jun 15, 2022
With respect to the queries:

The locals scope for functions was not large enough, so a function's
parameter could outlive the function body. To fix it, we just widen
the scope to the `function` node.

See also gleam-lang/tree-sitter-gleam#25

With respect to the parser:

An external scanner has been added that fixes the parsing of strings.
Previously, a comment inside a string would act like a comment rather
than string contents.

See also gleam-lang/tree-sitter-gleam#14 (comment)

A new constructor node has been added as well which makes type
highlighting more fine grained.

See also gleam-lang/tree-sitter-gleam#29
mtoohey31 pushed a commit to mtoohey31/helix that referenced this pull request Jun 15, 2022
With respect to the queries:

The locals scope for functions was not large enough, so a function's
parameter could outlive the function body. To fix it, we just widen
the scope to the `function` node.

See also gleam-lang/tree-sitter-gleam#25

With respect to the parser:

An external scanner has been added that fixes the parsing of strings.
Previously, a comment inside a string would act like a comment rather
than string contents.

See also gleam-lang/tree-sitter-gleam#14 (comment)

A new constructor node has been added as well which makes type
highlighting more fine grained.

See also gleam-lang/tree-sitter-gleam#29
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.

None yet

1 participant