Explorar o código

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

Matthew D. Miller %!s(int64=6) %!d(string=hai) anos
pai
achega
8694e28edb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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',
 			],