diff options
author | Daniel Ebert | 2023-08-11 10:26:27 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2023-08-11 14:44:02 +0000 |
commit | b315901cbb137fd1b2f79bb9c1f10a1bef5b7f38 (patch) | |
tree | 646b57d87fc321abc4237129359a6342d0961cc7 /helix-core/tests/data/indent/languages.toml | |
parent | 155cedc5c839dafcef32310dc53bdc20ec976535 (diff) |
Run indentation tests on a part of the Helix source code.
Add C++ indent test file.
Diffstat (limited to 'helix-core/tests/data/indent/languages.toml')
-rw-r--r-- | helix-core/tests/data/indent/languages.toml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/helix-core/tests/data/indent/languages.toml b/helix-core/tests/data/indent/languages.toml index 3206f124..fa02e451 100644 --- a/helix-core/tests/data/indent/languages.toml +++ b/helix-core/tests/data/indent/languages.toml @@ -11,3 +11,16 @@ indent = { tab-width = 4, unit = " " } [[grammar]] name = "rust" source = { git = "https://github.com/tree-sitter/tree-sitter-rust", rev = "0431a2c60828731f27491ee9fdefe25e250ce9c9" } + +[[language]] +name = "cpp" +scope = "source.cpp" +injection-regex = "cpp" +file-types = ["cc", "hh", "c++", "cpp", "hpp", "h", "ipp", "tpp", "cxx", "hxx", "ixx", "txx", "ino", "C", "H"] +roots = [] +comment-token = "//" +indent = { tab-width = 2, unit = " " } + +[[grammar]] +name = "cpp" +source = { git = "https://github.com/tree-sitter/tree-sitter-cpp", rev = "2d2c4aee8672af4c7c8edff68e7dd4c07e88d2b1" } |