1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
//! The semantic-token legend's names: the single source for the language
//! server's legend and for the editor contract (`cargo xtask editor-contract`).
//!
//! **Array order is the wire encoding** (clients index into these arrays):
//! entries are append-only, never reordered, and `bynk-lsp`'s
//! `legend_is_frozen` test pins them. Token types are standard where faithful
//! (`type`, `function`) and custom for the Bynk-distinctive kinds
//! (`capability`, `service`, `agent`, `provider`). They live here, a leaf
//! crate with no LSP dependency, so tooling that only needs the names does not
//! link the language server.
/// The token types, in wire order.
pub const TOKEN_TYPES: & = &;
/// The token modifiers, in wire order (bit 0 first).
pub const TOKEN_MODIFIERS: & = &;
/// The LSP-standard token types an editor extension does NOT redeclare: VS Code
/// provides and themes them. Every other entry of [`TOKEN_TYPES`] is
/// Bynk-custom and must be declared (and scope-mapped) by the extension.
pub const STANDARD_TYPES: & = &;
/// The LSP-standard token modifiers, likewise.
pub const STANDARD_MODIFIERS: & = &;