Skip to content

Commit 38a64bf

Browse files
author
Nick Hamann
committed
---
yaml --- r: 228334 b: refs/heads/try c: 4630fc7 h: refs/heads/master v: v3
1 parent 54217c4 commit 38a64bf

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
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 4bc8369a267912e0bf6684a46ceef51c6c373713
4+
refs/heads/try: 4630fc75a7a9f61d53153452e5f3c13a8d7e3233
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/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)