In files with extensions .suql
, .srql
, .surql
, .surealql
, .surreal
and in TS/JS-Files useing tagged-template-literals with tag suql
, srql
, surql
, surealql
, surreal
you get syntax highlighting!
Also you can add a comment /* surrealql */
before your template-literal (NOTE: This is a syntax not recomended as formaters / linters could break it!).
For example
const query = surql`
SELECT * FROM t
`
will have highlighting!
The idea is that libs can define there own handler of that tag. If you are a lib autor of an other langage and there is a similar concept feel free to contact me!
- idiom - for example
messages.*
messages.*.createdAt
->is_friend_of->person
, ... - some statement pattern can be added
- some pattern can be detected that are non valid.
- maybe better datetime support
- change some naming internaly
Define comments, brackets, autoClosingPairs, surroundingPairs and folding for surrealql.
List of usefull snippets (currently a single one). Feel free to create PR / issues to add / request snippets.
Integration with language server! (No support yet as the LSP is not written yet)
Thanks goes to these wonderful people (emoji key):
Sebastian Krüger 💻 🚧 |
This project follows the all-contributors specification. Contributions of any kind welcome!