Lyric Language Support for VSCode
Official VSCode extension providing comprehensive syntax highlighting and language configuration for the Lyric programming language (.ly files).
Features
Syntax Highlighting
- Keywords:
def, class, var, int, str, flt, god, bin, rex, pyobject, None, return
- Control Flow:
if, else if, else, end, given, for, done, try, catch, finally, fade, raise, importpy, break, continue
- Logical Operators:
and, or, not, in, as
- Built-in Functions:
print, input, int, float, str, len, range, type, isinstance, open, regex, append, keys, values
- Literals: Numbers, strings (single and double quotes), boolean values (
true, false, True, False)
- Regex Patterns: Constructor-based syntax
regex("/pattern/") with proper highlighting
- Comments:
# style comments
- Operators: Arithmetic, comparison, and assignment operators
- Special Symbols:
+++, self
Language Configuration
- Bracket Matching: Automatic matching for
{}, (), [], and Lyric-specific pairs (class/+++, try/fade, given/done, for/done, if/end)
- Auto-closing Pairs: Automatic closing of quotes and brackets
- Code Folding: Foldable blocks for
class, try, given, for, and if statements
- Word Pattern: Proper identifier recognition for Lyric variables and functions
Installing the Lyric VSCode Extension
Option 1: Install from Source Directory
- Open the extension folder in VS Code (the one containing
package.json).
- Press F5 or go to Run → Start Debugging.
- A new Extension Development Host window will open with the extension loaded.
- Test and verify functionality within that window.
Option 2: Install from VSIX File
- Open VS Code and go to the Extensions sidebar (
Ctrl + Shift + X).
- Click the ⋮ (menu) icon in the top-right corner.
- Select "Install from VSIX…".
- Choose your built
.vsix file (e.g., lyric-lang-0.6.0.vsix).
- Wait for the success message, then reload VS Code if prompted.
Version
0.6.4 - Updated for Lyric 0.6.4 with comprehensive language support including:
- Constructor recognition (
def ClassName())
- Exception type binding (
catch IndexError as e)
- Loop control (
break, continue)
- Shebang support
- Function return type specification
- Regex constructor syntax (
regex("/pattern/"))
- Enhanced syntax highlighting and language configuration
| |