typedb / typedb-studio

TypeDB Studio (IDE)
https://typedb.com
Mozilla Public License 2.0
191 stars 44 forks source link

Incorrect highlighting of unreserved syntax keywords #720

Open james-whiteside opened 1 year ago

james-whiteside commented 1 year ago

Description

There are certain keywords, such as group, that are unreserved, allowing them to be used as type names. Studio does not correctly highlight them, applying the style for the keyword instead.

Screenshot 2023-04-04 at 15 08 39

Environment

  1. TypeDB version: 2.16.1
  2. OS of TypeDB server: MacOS 12.6.1
  3. Studio version: 2.14.2
  4. OS of Studio: MacOS 12.6.1

Expected Output

group is correctly contextualised and displayed in white.

Actual Output

group is interpreted as a keyword and displayed in pink italics.