Tree-sitter adventures: Language injections

Posted on Mon 18 December 2023 in Neovim

I'm currently working on a personal fun project that tries to make this code valid Rust:

#[sql]
fn get_subjects() -> Vec<i32> {
    "select id from subjects"
}

In case you don't know …