edgedb / edgedb-editor-plugin

EdgeDB plugin for Sublime Text, Atom, and VSCode
https://edgedb.com
MIT License
31 stars 5 forks source link

highlight `on (edgeql syntax)` #1

Closed 1st1 closed 6 years ago

1st1 commented 6 years ago
concept AbstractConstraintParent2:
    link name to str:
        delegated constraint unique on (lower(subject))

lower(subject) should be highlighted as EdgeQL

1st1 commented 6 years ago

Same applies to constraints:

    link c_length_3 to constraint_length_2:
        constraint minlength(10, (SELECT ''), etc)

and

    link c_length_3 to constraint_length_2:
        constraint minlength(10, (SELECT ''), etc) on (SELECT 'abc')

and

constraint minlength(std::str='a') on (SELECT 'abc')
vpetrovykh commented 6 years ago

Done. The highlighter switches to EdgeQL for highlighting the contents of the on (...).