Skip to content

Commit

Permalink
added comments back to the inside rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Specy committed Oct 25, 2023
1 parent 0392d45 commit 6a7824c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions static/scripts/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ CodeMirror.defineSimpleMode("pest", {
{ regex: /[_@!$]/, token: "operator-2" },
],
inside_rule: [
{ regex: /\/\/.*/, token: "comment" },
{ regex: /"/, token: "string", next: "string" },
{
regex: /'(?:[^'\\]|\\(?:[nrt0'"]|x[\da-fA-F]{2}|u\{[\da-fA-F]{6}\}))'/,
Expand Down

0 comments on commit 6a7824c

Please sign in to comment.