瀏覽代碼

Merge topic 'st2-fix-regex'

9f1429e2 Sublime: Update generated diagnostic matching expression for MSVC
Brad King 9 年之前
父節點
當前提交
3062b8a046
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Source/cmExtraSublimeTextGenerator.cxx

+ 3 - 1
Source/cmExtraSublimeTextGenerator.cxx

@@ -271,7 +271,9 @@ void cmExtraSublimeTextGenerator::AppendTarget(
        << this->BuildMakeCommand(make, makefileName.c_str(), targetName)
        << "],\n";
   fout << "\t\t\t\"working_dir\": \"${project_path}\",\n";
-  fout << "\t\t\t\"file_regex\": \"^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$\"\n";
+  fout << "\t\t\t\"file_regex\": \""
+          "^(..[^:]*)(?::|\\\\()([0-9]+)(?::|\\\\))(?:([0-9]+):)?\\\\s*(.*)"
+          "\"\n";
   fout << "\t\t}";
 }