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

sh syntax highlighting bug (complex SH quoting) #1786

Open
PeterBinney opened this Issue Jun 22, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@PeterBinney
Copy link

PeterBinney commented Jun 22, 2017

I have a a particularly nasty bit of shell quoting that breaks the highlighting.

The attached (renamed file - sh-syntax.sh renamed to allow upload here) shows the problem.
sh-syntax.txt

I am using the latest GVIM (7.4) and have just updated to no avail to the latest syntax/sh.vim :
" Last Change: Jun 12, 2017
" Version: 170 ASTRO-ONLY

Please let me know if I should report this anywhere more appropriate.

@PeterBinney

This comment has been minimized.

Copy link

PeterBinney commented Jun 22, 2017

I've worked out a work-around, which is to add a redundant backslash on the line 7 of the attachment.

Changing from:
s/^\(,title:\)'"'\([^']*\)'$/\1\2/"
to:
s/^\(,title:\)'"'\\([^']*\\)'$/\1\2/"

Hope that helps fix it!

@k-takata k-takata added the runtime label Oct 12, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment