context.vim
context.vim copied to clipboard
How to deal with multi-line string in bash
Hi, my bash script contains left aligned multi-line strings.
loop() {
local usage="\
aaaaaaaaa
aaaaaaaaa"
echo '#!/usr/bin/env bash
aaaaaaa
aaaaaaa
'
}
I have no idea how to skip them by g:context_skip_regex, or should I use alternative coding stlye. I just found nvim-treesitter-context manages it correctly. It seems AST based method is much powerfull than single line regex.