Inline expectation tests: accept // $MISSING: and // $SPURIOUS:

Previously there had to be a space after the $ token, unlike ordinary expectations (i.e., // $xss was already accepted)
This commit is contained in:
Chris Smowton
2021-06-17 09:44:39 +01:00
parent 9b84a8e146
commit 558813acf7
3 changed files with 6 additions and 6 deletions

View File

@@ -181,14 +181,14 @@ private int getEndOfColumnPosition(int start, string content) {
min(string name, int cand |
exists(TNamedColumn(name)) and
cand = content.indexOf(name + ":") and
cand > start
cand >= start
|
cand
)
or
not exists(string name |
exists(TNamedColumn(name)) and
content.indexOf(name + ":") > start
content.indexOf(name + ":") >= start
) and
result = content.length()
}