Skip to content

Add support for Rust raw strings#9

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

Add support for Rust raw strings#9
KernelKrusha wants to merge 1 commit into
surrealdb:mainfrom
KernelKrusha:main

Conversation

@KernelKrusha

Copy link
Copy Markdown

Will match the following in .rs files:

let query = r#"--surrealql
    SELECT * FROM type::table($table);
"#;

or alternatively:

let query = r#"--surql
    SELECT * FROM type::table($table);
"#;

I have no idea what I am doing, but it works 😄

@rvdende

rvdende commented Jul 3, 2024

Copy link
Copy Markdown

I tried copying this and trying locally but cant get it to work. It seems vscode applies it for a second and then the rust syntax colours overrides it.

@musjj

musjj commented Dec 6, 2024

Copy link
Copy Markdown

Why not match the style from JavaScript, like this:

let query = /* surrealql */ r#"
SELECT * FROM type::table($table);
"#;

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.

3 participants