Procházet zdrojové kódy

Modified original regex rule to only catch instances of bare /regex/

Matthew D. Miller před 6 roky
rodič
revize
8694e28edb
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/perl/perl.ts

+ 1 - 1
src/perl/perl.ts

@@ -505,7 +505,7 @@ export const language = <ILanguage>{
 
 			// RegExp
 			[
-				/[goseximacplud]*[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/,
+				/[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/,
 				'regexp',
 			],