typedb-osi/typeql-plugin-vscode

Incorrect syntax highlighting following keywords

jamesreprise opened this issue · 0 comments

Problem to Solve

This schema:

define

# attributes

#   diagram-name sub attribute,
#   value string;

#   diagram-id sub attribute,
#   value string;

# entities

    iam_secureentity sub entity, abstract;

    iam_user sub iam_secureentity,
        plays user-workspaces:has-access-to
    ;

    iam_workspace sub iam_secureentity,
        plays user-workspaces:can-access
    ;

currently renders as:
image

This is true for other keywords.
image

Current Workaround

Ignore the incorrect highlighting.

Proposed Solution

Fix the highlighting so that words that are also keywords can be used in other contexts.