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

Abrase

by KHN190 ST3

Sublime Text syntax for the Abrase language

Details

  • 0.3.0
  • github.​com
  • github.​com
  • 3 months ago
  • 47 minutes ago
  • 4 months ago

Installs

  • Total 28
  • Win 15
  • Mac 6
  • Linux 7
Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6
Windows 0 0 1 0 0 0 0 0 0 0 1 0 1 1 0 1 0 2 0 0 0 1 0 0 0 1 0 0 0 0 0 0 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 1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1
Linux 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 2 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

Abrase for Sublime Text

Syntax highlighting and a build system for the Abrase language (.abe).

Install

Package Control

In Sublime Text, cmd + P, search for Abrase.

Manual

git clone https://github.com/KHN190/Abrase-sublime \
  "$HOME/Library/Application Support/Sublime Text/Packages/Abrase"

(Adjust path for Linux / Windows. Restart Sublime Text.)

Build system

Tools → Build System → Abrase, then:

  • Build (cmd+B) — abrase check; errors are clickable (parsed from the at line N, col N output).
  • Build With… (cmd+shift+B) — Run, Run (debug) (--debug), Disasm, Explain.

Needs the abrase CLI on PATH.

Coverage

  • // line and /* */ block comments
  • string literals with {expr} interpolation, char literals, escape sequences
  • decimal / hex / binary integer and float literals
  • all keywords: handle, resume, throw, region, exn, return, use, static, op, alias, effect, …
  • attributes: @derive, @export, @copy, @move, @share, …
  • builtin types (Int, Float, Bool, String, Unit, Char)
  • capitalized identifiers as types / variant constructors
  • declaration name highlighting for fn, type, effect, trait
  • operators: arithmetic, comparison, logical, bitwise (^, <<, >>), range (.., ..=), :: path separator

License

MIT