aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/language/indentation.ts
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-08-01 01:44:06 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-08-01 01:44:06 +0200
commite86447b4d74677d86271336727e0bbff9f4c54b5 (patch)
tree5f32aa78c8aa8a72ec0303cb5675eb83877b3700 /subprojects/frontend/src/language/indentation.ts
parentchore(deps): bump dependencies (diff)
downloadrefinery-e86447b4d74677d86271336727e0bbff9f4c54b5.tar.gz
refinery-e86447b4d74677d86271336727e0bbff9f4c54b5.tar.zst
refinery-e86447b4d74677d86271336727e0bbff9f4c54b5.zip
refactor: direct predicates
* Remove the direct keyword because it can be inferred * Use may/must/current instead of value literals * Transformation rule changes
Diffstat (limited to 'subprojects/frontend/src/language/indentation.ts')
-rw-r--r--subprojects/frontend/src/language/indentation.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/subprojects/frontend/src/language/indentation.ts b/subprojects/frontend/src/language/indentation.ts
index 55dcd7f1..1c38637f 100644
--- a/subprojects/frontend/src/language/indentation.ts
+++ b/subprojects/frontend/src/language/indentation.ts
@@ -80,8 +80,8 @@ export function indentPredicateOrRule(context: TreeIndentContext): number {
80 if (/^\s+[;.]/.exec(context.textAfter) !== null) { 80 if (/^\s+[;.]/.exec(context.textAfter) !== null) {
81 return clauseIndent - 2; 81 return clauseIndent - 2;
82 } 82 }
83 if (/^\s+(~>)/.exec(context.textAfter) !== null) { 83 if (/^\s+(==>)/.exec(context.textAfter) !== null) {
84 return clauseIndent - 3; 84 return clauseIndent - 4;
85 } 85 }
86 return clauseIndent; 86 return clauseIndent;
87} 87}