ソースを参照

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

Matthew D. Miller 6 年 前
コミット
8694e28edb
1 ファイル変更1 行追加1 行削除
  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',
 			],