ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Zig Language

by ziglang ST2/ST3

Zig language support for Sublime Text

Details

Installs

  • Total 501
  • Win 239
  • OS X 106
  • Linux 156
Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3
Windows 2 0 1 1 2 0 2 1 0 0 2 1 0 0 0 1 2 1 1 2 2 0 0 1 2 2 1 0 1 2 2 0 0 2 2 0 0 1 0 1 2 1 0 0 0 1
OS X 0 0 0 0 2 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 1 1 0 1 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0
Linux 0 0 0 0 0 1 1 0 0 1 1 0 0 0 1 0 4 1 1 0 1 0 0 0 0 0 0 1 1 0 2 3 0 0 0 0 1 1 2 0 0 0 0 0 0 1

Readme

Source
raw.​githubusercontent.​com

Zig Language

Syntax highlighting for Zig.

This repository serves both as the grammar for github/linguist (Github's site wide syntax highlighting) and as a standalone Sublime Text package.

The source of truth is Zig.YAML-tmLanguage. This file is read by linguist directly and used as the source to compile to Zig.tmLanguage using PackageDev from within Sublime. Do not edit Zig.tmLanguage directly.

Installation

Use Package control.

Or add Zig.tmLanguage to the packages directory. On OSX This is usually

~/Library/Application\ Support/Sublime\ Text\ 3/Packages/

But to find the path on your machine go to Preferences > Browse Packages from within Sublime Text.

Local Development

Install https://github.com/SublimeText/PackageDev.

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"

Edit the YAML entry and use the Convert (YAML, JSON, PList) to... command to generate the other entries. Sublime Text will automatically reload the plugin, showing changes in the build system, syntax highlighting, etc.

On Linux, this is located under ~/.config/sublime-text-3/.

LICENSE

Provided under an MIT License