v0.2.0 — Initial release
Initial public release of @1c-syntax/codemirror-lang-bsl: CodeMirror 6 language support for 1C:Enterprise (BSL) / OneScript with embedded SDBL query language highlighting.
What's included
- BSL grammar (Lezer): module-level declarations, procedures and functions (incl.
АСИНХ), variable declarations, control flow (Если/Пока/Для/Попытка), expressions with proper precedence, compiler directive annotations (&НаКлиентеetc.), preprocessor directives (#Если/#Иначе/#КонецЕсли/#Область/#Использовать), regions, labels and goto, line and doc comments (//////), string literals (single-line and multi-line with|continuation), date literals. - SDBL grammar: ~100 keywords across 8 categories (statement / operator / function / type / metadata-object / virtual-table / field + literals), Russian and English variants recognised identically.
- parseMixed integration: query string literals starting with
ВЫБРАТЬ/SELECT/УНИЧТОЖИТЬ/DROPget an SDBL overlay tree, so the query body lights up with category-specific colours alongside the surrounding BSL. - styleTags mapped from
1c-syntax/bsl-language-serverSemanticTokensProvider — decorators for annotations, namespaces for#Область/#Использовать/ SDBL metadata-object roots, macros for preprocessor directives, separate tags for control flow / definition keywords / boolean / null / operators / etc.
Upstream references pinned
| Project | Commit |
|---|---|
1c-syntax/bsl-parser |
a30f8169 (v0.34.1) |
1c-syntax/vsc-language-1c-bsl |
30e6c799 (v1.33.1) |
1c-syntax/bsl-language-server |
be49fcbf (develop) |
Demo
https://1c-syntax.github.io/codemirror-lang-bsl/
Install
npm install @1c-syntax/codemirror-lang-bslLimitations
See README → Limitations.