On 20/12/12 06:23, ping wrote:
>
> On 12/10/2012 02:21 AM, 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
>> - 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 )
>> - 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---
>>
>
> bug found , about literal block highlight:
>
> start
>
> .this is fine
> abcd
>
> 123
>
> .this won't be highlighted
> abcd
> <---(there are 2 spaces here)
> 123
>
> end
Fixed, thanks:
https://code.google.com/p/asciidoc/source/detail?r=31a8ac15ab7344daa1eb52f522003f7886b0a91e
Cheers, Stuart
>
>
>
> --
> 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.
--
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.