mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-06 16:08:05 +00:00
HTML files in Angular projects were highlighted as plain HTML. Languages can now declare framework UI modes with root markers (angular.json, node_modules/@angular/core); files under such a root get the framework's editor mode, re-detected when a marker appears or disappears, and the root-marker lookup is shared with language server roots. The Angular Template mode (vendored @codemirror/lang-angular, MIT) adds @if/@for/@switch/@defer/@let blocks, key and animation binding names, and colours {{ }} delimiters.
Lazily loaded editor modes are now loaded before a document's first editor opens, so a file never renders as plain text first (this also left Angular templates uncoloured).
Co-authored-by: nntndfrk <2458463+nntndfrk@users.noreply.github.com>
66 lines
1.7 KiB
TOML
66 lines
1.7 KiB
TOML
[package]
|
|
name = "ide-language"
|
|
description = "Language registry (languages/*.toml), detection, and tree-sitter powered outline/folding/symbol tags"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[dependencies]
|
|
ide-core.workspace = true
|
|
ide-text.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
specta.workspace = true
|
|
toml.workspace = true
|
|
tree-sitter.workspace = true
|
|
parking_lot.workspace = true
|
|
tracing.workspace = true
|
|
regex-lite = "0.1"
|
|
blake3.workspace = true
|
|
tree-sitter-language = "0.1"
|
|
|
|
# Bundled grammars (all built on `tree-sitter-language`, ABI <= 15).
|
|
tree-sitter-rust = "0.24.2"
|
|
tree-sitter-typescript = "0.23.2"
|
|
tree-sitter-javascript = "0.25.0"
|
|
tree-sitter-python = "0.25.0"
|
|
tree-sitter-go = "0.25.0"
|
|
tree-sitter-java = "0.23.5"
|
|
tree-sitter-kotlin-ng = "1.1.0"
|
|
tree-sitter-c = "0.24.2"
|
|
tree-sitter-cpp = "0.23.4"
|
|
tree-sitter-c-sharp = "0.23.5"
|
|
tree-sitter-ruby = "0.23.1"
|
|
tree-sitter-php = "0.25.1"
|
|
tree-sitter-json = "0.24.8"
|
|
tree-sitter-yaml = "0.7.2"
|
|
tree-sitter-toml-ng = "0.7.0"
|
|
tree-sitter-bash = "0.25.1"
|
|
tree-sitter-html = "0.23.2"
|
|
tree-sitter-css = "0.25.0"
|
|
tree-sitter-scala = "0.26.3"
|
|
tree-sitter-swift = "0.7.4"
|
|
tree-sitter-lua = "0.5.0"
|
|
tree-sitter-md = "0.5.3"
|
|
tree-sitter-zig = "1.1.2"
|
|
tree-sitter-elixir = "0.3.5"
|
|
tree-sitter-ocaml = "0.26.0"
|
|
tree-sitter-hcl = "1.1.0"
|
|
tree-sitter-nix = "0.3.0"
|
|
tree-sitter-proto = "0.6.0"
|
|
tree-sitter-make = "1.1.1"
|
|
tree-sitter-cmake = "0.7.4"
|
|
tree-sitter-xml = "0.7.0"
|
|
tree-sitter-haskell = "0.23.1"
|
|
tree-sitter-dart = "0.2.0"
|
|
tree-sitter-graphql = "0.3.0"
|
|
tree-sitter-gdscript = "6.1.0"
|
|
|
|
[dev-dependencies]
|
|
criterion = { version = "0.5", default-features = false }
|
|
tempfile.workspace = true
|
|
|
|
[[bench]]
|
|
name = "syntax"
|
|
harness = false
|