Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add jsp support #236

Open
chaiguolong opened this issue Jan 23, 2019 · 1 comment
Open

How to add jsp support #236

chaiguolong opened this issue Jan 23, 2019 · 1 comment

Comments

@chaiguolong
Copy link

How to add jsp support. I tried adding it in default.vim
Call tcomment#type#Define('jsp', g:tcomment#inline_fmt_jsp)
And redefine the variable g:tcomment#inline_fmt_jsp

If !exists('g:tcomment#inline_fmt_jsp')
     "Generic xml-like comments.
     " :read: let g:tcomment#inline_fmt_xml = {...} "{{{2
     Let g:tcomment#inline_fmt_jsp = {
                 \ 'commentstring': "<%-- %s --%>",
                 \ 'replacements': g:tcomment#replacements_xml
                 \ }
Endif

But remind me of the following error, I don't know how to add it, ask for your help.

An error occurred while processing function tcomment#Comment[171]..111_ProcessLine[28]..tcomment#format#Printf1:
Line 4:
E767: too many arguments to printf()
An error occurred while processing function tcomment#Comment:
Line 171:
E171: Missing :endif

@tomtom
Copy link
Owner

tomtom commented Feb 1, 2019

You have to escape the percent signs: "<%%-- %s --%%>"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants