Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 318 by [email protected]: sh.vim syntax highlighting glitch in shell patterns including a # inside bracket expression
https://code.google.com/p/vim/issues/detail?id=318

What steps will reproduce the problem?
1. Using this line in a shell script (sh/ksh/bash) breaks highlighting beginning with the '#' inside the bracket expression.
2. [[ $_l == [!#=]*=?* ]] || continue


What is the expected output? What do you see instead?
I'd expect the '#' to have the same color as the rest of [!#=] part.
Instead the '#' is grey like the rest of the line and the syntax highlighting as well as the folding is broken starting from this line until the end of the file. E.g folding the function with that line collapes the rest of the script.


What version of the product are you using? On what operating system?
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Dec 19 2014 13:33:19)
OpenBSD 5.7-beta (GENERIC.MP) #0: Fri Jan 16 18:40:00 CET 2015


Please provide any additional information below.
Unfortunately, I don't know enough about vim syntax script to provide a patch.


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui