Skip to content

allow syntax highlighting inside surql / surrealql function#13

Open
Torsten85 wants to merge 1 commit into
surrealdb:mainfrom
Torsten85:main
Open

allow syntax highlighting inside surql / surrealql function#13
Torsten85 wants to merge 1 commit into
surrealdb:mainfrom
Torsten85:main

Conversation

@Torsten85

Copy link
Copy Markdown

Allows syntax highlight inside surql() and surrealql() functions as alternative to the already supported surql and surrealql tagged template literals.

Currently the type of tagged template literal function arguments cannot be inferred in typescript. With the support of functions we allow future development of e.g. automatic code inference or other typescript magic.

@macjuul

macjuul commented Jan 8, 2026

Copy link
Copy Markdown
Member

Hey, thanks for your PR!

The only issue I can find is that the base highlighting inherits the string scope, differing from the appearance of tagged template literals.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants