-
-
Notifications
You must be signed in to change notification settings - Fork 125
Closed
Description
vec![Foo::bar()];
baz![?];
The :: and ? are not included in the syntax tree. I think this is because _non_special_token is matching these with a regular expression, unlike e.g. as.
Lines 193 to 198 in cc7bdd3
| _non_special_token: $ => choice( | |
| $._literal, $.identifier, $.metavariable, $.mutable_specifier, $.self, $.super, $.crate, | |
| alias(choice(...primitive_types), $.primitive_type), | |
| /[/_\-=->,;:::!=?.@*&#%^+<>|~]+/, | |
| '\'', | |
| 'as', 'async', 'await', 'break', 'const', 'continue', 'default', 'enum', 'fn', 'for', 'if', 'impl', |
This is causing issues for difftastic, where Foo::bar() preserves the :: but vec![Foo::bar()] does not.
Metadata
Metadata
Assignees
Labels
No labels