File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
cpp/ql/test/TestUtilities
csharp/ql/test/TestUtilities
java/ql/test/TestUtilities
python/ql/test/TestUtilities
ruby/ql/test/TestUtilities Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -173,10 +173,10 @@ abstract class InlineExpectationsTest extends string {
173173/**
174174 * RegEx pattern to match a comment containing one or more expected results. The comment must have
175175 * `$` as its first non-whitespace character. Any subsequent character
176- * is treated as part of the expected results, except that the comment may contain a `//` sequence
176+ * is treated as part of the expected results, except that the comment may contain a ` //` sequence
177177 * to treat the remainder of the line as a regular (non-interpreted) comment.
178178 */
179- private string expectationCommentPattern ( ) { result = "\\s*\\$((?:[^/]|/ [^/])*)(?://.*)?" }
179+ private string expectationCommentPattern ( ) { result = "\\s*\\$((?:[^/]|[^ ]//|/ [^/])*)(?: //.*)?" }
180180
181181/**
182182 * The possible columns in an expectation comment. The `TDefaultColumn` branch represents the first
Original file line number Diff line number Diff line change @@ -173,10 +173,10 @@ abstract class InlineExpectationsTest extends string {
173173/**
174174 * RegEx pattern to match a comment containing one or more expected results. The comment must have
175175 * `$` as its first non-whitespace character. Any subsequent character
176- * is treated as part of the expected results, except that the comment may contain a `//` sequence
176+ * is treated as part of the expected results, except that the comment may contain a ` //` sequence
177177 * to treat the remainder of the line as a regular (non-interpreted) comment.
178178 */
179- private string expectationCommentPattern ( ) { result = "\\s*\\$((?:[^/]|/ [^/])*)(?://.*)?" }
179+ private string expectationCommentPattern ( ) { result = "\\s*\\$((?:[^/]|[^ ]//|/ [^/])*)(?: //.*)?" }
180180
181181/**
182182 * The possible columns in an expectation comment. The `TDefaultColumn` branch represents the first
Original file line number Diff line number Diff line change @@ -173,10 +173,10 @@ abstract class InlineExpectationsTest extends string {
173173/**
174174 * RegEx pattern to match a comment containing one or more expected results. The comment must have
175175 * `$` as its first non-whitespace character. Any subsequent character
176- * is treated as part of the expected results, except that the comment may contain a `//` sequence
176+ * is treated as part of the expected results, except that the comment may contain a ` //` sequence
177177 * to treat the remainder of the line as a regular (non-interpreted) comment.
178178 */
179- private string expectationCommentPattern ( ) { result = "\\s*\\$((?:[^/]|/ [^/])*)(?://.*)?" }
179+ private string expectationCommentPattern ( ) { result = "\\s*\\$((?:[^/]|[^ ]//|/ [^/])*)(?: //.*)?" }
180180
181181/**
182182 * The possible columns in an expectation comment. The `TDefaultColumn` branch represents the first
Original file line number Diff line number Diff line change @@ -173,10 +173,10 @@ abstract class InlineExpectationsTest extends string {
173173/**
174174 * RegEx pattern to match a comment containing one or more expected results. The comment must have
175175 * `$` as its first non-whitespace character. Any subsequent character
176- * is treated as part of the expected results, except that the comment may contain a `//` sequence
176+ * is treated as part of the expected results, except that the comment may contain a ` //` sequence
177177 * to treat the remainder of the line as a regular (non-interpreted) comment.
178178 */
179- private string expectationCommentPattern ( ) { result = "\\s*\\$((?:[^/]|/ [^/])*)(?://.*)?" }
179+ private string expectationCommentPattern ( ) { result = "\\s*\\$((?:[^/]|[^ ]//|/ [^/])*)(?: //.*)?" }
180180
181181/**
182182 * The possible columns in an expectation comment. The `TDefaultColumn` branch represents the first
Original file line number Diff line number Diff line change @@ -173,10 +173,10 @@ abstract class InlineExpectationsTest extends string {
173173/**
174174 * RegEx pattern to match a comment containing one or more expected results. The comment must have
175175 * `$` as its first non-whitespace character. Any subsequent character
176- * is treated as part of the expected results, except that the comment may contain a `//` sequence
176+ * is treated as part of the expected results, except that the comment may contain a ` //` sequence
177177 * to treat the remainder of the line as a regular (non-interpreted) comment.
178178 */
179- private string expectationCommentPattern ( ) { result = "\\s*\\$((?:[^/]|/ [^/])*)(?://.*)?" }
179+ private string expectationCommentPattern ( ) { result = "\\s*\\$((?:[^/]|[^ ]//|/ [^/])*)(?: //.*)?" }
180180
181181/**
182182 * The possible columns in an expectation comment. The `TDefaultColumn` branch represents the first
You can’t perform that action at this time.
0 commit comments