diff --git a/package.json b/package.json index 8057c59..0b25fcd 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/liquidsoap.grammar b/src/liquidsoap.grammar index c28f55e..3da1a23 100644 --- a/src/liquidsoap.grammar +++ b/src/liquidsoap.grammar @@ -80,7 +80,7 @@ Encoder { } regexpContent { - regexpContentToken | EscapedChar + regexpContentToken | regexpSlashNoEscape | EscapedChar { "\\" "/" } } Regexp { @@ -786,6 +786,7 @@ BlockComment { ";" } regexpContentToken { ![/\\]+ } + regexpSlashNoEscape { "\\" ![/] } RegexpEnd[openedBy=regexpStart] { "/" $[gismu]* } EscapedChar { "\\" _ } doubleQuoteStringContentToken {