2022-02-15 00:36:02 +01:00
|
|
|
# This languages.toml is used for testing in CI.
|
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "rust"
|
|
|
|
scope = "source.rust"
|
|
|
|
injection-regex = "rust"
|
|
|
|
file-types = ["rs"]
|
|
|
|
comment-token = "//"
|
|
|
|
roots = ["Cargo.toml", "Cargo.lock"]
|
|
|
|
indent = { tab-width = 4, unit = " " }
|
|
|
|
|
|
|
|
[[grammar]]
|
|
|
|
name = "rust"
|
2022-11-11 23:40:03 +01:00
|
|
|
source = { git = "https://github.com/tree-sitter/tree-sitter-rust", rev = "0431a2c60828731f27491ee9fdefe25e250ce9c9" }
|
2022-02-15 00:36:02 +01:00
|
|
|
|
|
|
|
[[language]]
|
|
|
|
name = "nix"
|
|
|
|
scope = "source.nix"
|
|
|
|
injection-regex = "nix"
|
|
|
|
file-types = ["nix"]
|
|
|
|
shebangs = []
|
|
|
|
roots = []
|
|
|
|
comment-token = "#"
|
|
|
|
|
|
|
|
# A grammar entry is not necessary for this language - it is only used for
|
|
|
|
# testing TOML merging behavior.
|