Przeglądaj źródła

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

Matthew D. Miller 6 lat temu
rodzic
commit
8694e28edb
1 zmienionych plików z 1 dodań i 1 usunięć
  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',
 			],