From c18378655bde91475c2eb05e6cb72f99cb992ec4 Mon Sep 17 00:00:00 2001 From: David Anthoff Date: Fri, 5 Mar 2021 14:14:46 -0800 Subject: [PATCH] Add Julia indentation rules --- extensions/julia/language-configuration.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extensions/julia/language-configuration.json b/extensions/julia/language-configuration.json index ea2f5011739..1fa88a486da 100644 --- a/extensions/julia/language-configuration.json +++ b/extensions/julia/language-configuration.json @@ -27,5 +27,9 @@ "start": "^\\s*#region", "end": "^\\s*#endregion" } + }, + "indentationRules": { + "increaseIndentPattern": "^(\\s*|.*=\\s*|.*@\\w*\\s*)[\\w\\s]*(?:[\"'`][^\"'`]*[\"'`])*[\\w\\s]*\\b(if|while|for|function|macro|(mutable\\s+)?struct|abstract\\s+type|primitive\\s+type|let|quote|try|begin|.*\\)\\s*do|else|elseif|catch|finally)\\b(?!(?:.*\\bend\\b[^\\]]*)|(?:[^\\[]*\\].*)$).*$", + "decreaseIndentPattern": "^\\s*(end|else|elseif|catch|finally)\\b.*$" } }