I find that C++ parentheses are sometimes marked as error
(cParenError) in the code block embedded in markdown. A little
more investigation shows this is what happens:
* markdown.vim can conditionally include cpp.vim for embedded C++
code (users need to manually set markdown_fenced_languages)
* cpp.vim includes c.vim
* c.vim has special logic based on this conditional:
if (s:ft ==# 'cpp') && !exists("cpp_no_cpp11")
So normally C++ will not exhibit the problem, if s:ft (assigned at
the beginning from &ft) is "cpp". However, in this case s:ft is
"markdown", but not "cpp".
Is there any good method to handle the problem (excepting hacking
c.vim to check whether the current syntax is markdown)?
Best regards,
Yongwei
--
Wu Yongwei
URL: http://wyw.dcweb.cn/
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment