mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-22 22:06:43 +00:00
code review
This commit is contained in:
parent
b2a9899083
commit
a33cb4190b
2
main.py
2
main.py
@ -662,7 +662,7 @@ class TodoParser(object):
|
|||||||
if value.lower() in attributes:
|
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:
|
||||||
# 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":
|
if language_name == "Solidity":
|
||||||
return syntax_details['markers'], "solidity"
|
return syntax_details['markers'], "solidity"
|
||||||
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