summaryrefslogtreecommitdiff
path: root/runtime/queries/qml/injections.scm
diff options
context:
space:
mode:
authoralois312022-11-23 03:49:02 +0000
committerGitHub2022-11-23 03:49:02 +0000
commit26ec1cf39a3c5f548f199918b0a84d614a5c6be7 (patch)
tree8b0c5cd2f238ae81f66d6ae19dc67b916a17ba3c /runtime/queries/qml/injections.scm
parent42e37a571e75aaf4feb1717dfebe8cf215e535dd (diff)
Add QML language support (#4842)
Fixes https://github.com/helix-editor/helix/issues/2771
Diffstat (limited to 'runtime/queries/qml/injections.scm')
-rw-r--r--runtime/queries/qml/injections.scm16
1 files changed, 16 insertions, 0 deletions
diff --git a/runtime/queries/qml/injections.scm b/runtime/queries/qml/injections.scm
new file mode 100644
index 00000000..1ce987d3
--- /dev/null
+++ b/runtime/queries/qml/injections.scm
@@ -0,0 +1,16 @@
+((comment) @injection.content
+ (#set! injection.language "comment"))
+
+([
+ (empty_statement)
+ (expression_statement)
+ (function_declaration)
+ (generator_function_declaration)
+ (statement_block)
+ (switch_statement)
+ (try_statement)
+ (variable_declaration)
+ (with_statement)
+ ] @injection.content
+ (#set! injection.include-children)
+ (#set! injection.language "javascript"))