From d284444eb402d76090ef0743d21fa51b9eee058d Mon Sep 17 00:00:00 2001 From: Clara Hobbs Date: Thu, 30 Mar 2023 21:32:36 -0400 Subject: [PATCH] Add indents.scm for Julia (#6490) * Add indents.scm for Julia * Update documentation for new indent support --- book/src/generated/lang-support.md | 2 +- runtime/queries/julia/indents.scm | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 runtime/queries/julia/indents.scm diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 003ed4a4a..48667f2e5 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 000000000..08f55aa7f --- /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