Closed dannypsnl closed 1 year ago
Yes, that also confuse me once I find out there has a YAML. I think if keep YAML, maybe should ignore JSON, and generate JSON on deployment. After some read, I think YAML looks easier for maintaining.
And I also found some interesting:
there have duplicated define-syntax
...
Good point. Would you mind removing these duplicated values, and setting up the GitHub action to generate the json file automatically?
Sure, whats your command for yaml to json?
Probably some external tool; I did all of this such a long time ago that I unfortunately have no idea. We will need to find something suitable.
Ok, maybe I also do some research about conversion tool.
Actually, there about 1500 duplicates in that list
@Eugleo I finally find one, I think you might use https://github.com/pedro-w/vscode-tmlanguage
This plugin has a command Convert to tmLanguage JSON
can be triggered via shift + command + p
in vscode.
define-syntax-parser
).
I'm not sure whether it makes sense, but in the past I generated the
tmLanguage.json
file from the.yaml
file that's insyntaxes/src
. We should discuss whether it makes sense to use the yaml file, because if it does, it would be better to make the changes there and then just generate the json file from it to keep them both in sync. What do you think?