Skip to content

Commit 4630fc7

Browse files
author
Nick Hamann
committed
Add comments.
1 parent 4bc8369 commit 4630fc7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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)