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

Zig Language

by ziglang ALL

Zig language support for Sublime Text

Details

Installs

  • Total 923
  • Win 427
  • Mac 177
  • Linux 319
Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29
Windows 0 1 4 0 2 0 2 2 2 1 0 0 1 0 1 2 1 0 0 0 0 2 1 1 0 2 2 1 4 0 0 0 2 2 3 2 1 1 0 2 1 0 2 0 0
Mac 1 0 0 0 1 1 0 0 1 1 1 0 0 0 0 1 0 0 0 0 2 1 0 1 0 1 0 0 0 0 0 0 1 1 3 0 0 0 0 0 1 0 1 0 0
Linux 5 0 0 0 2 3 0 1 1 0 0 2 2 0 2 0 0 0 0 8 2 0 1 1 0 0 0 2 2 0 1 0 3 0 1 0 2 0 0 1 0 1 1 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.

TextMate Installation

This language is also compatible with TextMate's .tmBundle format. To install in TextMate clone or download this repository. Then rename the repository directory to Zig.tmBundle and double-click it to install it into TextMate.

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