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 @@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
25
25
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26
26
refs/heads/beta: c8bab9d06a179028a0d5129aa62f09d694d9cc49
27
27
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28
- refs/heads/tmp: 4bc8369a267912e0bf6684a46ceef51c6c373713
28
+ refs/heads/tmp: 4630fc75a7a9f61d53153452e5f3c13a8d7e3233
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
30
30
refs/tags/homu-tmp: 1b28ffa5216c845d1cef6b0cb3e5ac7db12025d0
31
31
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
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