Skip to content

Commit

Permalink
Allow msvc diagnostics parser to handle both visual studio and clang-…
Browse files Browse the repository at this point in the history
…cl compiler warning/error output styles (microsoft#517)
  • Loading branch information
ki-bo committed May 3, 2021
1 parent 8cca2db commit 7d7cfbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diagnostics/msvc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as vscode from 'vscode';
import {oneLess, RawDiagnosticParser, FeedLineResult} from './util';

export const REGEX
= /^\s*(\d+>)?\s*([^\s>].*)\((\d+|\d+,\d+|\d+,\d+,\d+,\d+)\):\s+((?:fatal )?error|warning|info)\s+(\w{1,2}\d+)\s*:\s*(.*)$/;
= /^\s*(\d+>)?\s*([^\s>].*)\((\d+|\d+,\d+|\d+,\d+,\d+,\d+)\):\s+((?:fatal )?error|warning|info)\s*(\w{1,2}\d+)?\s*:\s*(.*)$/;

export class Parser extends RawDiagnosticParser {
doHandleLine(line: string) {
Expand Down

0 comments on commit 7d7cfbd

Please sign in to comment.