Repository navigation
Releases: 17451k/sublime-racket
Releases · 17451k/sublime-racket
Release list
2.3.0
This release adds the following changes:
- Rhombus support: syntax highlighting for
.rhmfiles, 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 fmtstyle and closing brackets are outdented automatically.
2.2.0
This release adds the following changes:
Racket: Look Up Documentationcommand searches for the selection or for the identifier at the cursor usingraco docsand 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_executablesetting when the active file is not a Racket file.
2.1.0
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 -isession. - 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:
- The readme has a recommended setup section with a ready LSP settings
snippet: https://github.com/17451k/sublime-racket#readme
2.0.0
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
racketmodule 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