Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SMS Syntax for VSCode (NoCode)

VSCode syntax extension for SMS (Simple Multiplatform Script) used by NoCodeGodot (SMSCore).

Features

  • Language registration for .sms
  • Syntax highlighting for:
    • keywords (fun, var, if, else, when, while, for, return, on, ...)
    • language builtins (super(...))
    • constants (true, false, null)
    • operators and punctuation
    • function calls
    • event handlers (on target.event(...) { ... })
    • strings with interpolation ($name, ${expr})
    • comments (//, /* ... */)

No language server is required.

Example

fun ready() {
  log.success("Project loaded for $user")
}

fun CodeEditOnSave(codeEdit) {
  if (codeEdit.Value == "") {
    log.warn("No file selected.")
    return
  }

  fs.writeText(codeEdit.Value, codeEdit.Text)
  log.success("Saved ${codeEdit.Value}")
}

on mainWindow.sizeChanged(w, h) {
  log.info(w)
  super(w, h)
}

on main.resize() {
  super()
}

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

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors