Skip to content

Commit

Permalink
fix(kotlin-metavariable-grammar.js): add missing grit_metavariable co…
Browse files Browse the repository at this point in the history
…nflicts

fixes getgrit#570
  • Loading branch information
Alex-ley-scrub committed Jan 6, 2025
1 parent 05448c3 commit 5d1dd0e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ module.exports = grammar({
[$.type_modifiers],
// ambiguity between associating type modifiers
[$.not_nullable_type],
// grit_metavariable conflicts
[$._statement, $._literal_constant],
],

externals: $ => [
Expand Down Expand Up @@ -1233,7 +1235,7 @@ module.exports = grammar({

_escaped_identifier: $ => /\\[tbrn'"\\$]/,

grit_metavariable: ($) => token(prec(PREC.grit_metavariable, choice("µ...", /µ[a-zA-Z_][a-zA-Z0-9_]*/))),
grit_metavariable: ($) => token(prec(PREC.GRIT_METAVARIABLE, choice("µ...", /µ[a-zA-Z_][a-zA-Z0-9_]*/))),
}
});

Expand Down

0 comments on commit 5d1dd0e

Please sign in to comment.