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

Zig Language

by ziglang ALL

Zig language support for Sublime Text

Details

Installs

  • Total 2K
  • Win 742
  • Mac 340
  • Linux 585
May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23
Windows 0 0 2 1 3 2 3 2 7 2 1 4 5 1 2 6 0 2 1 1 0 2 5 1 3 2 0 0 2 0 2 4 0 0 4 0 2 2 2 0 2 3 1 1 2 4
Mac 0 0 0 1 1 0 0 0 0 3 0 0 0 1 0 0 0 2 0 0 1 1 0 0 0 1 0 0 0 3 1 0 0 1 0 1 0 2 0 0 3 2 0 3 0 2
Linux 0 1 0 0 1 0 1 3 1 0 0 0 0 0 0 1 0 0 0 0 2 1 2 0 1 0 2 2 1 2 0 0 1 0 1 0 0 1 1 0 3 1 1 2 2 8

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