Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to deal with multi-line string in bash #107

Open
tkkcc opened this issue Jun 19, 2021 · 0 comments
Open

How to deal with multi-line string in bash #107

tkkcc opened this issue Jun 19, 2021 · 0 comments

Comments

@tkkcc
Copy link

tkkcc commented Jun 19, 2021

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.

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

No branches or pull requests

1 participant