diff options
author | 2022-08-01 01:44:06 +0200 | |
---|---|---|
committer | 2022-08-01 01:44:06 +0200 | |
commit | e86447b4d74677d86271336727e0bbff9f4c54b5 (patch) | |
tree | 5f32aa78c8aa8a72ec0303cb5675eb83877b3700 /subprojects/frontend/src/language/indentation.ts | |
parent | chore(deps): bump dependencies (diff) | |
download | refinery-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.ts | 4 |
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 | } |