aboutsummaryrefslogtreecommitdiff
path: root/languages.toml
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-04-07 04:40:20 +0000
committerBlaž Hrastnik2021-04-07 04:40:20 +0000
commit3bab640491be6c065e7cf11672f49a1b41c15e99 (patch)
tree6e60fd152e9488a979b0bb33312b01be4ec53944 /languages.toml
parent463f58dfda3d72865860e53759ab001c94a85989 (diff)
Add c++, js, css, html language definitions.
Diffstat (limited to 'languages.toml')
-rw-r--r--languages.toml41
1 files changed, 41 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml
index eca55a13..981fca09 100644
--- a/languages.toml
+++ b/languages.toml
@@ -18,3 +18,44 @@ roots = []
path = "../helix-syntax/languages/tree-sitter-toml"
indent = { tab-width = 2, unit = " " }
+
+[[language]]
+name = "cpp"
+scope = "source.cpp"
+injection-regex = "cpp"
+file-types = ["cc", "cpp", "hpp", "h"]
+roots = []
+path = "../helix-syntax/languages/tree-sitter-cpp" # TODO: also C highlights
+
+indent = { tab-width = 2, unit = " " }
+
+[[language]]
+name = "javascript"
+scope = "source.js"
+injection-regex = "^(js|javascript)$"
+file-types = ["js"]
+roots = []
+path = "../helix-syntax/languages/tree-sitter-javascript"
+# TODO: highlights-jsx, highlights-params
+
+indent = { tab-width = 2, unit = " " }
+
+[[language]]
+name = "css"
+scope = "source.css"
+injection-regex = "css"
+file-types = ["css"]
+roots = []
+path = "../helix-syntax/languages/tree-sitter-css"
+
+indent = { tab-width = 2, unit = " " }
+
+[[language]]
+name = "html"
+scope = "text.html.basic"
+injection-regex = "html"
+file-types = ["html"]
+roots = []
+path = "../helix-syntax/languages/tree-sitter-html"
+
+indent = { tab-width = 2, unit = " " }