aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--book/src/generated/lang-support.md2
-rw-r--r--runtime/queries/julia/indents.scm16
2 files changed, 17 insertions, 1 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md
index 003ed4a4..48667f2e 100644
--- a/book/src/generated/lang-support.md
+++ b/book/src/generated/lang-support.md
@@ -68,7 +68,7 @@
| json | ✓ | | ✓ | `vscode-json-language-server` |
| jsonnet | ✓ | | | `jsonnet-language-server` |
| jsx | ✓ | ✓ | ✓ | `typescript-language-server` |
-| julia | ✓ | | | `julia` |
+| julia | ✓ | | ✓ | `julia` |
| kdl | ✓ | | | |
| kotlin | ✓ | | | `kotlin-language-server` |
| latex | ✓ | ✓ | | `texlab` |
diff --git a/runtime/queries/julia/indents.scm b/runtime/queries/julia/indents.scm
new file mode 100644
index 00000000..08f55aa7
--- /dev/null
+++ b/runtime/queries/julia/indents.scm
@@ -0,0 +1,16 @@
+[
+ (struct_definition)
+ (macro_definition)
+ (function_definition)
+ (compound_expression)
+ (let_statement)
+ (if_statement)
+ (for_statement)
+ (while_statement)
+ (do_clause)
+ (parameter_list)
+] @indent
+
+[
+ "end"
+] @outdent