add sql highlighter for sqlx

This commit is contained in:
lelgenio 2022-12-21 15:05:14 -03:00
parent 9b218930b1
commit 641f47cb3c

View file

@ -60,8 +60,16 @@ hook global BufCreate .*\.(tera|askama)\.?.* %[
hook global WinSetOption filetype=rust %[
require-module rust
add-highlighter window/rust-custom regions
require-module html
add-highlighter shared/rust/html region -recurse '\{' 'html!\s*\{\K' '(?=\})' ref html
add-highlighter window/rust-custom/html region -recurse '\{' 'html!\s*\{\K' '(?=\})' ref html
require-module sql
add-highlighter window/rust-custom/sql region '"\K--sql' '"' group
add-highlighter window/rust-custom/sql/ fill white
add-highlighter window/rust-custom/sql/ ref sql
]
hook global WinSetOption filetype=sql %[