My suggestion is to avoid to define the comments per language in this plugin separately.
I don't know how practical it is, but would it be possible to read the file type and corresponding comment style from the yaml file that defines the info for syntax-highlighting?
The comment style should also be in the syntax highlighting rules data structures while micro is running, maybe they can be taken from there?
My suggestion is to avoid to define the comments per language in this plugin separately.
I don't know how practical it is, but would it be possible to read the file type and corresponding comment style from the yaml file that defines the info for syntax-highlighting?
The comment style should also be in the syntax highlighting rules data structures while micro is running, maybe they can be taken from there?