|
2 | 2 |
|
3 | 3 | See also: [CONTRIBUTING.md](../CONTRIBUTING.md) | [docs/architecture.md](../docs/architecture.md) | [scripts/README.md](../scripts/README.md) |
4 | 4 |
|
5 | | -Six tree-sitter grammars for the supported languages. Four are used by the LSP server for parsing (formatting, symbols, etc.), two are highlight-only for external editors. |
| 5 | +Six tree-sitter grammars for the supported languages. Four back full LSP providers (formatting, symbols, etc.); the other two (MSG, TRA) have no provider but are parsed by the server to surface parse errors as diagnostics, and provide highlighting for external editors. |
6 | 6 |
|
7 | | -| Grammar | Language | Used By | |
8 | | -| ------------- | ------------------------------- | -------------------------------------------------------- | |
9 | | -| `fallout-ssl` | Fallout SSL (.ssl, .h) | LSP provider (format, symbols, definition, rename, etc.) | |
10 | | -| `weidu-baf` | WeiDU BAF (.baf) | LSP provider (format, folding) | |
11 | | -| `weidu-d` | WeiDU D (.d) | LSP provider (format, symbols, definition, folding) | |
12 | | -| `weidu-tp2` | WeiDU TP2 (.tp2/.tpa/.tph/.tpp) | LSP provider (format, symbols, definition, rename, etc.) | |
13 | | -| `fallout-msg` | Fallout MSG (.msg) | Highlighting only (Neovim, Helix, Zed, Emacs) | |
14 | | -| `weidu-tra` | WeiDU TRA (.tra) | Highlighting only (Neovim, Helix, Zed, Emacs) | |
| 7 | +| Grammar | Language | Used By | |
| 8 | +| ------------- | ------------------------------- | ------------------------------------------------------------------------ | |
| 9 | +| `fallout-ssl` | Fallout SSL (.ssl, .h) | LSP provider (format, symbols, definition, rename, etc.) | |
| 10 | +| `weidu-baf` | WeiDU BAF (.baf) | LSP provider (format, folding) | |
| 11 | +| `weidu-d` | WeiDU D (.d) | LSP provider (format, symbols, definition, folding) | |
| 12 | +| `weidu-tp2` | WeiDU TP2 (.tp2/.tpa/.tph/.tpp) | LSP provider (format, symbols, definition, rename, etc.) | |
| 13 | +| `fallout-msg` | Fallout MSG (.msg) | Server parse-error diagnostics; highlighting (Neovim, Helix, Zed, Emacs) | |
| 14 | +| `weidu-tra` | WeiDU TRA (.tra) | Server parse-error diagnostics; highlighting (Neovim, Helix, Zed, Emacs) | |
15 | 15 |
|
16 | 16 | ## Building |
17 | 17 |
|
@@ -47,8 +47,10 @@ WASM files are copied to `server/out/` by `scripts/build-base-server.sh` during |
47 | 47 | - `tree-sitter-baf.wasm` -- WeiDU BAF grammar |
48 | 48 | - `tree-sitter-weidu_d.wasm` -- WeiDU D grammar |
49 | 49 | - `tree-sitter-weidu_tp2.wasm` -- WeiDU TP2 grammar |
| 50 | +- `tree-sitter-fallout_msg.wasm` -- Fallout MSG grammar (parse-error diagnostics) |
| 51 | +- `tree-sitter-weidu_tra.wasm` -- WeiDU TRA grammar (parse-error diagnostics) |
50 | 52 |
|
51 | | -The MSG and TRA grammars are not bundled (no LSP provider uses them). They are built for external editors that install tree-sitter grammars natively. |
| 53 | +The MSG and TRA grammars ship to `server/out/` for parse-error diagnostics, but are not copied to the `@bgforge/format` CLI bundle (`format/out/`) since their formatters are string-based, not tree-sitter. They are also built for external editors that install tree-sitter grammars natively. |
52 | 54 |
|
53 | 55 | ## Highlight Queries |
54 | 56 |
|
|
0 commit comments