mirror of
https://github.com/robonen/questlang.git
synced 2026-03-20 10:54:45 +00:00
QuestLang Syntax Highlighting
VS Code extension for syntax highlighting of QuestLang - a specialized language for creating interactive text quests.
Features
- ✨ Syntax highlighting for
.qlfiles - 🔤 Support for Russian keywords
- 💬 Comment highlighting (
//) - 🎨 Color highlighting for strings and numbers
- 🔧 Automatic bracket closing
- 📐 Automatic indentation
Supported Language Elements
Keywords
квест,цель,граф,узлы,начало,конецтип,описание,переходы,варианты,названиеначальный,действие,концовка
Syntax Elements
- Strings in double quotes:
"Text" - Numbers:
123,45.67 - Comments:
// this is a comment - Brackets:
{},[],() - Delimiters:
;,:,,
Code Example
квест MyQuest;
цель "Quest objective description";
граф {
узлы {
старт: {
тип: начальный;
описание: "Beginning of the adventure";
переходы: [выбор];
}
выбор: {
тип: действие;
описание: "What will you do?";
варианты: [
("Go right", правый_путь),
("Go left", левый_путь)
];
}
}
начало: старт;
}
конец;
Usage
After installing the extension, all files with .ql extension will be automatically recognized as QuestLang files with syntax highlighting.
License
MIT