8
3
Fork
You've already forked sublime-zig-language
0
Zig language support for Sublime Text.
Zig 56.4%
Python 43.6%
Find a file
2025年11月28日 03:51:47 +01:00
Build Systems made build command more extensible 2021年07月24日 12:49:06 -05:00
Commands Cleanup fmt command ( #53 ) 2021年07月22日 20:39:45 -05:00
Menus fixed broken settings menu and added config options 2019年07月07日 14:56:31 -05:00
Preferences Convert symlink to copy of file to hopefully fix https://github.com/ziglang/sublime-zig-language/issues/34 2020年04月23日 06:08:26 -05:00
Settings actually use zig.executable config var 2021年07月24日 12:49:06 -05:00
Snippets Added test snippet 2020年06月03日 21:41:08 -05:00
Support Make compatible with TextMate 2020年04月14日 22:07:38 -05:00
Syntaxes add zon file recognition 2025年10月23日 22:53:47 +02:00
.travis.yml Travis build since Github actions doesnt seem to support accessability needed for osascript 2020年04月14日 22:07:38 -05:00
build.md updated README.md 2021年07月24日 12:49:06 -05:00
hello.zig Fix hello.zig 2020年06月03日 21:40:36 -05:00
info.plist Make compatible with TextMate 2020年04月14日 22:07:38 -05:00
info.yaml Make compatible with TextMate 2020年04月14日 22:07:38 -05:00
LICENSE add LICENSE 2018年01月26日 23:28:00 +01:00
README.md README: github -> codeberg 2025年11月28日 03:51:47 +01:00
Zig.py switched to ST3 apis for inline errors 2021年07月24日 12:49:06 -05:00

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://codeberg.org/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