Elk
Language support for the Elk programming language in Visual Studio Code.
Features
- Syntax highlighting for Elk source based on the language lexer and grammar
- Language configuration for comments, brackets, auto-closing pairs, and indentation
- File icons for Elk files in the explorer
Recognized file types
| Extension |
Role |
.elk |
Elk source |
.elh |
Elk headers |
.elt |
Elk templates |
.elk.test |
Elk tests |
Highlighting covers
- Keywords, modifiers, and declaration forms (
def, class, module, mixin, …)
- Comments (
//, #, /* */, #[ ]#) and doc comments (/** **/, ##[ ]##)
- Strings (interpolated and raw), characters, regex literals, and symbols
- Numbers (including sized and non-decimal literals)
- Constants (
Foo, $$foo, §foo), instance variables (@foo), and identifiers
- Operators and special collection literals (
\w[…], ^s[…], %x[…], …)
Requirements
None. Open an Elk file and the extension activates automatically.
Development
- Open this folder in VS Code or Cursor
- Press
F5 to launch an Extension Development Host
- Open a
.elk / .elh file and verify highlighting and language features
License
MIT
| |