Browse Source

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

Matthew D. Miller 6 years ago
parent
commit
8694e28edb
1 changed files with 1 additions and 1 deletions
  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',
 			],