Skip to content

Commit

Permalink
fix: dont raise NotAnIdentifier function (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhall88 committed Mar 8, 2023
1 parent 7b35c16 commit 932df73
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions snakefmt/parser/syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,7 @@ def validate_userule_syntax(self, snakefile: TokenIterator):
def validate_rulelike_syntax(self, snakefile: TokenIterator):
if not is_colon(self.token):
if self.token.type != tokenize.NAME:
raise NotAnIdentifierError(
self.line_nb, self.token.string, self.keyword_line
)
NotAnIdentifierError(self.line_nb, self.token.string, self.keyword_line)
self.keyword_line += f" {self.token.string}"
self.token = next(snakefile)
if not is_colon(self.token):
Expand Down

0 comments on commit 932df73

Please sign in to comment.