Merge pull request #21405 from owen-mc/java/consistent-inline-expectation-tests

Inline expectation tests should always have space before and after `$`
This commit is contained in:
Owen Mansel-Chan
2026-03-05 11:27:37 +00:00
committed by GitHub
297 changed files with 5490 additions and 5458 deletions

View File

@@ -521,7 +521,7 @@ module Make<InlineExpectationsTestSig Impl> {
* is treated as part of the expected results, except that the comment may contain a `//` sequence
* to treat the remainder of the line as a regular (non-interpreted) comment.
*/
private string expectationCommentPattern() { result = "\\s*\\$((?:[^/]|/[^/])*)(?://.*)?" }
private string expectationCommentPattern() { result = "\\s*\\$ ((?:[^/]|/[^/])*)(?://.*)?" }
/**
* The possible columns in an expectation comment. The `TDefaultColumn` branch represents the first