Skip to content

Latest commit

 

History

History
93 lines (64 loc) · 1.35 KB

File metadata and controls

93 lines (64 loc) · 1.35 KB

SML Syntax for VSCode (NoCode)

VSCode syntax extension for SML (Simple Markup Language) used by NoCodeGodot (SMLCore / NoCodeRunner).

Features

  • Language registration for .sml
  • Syntax highlighting for:
    • SML node names (Window, Column, Panel, ...)
    • property keys (text:, layoutMode:, ...)
    • strings, escapes, booleans, integers, floats
    • enum-like values used by runtime schema (e.g. layout, fixed, document, open, saveAs)
    • comments (//, /* ... */)

No language server is required.

Example

Window {
  title: @Strings.caption, "NoCode"
  width: 1024
  height: 768
  scaling: fixed
  layoutMode: app

  Column {
    spacing: 8
    Label {
      text: "Hello SML"
    }
  }
}

Local test release (.vsix)

Prerequisites:

  • Node.js + npm
  • VSCode CLI (code in PATH)

Install dependencies:

npm install

Build VSIX:

npm run package

Install latest VSIX locally:

npm run install-local

Publish scripts

Visual Studio Marketplace

Set token:

export VSCE_PAT="<your-marketplace-token>"

Publish:

npm run publish:marketplace

Open VSX

Set token:

export OVSX_PAT="<your-openvsx-token>"

Publish:

npm run publish:openvsx

Part of NoCode ecosystem

See: NoCodeGodot