Skip to content

Commit 121b3f6

Browse files
committed
QLSpec:Allow setliterals withing inrange terms
1 parent 5473162 commit 121b3f6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/codeql/ql-language-reference/ql-language-specification.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,9 +1530,10 @@ A range check has the following syntax:
15301530

15311531
::
15321532

1533-
inrange ::= expr "in" range
1533+
inrange ::= expr "in" (range | setliteral)
15341534

1535-
The formula is equivalent to ``expr "=" range``.
1535+
1536+
The formula is equivalent to ``expr "=" range`` or ``expr "=" setliteral``.
15361537

15371538
Calls
15381539
~~~~~
@@ -2131,7 +2132,7 @@ The complete grammar for QL is as follows:
21312132

21322133
instanceof ::= expr "instanceof" type
21332134

2134-
inrange ::= expr "in" range
2135+
inrange ::= expr "in" (range | setliteral)
21352136

21362137
call ::= predicateRef (closure)? "(" (exprs)? ")"
21372138
| primary "." predicateName (closure)? "(" (exprs)? ")"

0 commit comments

Comments
 (0)