Skip to content

Releases: 17451k/sublime-racket

2.3.0

Choose a tag to compare

@17451k 17451k released this 12 Oct 12:22

This release adds the following changes:

  • Rhombus support: syntax highlighting for .rhm files, a build system, and automatic switching to the Rhombus syntax when a file starts with #lang rhombus.
  • Smart brackets: new lines after an open bracket are indented in the raco fmt style and closing brackets are outdented automatically.

2.2.0

Choose a tag to compare

@17451k 17451k released this 02 Oct 00:11

This release adds the following changes:

  • Racket: Look Up Documentation command searches for the selection or for the identifier at the cursor using raco docs and opens the result in the browser.
  • The syntax definitions are compatible with Sublime Text's new regex engine.
  • The Open REPL command now uses the racket_executable setting when the active file is not a Racket file.

2.1.0

Choose a tag to compare

@17451k 17451k released this 01 Oct 12:09

REPL integration, running in a Terminus terminal (install the Terminus
package first). All commands are in the command palette:

  • Racket: Open REPL starts a fresh racket -i session.
  • Racket: Run File in REPL saves the current file and starts a REPL inside
    its module.
  • Racket: Send Selection to REPL sends the selection, or the current line
    when nothing is selected.
  • Racket: Send Definition to REPL sends the top-level form at the cursor;
    forms inside module, module* and module+ count as top-level.
  • Racket: Send S-Expression to REPL sends the innermost form at the cursor,
    including any reader prefix such as ' or #'.

The send commands start a REPL if none is running. Set racket_executable
in the Racket syntax settings if racket is not on PATH.

Other changes:

2.0.0

Choose a tag to compare

@17451k 17451k released this 01 Oct 12:09

A complete rewrite of the package on the Sublime Text 4 syntax engine.
Current feature set:

Syntax highlighting

  • Racket: .rkt, .rktl and .rktd files.
  • Scribble: .scrbl files.
  • Every form, procedure and value exported by the racket module is
    recognised; the lists are generated from Racket itself.
  • @-expressions are understood anywhere in .rkt files (#lang at-exp).

Editing

  • Goto Symbol (Ctrl/Cmd+R) lists every defined function and struct.
  • Toggle Comment (Ctrl/Cmd+/) inserts "; "; block comment inserts #| |#.
  • Enter after an open bracket indents; a close bracket outdents.
  • Double-click selects whole identifiers such as string->list or null?.

Build system (Tools > Build With...)

  • Run, Test, Test Directory, Compile, Format (needs raco pkg install fmt),
    Expand, Check Requires.
  • Error locations in the output are clickable.
  • racket and raco must be on the PATH Sublime sees.

Please report highlighting problems, preferably with a minimal snippet:
https://github.com/17451k/sublime-racket/issues