Syntax highlighting vscode extension for CuffScript, a lightweight scripting language with readable, natural-language-like syntax.
use DLC:string
class Greeter do:
str name = "World"
func greet(str person) do:
return f"Hello, {person}!"
end
end
Greeter g = Greeter()
note: prints Hello, Ann!
print(g.greet("Ann"))
- Colours
.cufffiles: keywords, types, functions, classes, numbers, comments and strings, including f-strings. - Colours pattern literals (
p"[num]+"i) down to their tokens, groups, repeats and flags. - Knows the built-in functions and those of the libraries (
use DLC:...) as of CuffScript 6.4. - Sets up comments (
note:), brackets and quotes for the language.
Download the .vsix file, then in VS Code open the Extensions view, choose the ... menu and Install from
VSIX.... Or from a terminal:
code --install-extension cuffscript-v[version number].vsix
Apache License 2.0, like CuffScript. See LICENSE.
If CuffScript's syntax or keywords change, this extension will change as well.