Skip to content

Commit b5d6d99

Browse files
author
Nick Hamann
committed
---
yaml --- r: 235405 b: refs/heads/stable c: 4630fc7 h: refs/heads/master i: 235403: 635f1a9 v: v3
1 parent 12ba606 commit b5d6d99

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 4bc8369a267912e0bf6684a46ceef51c6c373713
32+
refs/heads/stable: 4630fc75a7a9f61d53153452e5f3c13a8d7e3233
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/etc/errorck.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@
2323
errcode_map = {}
2424
error_re = re.compile("(E\d\d\d\d)")
2525

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
2635
long_diag_begin = "r##\""
2736
long_diag_end = "\"##"
2837

@@ -41,6 +50,7 @@
4150
inside_long_diag = False
4251
for line_num, line in enumerate(f, start=1):
4352
if inside_long_diag:
53+
# Skip duplicate error code checking for this line
4454
if long_diag_end in line:
4555
inside_long_diag = False
4656
continue

0 commit comments

Comments
 (0)