Skip to content

Fixed issue where type argument brackets were treated as operators#61

Merged
TimWhiting merged 1 commit into
UserNobody14:masterfrom
matthewnitschke:fix_type_args_as_brackets
Feb 10, 2024
Merged

Fixed issue where type argument brackets were treated as operators#61
TimWhiting merged 1 commit into
UserNobody14:masterfrom
matthewnitschke:fix_type_args_as_brackets

Conversation

@matthewnitschke

Copy link
Copy Markdown
Contributor

tree-sitter-dart was treating < and > as operators when used within type argument lists:

class Foo<T, U> {}
List<String> bar(){}
void car(Map<String, int> inp);

This pr fixes the highlights.scm declaration to correctly handle the above brackets as punctuation.brackets instead of the operator tag

@TimWhiting TimWhiting merged commit 31ea08b into UserNobody14:master Feb 10, 2024
@TimWhiting

Copy link
Copy Markdown
Collaborator

Thanks!

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.

2 participants