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

don't input '@' in /** in php file? #446

Open
taozywu opened this issue Aug 31, 2017 · 4 comments
Open

don't input '@' in /** in php file? #446

taozywu opened this issue Aug 31, 2017 · 4 comments

Comments

@taozywu
Copy link

taozywu commented Aug 31, 2017

follow my example file.

<?php
class Test
{
    /**
     * [__construct description]
     * @return {[type]} [description]
     * @ // i want to input '@', but not inputed for me . // why?
     * # // this is ok
     * #@ // this is ok
     * //@ // this is ok
     */
    public function __construct()
    {
    }
}

hope me and tks. @spadgos

@taozywu taozywu changed the title don't input '@' in /** in php file, who can help me? don't input '@' in /** in php file? Aug 31, 2017
@taozywu
Copy link
Author

taozywu commented Aug 31, 2017

but in not php file, when i wrote this code, it's ok.

<?php
class Test
{
    /**
     * [__construct description]
     * 
     * @ // this is ok
     *
     * @return {[type]} [description]
     */
    public function __construct()
    {
    }
}

@gerardroche
Copy link
Contributor

gerardroche commented Aug 31, 2017

I'm having difficulty understanding you.

Please show a actual and expected example to help me reproduce the issue, for example:

| is the cursor position.

class X
{
    /**|
    public function y($a)
    {
    }
}

Press Enter.

Actual

 <?php

class Test
{
    /**
     * |
     */
    public function __construct()
    {
    }
}

Expected

<?php

class X
{
    /**
     * @param  1:|[type]| $a
     *
     * @return 2:|[type]|
     */
    public function y($a)
    {
    }
}

@taozywu
Copy link
Author

taozywu commented Aug 31, 2017

@gerardroche
i knew your operation. but the problem is not that. please look

class Constant
{

    /**
     * [test description]
     * 
     * @return [type] [description]
     */
    public function test()
    {

    }
}

this is ok

class Constant
{

    /**
     * [test description]
     *
     * look this line !!!!!!!.
     *
     * when i input '@', but not input! 
     * when i input '#', this is ok!
     * # ok
     * @return [type] [description]
     */
    public function test()
    {

    }
}

please look at 'look this line !!!!!!!.'

@taozywu
Copy link
Author

taozywu commented Aug 31, 2017

@gerardroche can you understand me ? the problem occurs in php file.
I want to enter '@' in comment block, but not input.

my english is a bit poor, please understand!

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