File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
3
3
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4
- refs/heads/try: 4bc8369a267912e0bf6684a46ceef51c6c373713
4
+ refs/heads/try: 4630fc75a7a9f61d53153452e5f3c13a8d7e3233
5
5
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
6
6
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
7
7
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change 23
23
errcode_map = {}
24
24
error_re = re .compile ("(E\d\d\d\d)" )
25
25
26
+ # In the register_long_diagnostics! macro, entries look like this:
27
+ #
28
+ # EXXXX: r##"
29
+ # <Long diagnostic message>
30
+ # "##,
31
+ #
32
+ # These two variables are for detecting the beginning and end of diagnostic
33
+ # messages so that duplicate error codes are not reported when a code occurs
34
+ # inside a diagnostic message
26
35
long_diag_begin = "r##\" "
27
36
long_diag_end = "\" ##"
28
37
41
50
inside_long_diag = False
42
51
for line_num , line in enumerate (f , start = 1 ):
43
52
if inside_long_diag :
53
+ # Skip duplicate error code checking for this line
44
54
if long_diag_end in line :
45
55
inside_long_diag = False
46
56
continue
You can’t perform that action at this time.
0 commit comments