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 @@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
30
30
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
31
31
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32
- refs/heads/stable: 4bc8369a267912e0bf6684a46ceef51c6c373713
32
+ refs/heads/stable: 4630fc75a7a9f61d53153452e5f3c13a8d7e3233
33
33
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
34
34
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
35
35
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e
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