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

Re​Script

by rescript-lang ST3

Official Sublime Text plugin for ReScript.

Details

Installs

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

Readme

Source
raw.​githubusercontent.​com

rescript-sublime

The official Sublime Text plugin for ReScript.

Prerequisite

  • >=0.0.9 requires bs-platform >=8.3.0 installed locally in your project.
  • 0.0.8 requires bs-platform 8.2.0 installed locally in your project.

Install

Get it from https://packagecontrol.io/packages/ReScript

Features

  • Syntax highlighting (.res, .resi).
  • Formatting: Command Palette (cmd-shift-p) -> ReScript: Format File. caveats:
    • Currently requires the file to be part of a ReScript project, i.e. with a bsconfig.json.
    • Cannot be a temporary file.
  • Snippets to ease a few syntaxes:
    • external features such as @bs.module and @bs.val
    • try, for, etc.

Upcoming Features

  • Syntax errors diagnosis (only after formatting).
  • Formatting of temporary files
  • Formatting of files outside of a ReScript project root
  • Type diagnosis

Config

  • Command Palette -> UI: Select Color Scheme. Use Mariana for best effects (it'll be the new default Sublime Text theme!). Mariana colors tokens distinctively (and still pleasantly) enough for module and variant to be visually distinct despite both being capitalized. Gotta have accurate highlighting!

Develop

Thanks for your interest in contributing!

Test Syntax

Docs at https://www.sublimetext.com/docs/3/syntax.html and https://www.sublimetext.com/docs/3/scope_naming.html

Tldr (documented in first link):

  • Change ReScript.sublime-syntax
  • Open syntax_test.res
  • Command Palette -> Build With: Syntax Tests

For more grammar inspirations, check ST's own JavaScript grammar.