Skip to content

Commit 73bc35c

Browse files
committed
docs(expression.py): correct grammar definition of lexer
1 parent 66eff85 commit 73bc35c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/_pytest/mark/expression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
expression: expr? EOF
66
expr: and_expr ('or' and_expr)*
77
and_expr: not_expr ('and' not_expr)*
8-
not_expr: 'not' not_expr | '(' expr ')' | ident ( '(' name '=' value ( ', ' name '=' value )* ')')*
8+
not_expr: 'not' not_expr | '(' expr ')' | ident ('(' name '=' value ( ', ' name '=' value )* ')')?
99
1010
ident: (\w|:|\+|-|\.|\[|\]|\\|/)+
1111

0 commit comments

Comments
 (0)