diff options
Diffstat (limited to 'language-web/src/main/js/language')
-rw-r--r-- | language-web/src/main/js/language/problem.grammar | 10 | ||||
-rw-r--r-- | language-web/src/main/js/language/problemLanguageSupport.ts | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/language-web/src/main/js/language/problem.grammar b/language-web/src/main/js/language/problem.grammar index 8e39243f..0cbfa831 100644 --- a/language-web/src/main/js/language/problem.grammar +++ b/language-web/src/main/js/language/problem.grammar | |||
@@ -15,7 +15,7 @@ statement { | |||
15 | } | | 15 | } | |
16 | EnumDefinition { | 16 | EnumDefinition { |
17 | ckw<"enum"> RelationName | 17 | ckw<"enum"> RelationName |
18 | (EnumBody { "{" sep<",", UniqueNodeName> "}" } | ".") | 18 | (EnumBody { "{" sep<",", IndividualNodeName> "}" } | ".") |
19 | } | | 19 | } | |
20 | PredicateDefinition { | 20 | PredicateDefinition { |
21 | (ckw<"error"> ckw<"pred">? | ckw<"direct">? ckw<"pred">) | 21 | (ckw<"error"> ckw<"pred">? | ckw<"direct">? ckw<"pred">) |
@@ -32,10 +32,10 @@ statement { | |||
32 | ParameterList<AssertionArgument> (":" LogicValue)? "." | 32 | ParameterList<AssertionArgument> (":" LogicValue)? "." |
33 | } | | 33 | } | |
34 | NodeValueAssertion { | 34 | NodeValueAssertion { |
35 | UniqueNodeName ":" Constant "." | 35 | IndividualNodeName ":" Constant "." |
36 | } | | 36 | } | |
37 | UniqueDeclaration { | 37 | IndividualDeclaration { |
38 | ckw<"unique"> sep<",", UniqueNodeName> "." | 38 | ckw<"individual"> sep<",", IndividualNodeName> "." |
39 | } | | 39 | } | |
40 | ScopeDeclaration { | 40 | ScopeDeclaration { |
41 | kw<"scope"> sep<",", ScopeElement> "." | 41 | kw<"scope"> sep<",", ScopeElement> "." |
@@ -87,7 +87,7 @@ RelationName { QualifiedName } | |||
87 | 87 | ||
88 | RuleName { QualifiedName } | 88 | RuleName { QualifiedName } |
89 | 89 | ||
90 | UniqueNodeName { QualifiedName } | 90 | IndividualNodeName { QualifiedName } |
91 | 91 | ||
92 | VariableName { QualifiedName } | 92 | VariableName { QualifiedName } |
93 | 93 | ||
diff --git a/language-web/src/main/js/language/problemLanguageSupport.ts b/language-web/src/main/js/language/problemLanguageSupport.ts index ab1c55f9..1dba3447 100644 --- a/language-web/src/main/js/language/problemLanguageSupport.ts +++ b/language-web/src/main/js/language/problemLanguageSupport.ts | |||
@@ -27,7 +27,7 @@ const parserWithMetadata = (parser as LRParser).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 rule unique scope': t.definitionKeyword, | 30 | 'problem class enum pred rule individual scope': t.definitionKeyword, |
31 | 'abstract extends refers contains opposite error direct default': t.modifier, | 31 | 'abstract extends refers contains opposite error direct default': t.modifier, |
32 | 'true false unknown error': t.keyword, | 32 | 'true false unknown error': t.keyword, |
33 | 'new delete': t.operatorKeyword, | 33 | 'new delete': t.operatorKeyword, |
@@ -40,7 +40,7 @@ const parserWithMetadata = (parser as LRParser).configure({ | |||
40 | String: t.string, | 40 | String: t.string, |
41 | 'RelationName/QualifiedName': t.typeName, | 41 | 'RelationName/QualifiedName': t.typeName, |
42 | 'RuleName/QualifiedName': t.macroName, | 42 | 'RuleName/QualifiedName': t.macroName, |
43 | 'UniqueNodeName/QualifiedName': t.atom, | 43 | 'IndividualNodeName/QualifiedName': t.atom, |
44 | 'VariableName/QualifiedName': t.variableName, | 44 | 'VariableName/QualifiedName': t.variableName, |
45 | '{ }': t.brace, | 45 | '{ }': t.brace, |
46 | '( )': t.paren, | 46 | '( )': t.paren, |