weicj / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

Asciidoc bold syntax highlighting doesn't stop if there's non-whitespace after ending "*" #303

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In asciidoc you bracket text with a pair of "*" for bold.  If the second "*" is 
followed by non-whitespace then the syntax coloring doesn't stop.  
Symmetrically, the syntax coloring doesn't start if the first "*" is preceded 
by non-whitespace.

This is using Vim 7.4 on Fedora 21.

Original issue reported on code.google.com by khym.cha...@gmail.com on 27 Dec 2014 at 7:16

GoogleCodeExporter commented 9 years ago
The above isn't quite correct.  The second "*" can be followed by any of 
").?;:!=[]" and still end the highlighting.  And the first can be preceded by 
any of "(.=[]" and still start the highlighting.

Original comment by khym.cha...@gmail.com on 27 Dec 2014 at 7:43

GoogleCodeExporter commented 9 years ago
The correct logic is that the surrounded text must have non-whitespace 
characters on either side and the "*" cannot be proceeded or followed by a word 
character. In other words, it be looking for non-word characters outside the 
"*" and non-whitespace at the boundaries of the inner text.

Original comment by dan.j.allen on 27 Dec 2014 at 10:40

GoogleCodeExporter commented 9 years ago
Please take that issue to the maintainer of the syntax file. If he agrees, he 
will send an updated syntax file for inclusion with vim to Bram. You'll find 
his contact address in the bundled syntax asciidoc.vim file

Original comment by chrisbr...@googlemail.com on 27 Dec 2014 at 11:03