Closed haze closed 3 years ago
just to make sure, but have you tried going using nvm, the Tools > Developer > New Syntax File from Textmate Syntax Definition (YAML).tmLanguage
with theZig.YAML-tmLanguage
file open?main
field in the the YAML-tmLangauge file makes the conversion currently impossible. i will push a fix later today.
i added the file but some work is needed as 14 of the patterns are incompatible with the sregex engine. also are you aware of a way to generate .sublime-syntax
files from .YAML-tmLanguage
files or vice-versa?
I was unable to find a tool / solution for converting that file, sorry.
no problem. thanks for looking!
@emekoi Would you be interested if I added a few enhacement to the .sublime-syntax ?
Things I'd want to do:
const WordCount = std.HashMap([]const u8, i32)
entity.name
(see guidelines)=>
operatorFor context I'm the original author of the C# syntax (it has been improved a lot over the years by others).
This will make the syntax diverge from the VS Code one, but I think it will be for the best.
@gwenzek sure go ahead! on a side note, would it be possible to backport any of those changes to the .*-tmLanguage
syntax files?
would it be possible to backport any of those changes to the .*-tmLanguage syntax files?
I guess for the simple one like adding operators it will be doable, but for the rest I'm not sure what's the point. A syntax is only useful in the context of an ecosystem. The scopes name must match the scopes used by theme creators. Sublime Text do have guidelines about those, but they have some differences with other editor ecosystems.
solved by #45.
I am unable to convert the
.tmLanguage
files to.sublime-syntax
with my latest build of sublime text. Is anyone else able to do the conversion so I can use the highlighter with things like Zola?