Skip to content

Commit 2b3768c

Browse files
k-schnickmannGerit Wagner
authored andcommitted
update check_precedence
1 parent 862f51b commit 2b3768c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

search_query/linter_pubmed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def _check_precedence(self, index: int, tokens: list) -> None:
172172
if token.type == TokenTypes.PARENTHESIS_CLOSED:
173173
i += 1
174174
if token.type == TokenTypes.LOGIC_OPERATOR and i == 0:
175-
for operator_group in [{"AND", "&"}, {"OR", "|"}]:
175+
for operator_group in [{"AND", "&"}, {"OR", "|"}, {"NOT"}]:
176176
if tokens[index].value.upper() in operator_group:
177177
if token.value.upper() not in operator_group:
178178
self.parser.add_linter_message(

0 commit comments

Comments
 (0)