Skip to content

Commit

Permalink
Clarify escaped char in regexp.
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Oct 26, 2023
1 parent 3de6d7e commit 6259be3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codemirror-lang-liquidsoap",
"version": "0.2.3",
"version": "0.2.4",
"description": "Liquidsoap language support for prosemirror",
"main": "dist/index.cjs",
"bin": {
Expand Down
3 changes: 2 additions & 1 deletion src/liquidsoap.grammar
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Encoder {
}

regexpContent {
regexpContentToken | EscapedChar
regexpContentToken | regexpSlashNoEscape | EscapedChar { "\\" "/" }
}

Regexp {
Expand Down Expand Up @@ -786,6 +786,7 @@ BlockComment {
";"
}
regexpContentToken { ![/\\]+ }
regexpSlashNoEscape { "\\" ![/] }
RegexpEnd[openedBy=regexpStart] { "/" $[gismu]* }
EscapedChar { "\\" _ }
doubleQuoteStringContentToken {
Expand Down

0 comments on commit 6259be3

Please sign in to comment.