Skip to content

feat: add 1C:Enterprise (BSL/SDBL) syntax highlighting - #1853

Open
zheltov86 wants to merge 1 commit into
XiaomiMiMo:mainfrom
zheltov86:feature/add-1c-syntax-highlighting
Open

feat: add 1C:Enterprise (BSL/SDBL) syntax highlighting#1853
zheltov86 wants to merge 1 commit into
XiaomiMiMo:mainfrom
zheltov86:feature/add-1c-syntax-highlighting

Conversation

@zheltov86

Copy link
Copy Markdown

Summary

Adds Tree-sitter parser configurations for 1C:Enterprise language syntax highlighting in the TUI editor.

Changes

  • BSL grammar (.bsl, .os files) — 1C source modules
  • SDBL grammar (.sdbl files) — 1C query language

Implementation

Files changed

  • \packages/opencode/parsers-config.ts\ — added parser entries for BSL and SDBL

Testing

  1. Build MiMoCode from source
  2. Open a .bsl\ or .os\ file
  3. Verify syntax highlighting works for keywords, functions, strings, numbers, comments

Notes

This is a community contribution. The WASM files were built from the upstream grammar and hosted separately since upstream doesn't publish pre-built WASM assets.

If accepted, consider requesting upstream (alkoleft/tree-sitter-bsl) to include WASM in their releases for easier maintenance.

Add Tree-sitter parser configurations for 1C:Enterprise language:
- BSL grammar for source modules (.bsl, .os)
- SDBL grammar for query language (.sdbl)

Uses pre-built WASM files from tree-sitter-bsl v0.1.7 and
highlights.scm queries from alkoleft/tree-sitter-bsl.

Closes #XXX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant