Joy
syntax highlighting for joy
Details
Installs
- Total 70
- Win 41
- Mac 23
- Linux 6
| Nov 24 | Nov 23 | Nov 22 | Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Sublime Joy
Joy templates syntax highlighting, see https://github.com/homobel/joy for details.
Supported by Sublime Text 4. The syntax extends the built-in HTML syntax (version: 2, extends),
so Sublime Text 3 is no longer supported.
Joy constructs, including @if/@each/@fn() {…} blocks, work in html content, between tag attributes
(<input @if a {disabled}>) and inside attribute values (class="tab @if a {current}").
Joy tokens are also highlighted inside <script>, <style>, style="…" and on*="…" attributes
(via the hidden syntaxes in Embeddings/). Only inline constructs are supported there:
@var, @!var, @(var), @fn(...), @import, @* comments *@ and @@ escapes;
@if/@each are highlighted as keywords, but their { } blocks keep the host language highlighting.
Colors
Joy variables use the standard variable.other scope, which most color schemes (including the default
Mariana) leave uncolored; the @ sigil (punctuation.definition.variable) and function calls are colored.
To give variable names their own color, use Preferences → Customize Color Scheme and add a rule, e.g.:
{
"rules": [
{ "scope": "variable.other.joy", "foreground": "var(orange)" }
]
}
Installation
Copy (or symlink) this folder to Packages/Joy (Preferences → Browse Packages…).
Tests
Open tests/syntax_test_joy.joy and run Tools → Build (Ctrl+B) to run the syntax tests.