mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 20:52:56 +01:00
Modified original regex rule to only catch instances of bare /regex/
This commit is contained in:
parent
3928208ab4
commit
8694e28edb
1 changed files with 1 additions and 1 deletions
|
|
@ -505,7 +505,7 @@ export const language = <ILanguage>{
|
||||||
|
|
||||||
// RegExp
|
// RegExp
|
||||||
[
|
[
|
||||||
/[goseximacplud]*[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/,
|
/[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/,
|
||||||
'regexp',
|
'regexp',
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue