Skip to content

Commit e9c8cbd

Browse files
author
Nick Hamann
committed
---
yaml --- r: 220525 b: refs/heads/tmp c: 4630fc7 h: refs/heads/master i: 220523: b04df9b v: v3
1 parent b21fd7c commit e9c8cbd

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
@@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2626
refs/heads/beta: c8bab9d06a179028a0d5129aa62f09d694d9cc49
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28-
refs/heads/tmp: 4bc8369a267912e0bf6684a46ceef51c6c373713
28+
refs/heads/tmp: 4630fc75a7a9f61d53153452e5f3c13a8d7e3233
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: 1b28ffa5216c845d1cef6b0cb3e5ac7db12025d0
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828

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