On 10/12/12 20:21, Alex Efros wrote:
> Hi!
> 
> I've implemented conceal support for asciidoc.
> 
>     This is Vim feature which let you hide some symbols while they ain't
>     needed. For example, instead of seeing *BOLD* in your text highlighted
>     by some color you'll see just BOLD - still highlighted by same color
>     but without *…* around it. When you'll enter INSERT/REPLACE mode to
>     edit text you'll see *BOLD* with markers again - when your cursor will
>     be in line with this text.
> 
> Also I've added some minor fixes/features to syntax highlight:
> - highlight line breaks (+ at EOL) in lists

Thanks Alex, I've cherry picked a couple of your fixes. Personally I
don't like the Vim conceal feature so left it out.

https://code.google.com/p/asciidoc/source/detail?r=31a8ac15ab7344daa1eb52f522003f7886b0a91e


> - highlight *…* _…_ `…` etc delimiters as SpecialChar instead of same
>   color as used for their content
> - fix highlight for joined markup like _underline_`mono`
>   (this fix is incomplete, some joined markup isn't understood by asciidoc,
>   more work needed to make highlight work exactly in same way as asciidoc)
> - fix highlight when first symbol in markup is open paren )

Fixed previously:
https://code.google.com/p/asciidoc/source/detail?r=241e94c4a31ee72bad21df154ec4cc3e04a8ab92


Cheers, Stuart


> - conceal escaping in arrows (to prevent default replacement by unicode
>   arrows)
> 
> 
> 
> To use it you'll need two files, both named asciidoc.vim. Because of same
> name I decide to attach larger one and include in email text second file.
> 
> 1) Save attached file to ~/.vim/after/syntax/asciidoc.vim
> 
> 2) Save these lines to ~/.vim/ftplugin/asciidoc.vim :
> 
> ---cut---
> if exists("b:did_ftplugin")
>       finish
> endif
> let b:did_ftplugin = 1
> 
> if has("conceal")
>       setlocal conceallevel=2 concealcursor=nc
> endif
> 
> let b:undo_ftplugin = 'setlocal conceallevel< concealcursor<'
>       \ . '|unlet b:did_ftplugin'
> ---cut---
> 

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to