Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.17 KB

README.md

File metadata and controls

44 lines (30 loc) · 1.17 KB

CuffScript Syntax Highlighting VSCode Extension

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"))

Features

  • Colours .cuff files: 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:...).
  • Sets up comments (note:), brackets and quotes for the language.

Install

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

License

Apache License 2.0, like CuffScript. See LICENSE.

Note

If CuffScript's syntax or keywords change, this extension will change as well.