diff --git a/main.py b/main.py index 486a6b0..2abd73a 100644 --- a/main.py +++ b/main.py @@ -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']