context.vim icon indicating copy to clipboard operation
context.vim copied to clipboard

How to deal with multi-line string in bash

Open tkkcc opened this issue 4 years ago • 0 comments

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.

tkkcc avatar Jun 19 '21 13:06 tkkcc