Quantcast

[sh.vim] Aug 16, 2011 array highlighting bug

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[sh.vim] Aug 16, 2011 array highlighting bug

Sung Pae
Hello,

A recent vim update included the latest version of sh.vim (Aug 16,
2011), which no longer highlights the following construct from my bashrc
correctly:

    LESS_ARY=(
        --clear-screen      # Print buffer from top of screen
        --dumb              # Don't complain about terminfo errors
        --ignore-case       # Like vim ignorecase + smartcase
        --no-lessopen       # Ignore LESSOPEN preprocessor
        --long-prompt       # Show position percentage
        --RAW-CONTROL-CHARS # Only interpret SGR escape sequences
        --chop-long-lines   # Disable soft wrapping
        --no-init           # Prevent use of alternate screen
        --tilde             # Do not show nonextant lines as `~`
        --shift 8           # Horizontal movement in columns
    ); export LESS="${LESS_ARY[@]}"

The comments are no longer recognized as comments, which causes the
apostrophe on line 3 to be interpreted as an opening quote, breaking the
syntax highlighting for the rest of the file.

I am ignorant of vim's syntax system; could someone offer a solution?

Cheers,
Sung Pae

--
You received this message from the "vim_use" 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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [sh.vim] Aug 16, 2011 array highlighting bug

Charles Campbell
Sung Pae wrote:

>      LESS_ARY=(
>          --clear-screen      # Print buffer from top of screen
>          --dumb              # Don't complain about terminfo errors
>          --ignore-case       # Like vim ignorecase + smartcase
>          --no-lessopen       # Ignore LESSOPEN preprocessor
>          --long-prompt       # Show position percentage
>          --RAW-CONTROL-CHARS # Only interpret SGR escape sequences
>          --chop-long-lines   # Disable soft wrapping
>          --no-init           # Prevent use of alternate screen
>          --tilde             # Do not show nonextant lines as `~`
>          --shift 8           # Horizontal movement in columns
>      ); export LESS="${LESS_ARY[@]}"
>    
I can duplicate the problem; I'll look into it.
Regards,
Chip Campbell

--
You received this message from the "vim_use" 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
Loading...