@@ -192,7 +192,7 @@ They have several forms, but generally are a comment with the diagnostic level
192192to write out the entire message, just make sure to include the important part of
193193the message to make it self-documenting.
194194
195- The error annotation needs to match with the line of the diagnostic. There are
195+ Most error annotations need to match with the line of the diagnostic. There are
196196several ways to match the message with the line (see the examples below):
197197
198198* ` ~ ` : Associates the error level and message with the * current* line
@@ -205,9 +205,6 @@ several ways to match the message with the line (see the examples below):
205205* ` ~v ` : Associates the error level and message with the * next* error
206206 annotation line. Each symbol (` v ` ) that you add adds a line to this, so ` ~vvv `
207207 is three lines below the error annotation line.
208- * ` ~? ` : Used to match error levels and messages with errors not having line
209- information. These can be placed on any line in the test file, but are
210- conventionally placed at the end.
211208
212209Example:
213210
@@ -222,6 +219,10 @@ The space character between `//~` (or other variants) and the subsequent text is
222219negligible (i.e. there is no semantic difference between ` //~ ERROR ` and
223220` //~ERROR ` although the former is more common in the codebase).
224221
222+ ` ~? <diagnostic kind> ` (example being ` ~? ERROR ` )
223+ is used to match diagnostics without line information.
224+ These can be placed on any line in the test file, but are conventionally placed at the end.
225+
225226### Error annotation examples
226227
227228Here are examples of error annotations on different lines of UI test source.
0 commit comments