Skip to content

Instantly share code, notes, and snippets.

@petabyt
Last active December 5, 2021 18:50
Show Gist options
  • Save petabyt/aef8a1c969d95ca629f0221bbedc1e9a to your computer and use it in GitHub Desktop.
Save petabyt/aef8a1c969d95ca629f0221bbedc1e9a to your computer and use it in GitHub Desktop.
micro editor skript syntax file yaml
# Skript micro yaml
filetype: sk
detect:
filename: "\\.sk$"
rules:
# clashes with execute command...
- identifier: ":"
- statement: "\\b(while|function|if|else|loop|)\\b"
- statement: "\\b(set|send|stop|return|make|cancel)\\b"
- statement: "\\b(message|broadcast|play)\\b"
- constant.number: "\\b[0-9]+\\b"
- type.extended: "arg-[0-9]"
- symbol.brackets: "[(){}]|\\[|\\]"
- constant.string: "%(.)*%"
- constant.string: "\"(.|[^\"])*\""
# Work with skib
- comment: "# .*"
- preproc: "^[[:space:]]*#[[:space:]]*(define|include|ifdef|endif)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment