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

Vibescript

by mgomes ST4

Sublime Text package for Vibescript

Details

  • 1.1.0
  • github.​com
  • github.​com
  • 4 months ago
  • 25 minutes ago
  • 4 months ago

Installs

  • Total 22
  • Win 19
  • Mac 3
  • Linux 0
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 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19
Windows 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 3 0 1 0 0 1 0 0 0 0 0 0 0 2 0 0 1 0 0 0
Mac 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 0 0 0 0 0 0 0 0 0 0 0 1 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

Vibescript package for Sublime Text

Adds Vibescript syntax support to Sublime Text.

Features

  • Syntax highlighting for .vibe files, including strings with interpolation, regex literals, %w[...] / %i(...) arrays, symbols, enums, typed signatures, and directive comments
  • Comment toggling and indentation rules
  • Symbol indexing for classes, methods, and enums

Language server

Diagnostics, hover documentation, and completions live in the separate LSP-vibescript package, so this package works standalone for highlighting. Install LSP-vibescript alongside Sublime's LSP package to add language-server features.

Development install

  1. Clone this repo into ~/Library/Application Support/Sublime Text/Packages/ as Vibescript:
git clone https://github.com/mgomes/sublime-vibescript.git \
     "$HOME/Library/Application Support/Sublime Text/Packages/Vibescript"
  1. Restart Sublime Text

The syntax tests expect the package to be installed as Vibescript.

Syntax tests

Open tests/syntax_test_vibescript.vibe and run Build (⌘B) to execute the assertions in-editor. CI runs the same tests with Sublime's headless syntax_tests binary.

Known limitations

Regex literals are detected with a heuristic (a / that does not follow a value and is not followed by a space or =), so half-spaced division like a /b may highlight as a regex. a / b and a/b highlight correctly.