File tree Expand file tree Collapse file tree 1 file changed +17
-16
lines changed Expand file tree Collapse file tree 1 file changed +17
-16
lines changed Original file line number Diff line number Diff line change @@ -13,27 +13,28 @@ function parseGcc(stdout) {
13
13
const messages = [ ] ;
14
14
let match = null ;
15
15
const deepRegex = / ( [ ^ : ^ \r ? \n ] + ) : ( \d + ) : ( \d + ) : \s ( \w + \s * \w * ) : \s ( .+ ) \r ? \n ( \s + ) ( .* ) \s + ( ~ * \^ ~ * ) / gm;
16
- // ^ ^ ^ ^ ^ ^ ^ ^
17
- // | | | | | | +- affected code +- token marker
18
- // | | | | | +- whitespace before code
19
- // | | | | +- message text
20
- // | | | +- type (error|warning|note)
21
- // | | +- column
22
- // | +- line
23
- // +- filename
16
+ // ^ ^ ^ ^ ^ ^ ^ ^
17
+ // | | | | | | | +- token marker
18
+ // | | | | | | +- affected code
19
+ // | | | | | +- whitespace before code
20
+ // | | | | +- message text
21
+ // | | | +- type (error|warning|note)
22
+ // | | +- column
23
+ // | +- line
24
+ // +- filename
24
25
while ( ( match = deepRegex . exec ( stdout ) ) ) {
25
26
messages . push ( new Message ( ) . fromGcc ( match , stdout ) ) ;
26
27
}
27
28
28
29
const simpleRegex = / ( [ ^ : ^ \r ? \n ] + ) : ( \d + ) : ( \d + ) : \s ( \w + \s * \w * ) : \s ( .+ ) \r ? \n (? ! \s ) / gm;
29
- // ^ ^ ^ ^ ^ ^ ^
30
- // | | | | | | +- affected code
31
- // | | | | | +- whitespace before code
32
- // | | | | +- message text
33
- // | | | +- type (error|warning|note)
34
- // | | +- column
35
- // | +- line
36
- // +- filename
30
+ // ^ ^ ^ ^ ^ ^
31
+ // | | | | | |
32
+ // | | | | | +- whitespace before code
33
+ // | | | | +- message text
34
+ // | | | +- type (error|warning|note)
35
+ // | | +- column
36
+ // | +- line
37
+ // +- filename
37
38
match = null ;
38
39
while ( ( match = simpleRegex . exec ( stdout ) ) ) {
39
40
messages . push ( new Message ( ) . fromGcc ( match , stdout ) ) ;
You can’t perform that action at this time.
0 commit comments