Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Take comments from syntax yamls #13

Open
MarcusE1W opened this issue Oct 2, 2017 · 1 comment
Open

Suggestion: Take comments from syntax yamls #13

MarcusE1W opened this issue Oct 2, 2017 · 1 comment

Comments

@MarcusE1W
Copy link

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?

@sum01
Copy link
Contributor

sum01 commented Feb 2, 2018

I don't think this is possible unless the plugin gets moved into Micro's included plugins, since the syntax files are compiled into the Micro binary.

Althgouh I guess if you added Micro as a submodule, then used a YAML parser for Lua, did a bunch of work, it might work...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants