Benjamin Fritz wrote:
> The attached patch adds a new vimscript function to allow access to
> conceal information in scripts.
>
> It also uses this new function to add conceal support to 2html.
>
> Also added a couple of meta tags to the 2html output, and fixed a bug
> in 2html that would delete empty lines in the output.
>
> The patch is based off changeset b67b0b5a93d3: Window split didn't
> copy the value of 'conceallevel'.
Sounds useful. A few remarks.
You copy the syn_get_id() function and make a tiny change. Why not just
use syn_get_id() and call get_syntax_info() next?
The conceal character can be multi-byte. You only use one byte.
Don't you get a problem when there are consecutive matches with a
concealed item? I was going to change that.
--
ARTHUR: No, hang on! Just answer the five questions ...
GALAHAD: Three questions ...
ARTHUR: Three questions ... And we shall watch ... and pray.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
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