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

Zig Language

by ziglang ALL

Zig language support for Sublime Text

Details

Installs

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

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. However, see Zig.tmbundle for dedicated TextMate support.

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/.

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