Skip to content

Commit

Permalink
update: remove unnecessary conflict
Browse files Browse the repository at this point in the history
Solved the conflict by setting precedence.
  • Loading branch information
luckasRanarison committed Jun 15, 2024
1 parent 088bcd4 commit c9012d6
Show file tree
Hide file tree
Showing 4 changed files with 509 additions and 583 deletions.
7 changes: 2 additions & 5 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ module.exports = grammar({

extras: ($) => [/[ \t]/, $.comment],

conflicts: ($) => [
[$._value, $.gradient],
[$.number, $.legacy_hex],
],
conflicts: ($) => [[$.number, $.legacy_hex]],

word: ($) => $.string,

Expand Down Expand Up @@ -56,12 +53,12 @@ module.exports = grammar({
$.number,
$.vec2,
$.display,
$.color,
$.gradient,
$.mod,
$.keys,
$.string,
$.variable,
prec(1, $.color),
prec(1, $.position)
),

Expand Down
17 changes: 9 additions & 8 deletions src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c9012d6

Please sign in to comment.