mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-24 23:06:43 +00:00
Corrected typo.
Signed-off-by: Aingeru <aingeru.develop@gmail.com>
This commit is contained in:
parent
2bda10fabb
commit
6dfbdc5f4b
4
main.py
4
main.py
@ -553,8 +553,8 @@ class TodoParser(object):
|
|||||||
def _get_language_details(self, language_name, attribute, value):
|
def _get_language_details(self, language_name, attribute, value):
|
||||||
"""Try and get the Markdown language and comment syntax
|
"""Try and get the Markdown language and comment syntax
|
||||||
data based on a specified attribute of the language."""
|
data based on a specified attribute of the language."""
|
||||||
extensions = [ex.lower() for ex in self.languages_dict[language_name][attribute]]
|
attributes = [at.lower() for at in self.languages_dict[language_name][attribute]]
|
||||||
if value.lower() in extensions:
|
if value.lower() in attributes:
|
||||||
for syntax_details in self.syntax_dict:
|
for syntax_details in self.syntax_dict:
|
||||||
if syntax_details['language'] == language_name:
|
if syntax_details['language'] == language_name:
|
||||||
return syntax_details['markers'], self.languages_dict[language_name]['ace_mode']
|
return syntax_details['markers'], self.languages_dict[language_name]['ace_mode']
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user