Skip to content
Zig language support for Sublime Text
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Comments.YAML-tmPreferences
Comments.tmPreferences
LICENSE
README.md
Zig.YAML-tmLanguage
Zig.sublime-build
Zig.tmLanguage
samples.zig

README.md

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.

Edit the YAML entry and use the Convert (YAML, JSON, PList) to... command to generate the other entries.

Copy the generated file to your local sublime text folder. e.g.

cp Zig.tmLanguage "/Users/jfo/Library/Application Support/Sublime Text 3/Packages/User/Zig.tmLanguage"

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

LICENSE

Provided under an MIT License

You can’t perform that action at this time.