pub fn register_rdf_lang<L, H>(
world: &mut World,
language_id: &'static [&'static str],
extensions: &'static [&'static str],
)Expand description
Register a language with the ECS world, handling all setup_world() boilerplate:
- Semantic token type registration in
SemanticTokensDict CreateEventobserver for file detection bylanguage_idor extension- Diagnostics system scheduling
- Basic semantic highlighting scheduling
Call language-specific setup (parsing, completion, code actions, etc.) after this function.
ยงType parameters
L: The language marker component (e.g.TurtleLang). Must implementDefault.H: The language helper (e.g.TurtleHelper). Must implementDefault.