Corrected typo.

Signed-off-by: Aingeru <aingeru.develop@gmail.com>
This commit is contained in:
Aingeru 2024-03-13 12:18:59 +01:00
parent 2bda10fabb
commit 6dfbdc5f4b

View File

@ -553,8 +553,8 @@ class TodoParser(object):
def _get_language_details(self, language_name, attribute, value):
"""Try and get the Markdown language and comment syntax
data based on a specified attribute of the language."""
extensions = [ex.lower() for ex in self.languages_dict[language_name][attribute]]
if value.lower() in extensions:
attributes = [at.lower() for at in self.languages_dict[language_name][attribute]]
if value.lower() in attributes:
for syntax_details in self.syntax_dict:
if syntax_details['language'] == language_name:
return syntax_details['markers'], self.languages_dict[language_name]['ace_mode']