Skip to content

gwenzek/sublime-zig-language

 
 

Repository files navigation

Zig Language

Reboot of https://github.com/ziglang/sublime-zig-language Only supporting Sublime Text 4 and zig>=0.11

Local Development

Clone or copy this repository to your local Sublime Text folder. e.g.

git clone https://github.com/ziglang/sublime-zig-language.git "/Users/$USER/Library/Application Support/Sublime Text 3/Packages/Zig Language"

For working on ST3+ support, you can edit the .sublime-syntax directly. But installing PackageDev will provide some syntax highlighting. You can run the tests in syntax_test.zig with the "Syntax Tests" builtin build system. Sublime Text will automatically reload the syntax on save. If you have a big Zig project open this can make your CPU spin while Sublime reindex everything.

For working on the old .tmLanguage syntax, work on the Zig.YAML-tmLanguage file. Important Github Linguist's source of truth is Zig.YAML-tmLanguage. Work on Zig.YAML-tmLanguage the use PackageDev command: Convert (YAML, JSON, PList) to... to generate the .tmLanguage. Sublime Text should also automatically reload the plugin, but doesn't have unit tests for tmLanguage.

Build System

The included Sublime Text build system comes with a few options for configuration and defining your own build targets. See here for more information.

LICENSE

Provided under an MIT License

About

Zig language support for Sublime Text

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Zig 57.3%
  • Python 42.7%