summaryrefslogtreecommitdiff
path: root/queries/ecma/indents.scm
diff options
context:
space:
mode:
authorkiyan <yazdani.kiyan@protonmail.com>2021-03-09 23:14:27 +0100
committerKiyan <yazdani.kiyan@protonmail.com>2021-03-10 17:34:11 +0100
commit3b8c2ea492917fcb3c0e88ad6682dbd355cc0644 (patch)
treede412f14c476f809c6e60f06e57136384b99e616 /queries/ecma/indents.scm
parentec41db9511309966f6ab816d0139fad30ef50be6 (diff)
chore: create ecma base for use in js and ts which fixes jsx issues
Diffstat (limited to 'queries/ecma/indents.scm')
-rw-r--r--queries/ecma/indents.scm30
1 files changed, 30 insertions, 0 deletions
diff --git a/queries/ecma/indents.scm b/queries/ecma/indents.scm
new file mode 100644
index 00000000..aad719ce
--- /dev/null
+++ b/queries/ecma/indents.scm
@@ -0,0 +1,30 @@
+[
+ (object)
+ (array)
+ (arguments)
+ (statement_block)
+ (object_pattern)
+ (class_body)
+ (method_definition)
+ (named_imports)
+ (binary_expression)
+ (return_statement)
+ (template_substitution)
+ (expression_statement (call_expression))
+ (export_clause)
+] @indent
+
+[
+ (arguments (object))
+ "("
+ ")"
+ "{"
+ "}"
+ "["
+ "]"
+] @branch
+
+[
+ (comment)
+ (template_string)
+] @ignore