strict-script strict-script

Packages

@strict-script/vscode

strict-script in VS Code and the editors built on it. The extension is a grammar, for the colours, and the language server of @strict-script/lsp, which it starts: what is refused where it is typed, the type under the cursor, and what may be written where the cursor is.

pnpm vscode
code --install-extension packages/vscode/dist/strict-script.vsix
extension/syntaxes/strict-script.tmLanguage.jsonThe grammar, a TextMate one: JetBrains editors and Sublime Text read it too
extension/language-configuration.jsonComments, brackets, what closes by itself, indentation
src/client.cjsStarts the language server with the first .sts file
test/editor/Run inside VS Code itself (pnpm vscode:editor): a refusal, a type under the cursor, what is offered after a .
scripts/build.mjsWrites dist/extension/ and dist/strict-script.vsix
test/grammar.test.tsThe grammar is declared, every pattern can be read, and the words of the language get their scope

See In the editor.

Esc

    Type a word of the language, a rule, a command: mut, extern, match-not-covered.