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

PHP comment characters don't work #294

Open
yoshida-m-3 opened this issue Sep 9, 2021 · 3 comments
Open

PHP comment characters don't work #294

yoshida-m-3 opened this issue Sep 9, 2021 · 3 comments

Comments

@yoshida-m-3
Copy link

I want you to comment out with #, but it becomes <!-->.

I set it as follows, but the result does not change.
What should I do?

  if !exists('g:tcomment_types')
    let g:tcomment_types = {}
  endif
  let g:tcomment_types['php'] = '// %s'
<?php

class Test
{
    public $aaa;
}

press gcc

<?php

class Test
{
    <!-- public $aaa; -->
}

@tomtom
Copy link
Owner

tomtom commented Sep 9, 2021 via email

@yoshida-m-3
Copy link
Author

Debug output result

TCOMMENT: &ft = php => php
TCOMMENT: stx =  =>
TCOMMENT: ct  = {'_args': {'beg': 31, 'fallbackFiletype': '', 'end': 31, 'filetype': 'php', 'comment_mode': ''}, 'commentstring': '// %s', 'mode': '', 'filetype': 'php'}
The info was also copied to the clipboard @+
Please see also :help tcomment-debug

PHP related plugins include neoclide/coc.nvim and marlonfan/coc-phpls language servers.

However, once I tried removing the plugin, the comment didn't work

This is my plugin list
https://github.com/yoshida-m-3/nvim/blob/main/dein.toml

@skylite21
Copy link

I have the same issue.

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

3 participants