diff options
author | 2021-10-30 21:25:41 +0200 | |
---|---|---|
committer | 2021-10-31 19:26:15 +0100 | |
commit | ac73c31388afdffe7e56236cd619a7a08eb1fac8 (patch) | |
tree | d36537cd22412960e49b5c5ef47f349c545edef9 /language-web/src/main/js/language/indentation.ts | |
parent | feat(web): semantic highlighting (diff) | |
download | refinery-ac73c31388afdffe7e56236cd619a7a08eb1fac8.tar.gz refinery-ac73c31388afdffe7e56236cd619a7a08eb1fac8.tar.zst refinery-ac73c31388afdffe7e56236cd619a7a08eb1fac8.zip |
feat(web): use 4 space for indentation
Diffstat (limited to 'language-web/src/main/js/language/indentation.ts')
-rw-r--r-- | language-web/src/main/js/language/indentation.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/language-web/src/main/js/language/indentation.ts b/language-web/src/main/js/language/indentation.ts index b2f0134b..973b4a80 100644 --- a/language-web/src/main/js/language/indentation.ts +++ b/language-web/src/main/js/language/indentation.ts | |||
@@ -78,7 +78,7 @@ export function indentDeclaration(context: TreeIndentContext): number { | |||
78 | export function indentPredicate(context: TreeIndentContext): number { | 78 | export function indentPredicate(context: TreeIndentContext): number { |
79 | const clauseIndent = indentDeclarationStrategy(context, 1); | 79 | const clauseIndent = indentDeclarationStrategy(context, 1); |
80 | if (/^\s+(;|\.)/.exec(context.textAfter) !== null) { | 80 | if (/^\s+(;|\.)/.exec(context.textAfter) !== null) { |
81 | return clauseIndent - context.unit; | 81 | return clauseIndent - 2; |
82 | } | 82 | } |
83 | return clauseIndent; | 83 | return clauseIndent; |
84 | } | 84 | } |