diff options
author | Brad King <brad.king@kitware.com> | 2016-10-25 13:08:58 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-10-25 13:08:58 (GMT) |
commit | 3062b8a046b24e4c28b374b5c4235bb0da0a2a2c (patch) | |
tree | 1ee4e944524666b7a5698323c1266cf783098a5b /Source/cmExtraSublimeTextGenerator.cxx | |
parent | 644ff572f736ff04f927661fa5bd2283cd3ee3e1 (diff) | |
parent | 9f1429e274df81344d260c8e42b3387a402940f1 (diff) | |
download | CMake-3062b8a046b24e4c28b374b5c4235bb0da0a2a2c.zip CMake-3062b8a046b24e4c28b374b5c4235bb0da0a2a2c.tar.gz CMake-3062b8a046b24e4c28b374b5c4235bb0da0a2a2c.tar.bz2 |
Merge topic 'st2-fix-regex'
9f1429e2 Sublime: Update generated diagnostic matching expression for MSVC
Diffstat (limited to 'Source/cmExtraSublimeTextGenerator.cxx')
-rw-r--r-- | Source/cmExtraSublimeTextGenerator.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmExtraSublimeTextGenerator.cxx b/Source/cmExtraSublimeTextGenerator.cxx index 5d35f13..f46019e 100644 --- a/Source/cmExtraSublimeTextGenerator.cxx +++ b/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}"; } |