Skip to content

Commit

Permalink
Remove digits yaml building
Browse files Browse the repository at this point in the history
  • Loading branch information
boryanagoncharenko committed Sep 18, 2024
1 parent 85491ba commit 01d7a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion highlighting/generate-rules-highlighting.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def get_digits(keywords, keywords_ref):
key = f'd{d}'
if keywords_ref[key] not in digits:
digits.append(keywords_ref[key])
if keywords[key] not in digits:
if key in keywords and keywords[key] not in digits:
digits.append(keywords[key])

return "".join(digits)
Expand Down

0 comments on commit 01d7a70

Please sign in to comment.