diff options
Diffstat (limited to 'subprojects/frontend/src/language/problemLanguageSupport.ts')
-rw-r--r-- | subprojects/frontend/src/language/problemLanguageSupport.ts | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/subprojects/frontend/src/language/problemLanguageSupport.ts b/subprojects/frontend/src/language/problemLanguageSupport.ts index 2121e05f..14826363 100644 --- a/subprojects/frontend/src/language/problemLanguageSupport.ts +++ b/subprojects/frontend/src/language/problemLanguageSupport.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/> | 2 | * SPDX-FileCopyrightText: 2021-2024 The Refinery Authors <https://refinery.tools/> |
3 | * | 3 | * |
4 | * SPDX-License-Identifier: EPL-2.0 | 4 | * SPDX-License-Identifier: EPL-2.0 |
5 | */ | 5 | */ |
@@ -27,7 +27,8 @@ const parserWithMetadata = parser.configure({ | |||
27 | styleTags({ | 27 | styleTags({ |
28 | LineComment: t.lineComment, | 28 | LineComment: t.lineComment, |
29 | BlockComment: t.blockComment, | 29 | BlockComment: t.blockComment, |
30 | 'problem class enum pred fn indiv scope': t.definitionKeyword, | 30 | 'module problem class enum pred fn scope': t.definitionKeyword, |
31 | 'import as declare atom multi': t.definitionKeyword, | ||
31 | 'abstract extends refers contains container opposite': t.modifier, | 32 | 'abstract extends refers contains container opposite': t.modifier, |
32 | 'default error contained containment': t.modifier, | 33 | 'default error contained containment': t.modifier, |
33 | 'true false unknown error': t.keyword, | 34 | 'true false unknown error': t.keyword, |
@@ -44,8 +45,9 @@ const parserWithMetadata = parser.configure({ | |||
44 | String: t.string, | 45 | String: t.string, |
45 | 'RelationName/QualifiedName': t.typeName, | 46 | 'RelationName/QualifiedName': t.typeName, |
46 | // 'RuleName/QualifiedName': t.typeName, | 47 | // 'RuleName/QualifiedName': t.typeName, |
47 | 'IndividualNodeName/QualifiedName': t.atom, | 48 | 'AtomNodeName/QualifiedName': t.atom, |
48 | 'VariableName/QualifiedName': t.variableName, | 49 | 'VariableName/QualifiedName': t.variableName, |
50 | 'ModuleName/QualifiedName': t.typeName, | ||
49 | '{ }': t.brace, | 51 | '{ }': t.brace, |
50 | '( )': t.paren, | 52 | '( )': t.paren, |
51 | '[ ]': t.squareBracket, | 53 | '[ ]': t.squareBracket, |
@@ -54,7 +56,8 @@ const parserWithMetadata = parser.configure({ | |||
54 | }), | 56 | }), |
55 | indentNodeProp.add({ | 57 | indentNodeProp.add({ |
56 | ProblemDeclaration: indentDeclaration, | 58 | ProblemDeclaration: indentDeclaration, |
57 | UniqueDeclaration: indentDeclaration, | 59 | AtomDeclaration: indentDeclaration, |
60 | NodeDeclaration: indentDeclaration, | ||
58 | ScopeDeclaration: indentDeclaration, | 61 | ScopeDeclaration: indentDeclaration, |
59 | PredicateBody: indentPredicateOrRule, | 62 | PredicateBody: indentPredicateOrRule, |
60 | FunctionBody: indentPredicateOrRule, | 63 | FunctionBody: indentPredicateOrRule, |
@@ -70,7 +73,8 @@ const parserWithMetadata = parser.configure({ | |||
70 | // RuleBody: foldInside, | 73 | // RuleBody: foldInside, |
71 | Conjunction: foldConjunction, | 74 | Conjunction: foldConjunction, |
72 | // Consequent: foldWholeNode, | 75 | // Consequent: foldWholeNode, |
73 | UniqueDeclaration: foldDeclaration, | 76 | AtomDeclaration: foldDeclaration, |
77 | NodeDeclaration: foldDeclaration, | ||
74 | ScopeDeclaration: foldDeclaration, | 78 | ScopeDeclaration: foldDeclaration, |
75 | BlockComment: foldBlockComment, | 79 | BlockComment: foldBlockComment, |
76 | }), | 80 | }), |