code review

This commit is contained in:
Miguel Palhas 2024-10-08 16:34:53 +01:00
parent b2a9899083
commit a33cb4190b

View File

@ -662,7 +662,7 @@ class TodoParser(object):
if value.lower() in attributes:
for syntax_details in self.syntax_dict:
if syntax_details['language'] == language_name:
# TODO: this is a hotfix to make it temporarily work for solidity regardless of linguist's lack of support (ace_mode == 'text')
# TODO: this is a hotfix to make it temporarily work for solidity. Currently using it in my own project. happy to implement a proper solution if possible
if language_name == "Solidity":
return syntax_details['markers'], "solidity"
return syntax_details['markers'], self.languages_dict[language_name]['ace_mode']