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

Where does nested snippet go? #33

Closed
lono175 opened this issue Jun 8, 2010 · 4 comments
Closed

Where does nested snippet go? #33

lono175 opened this issue Jun 8, 2010 · 4 comments

Comments

@lono175
Copy link

lono175 commented Jun 8, 2010

Hello,
I tried ver.5, but I found that I cannot do nested snippets anymore.
That is, I cannot trigger another snippet at ${1} in the following code.

 
  if( ${1} ) {
     ${0:/* code */}
   }

I can do this in 4.30, but it's broken because it will jump into wrong placeholder.
Then I tried 4.08, and it works perfectly without any problem.
What happened to nested snippet?

@Shougo
Copy link
Owner

Shougo commented Jun 8, 2010

It's bug. I fixed.

@lono175
Copy link
Author

lono175 commented Jun 8, 2010

Yes, the example above has been fixed.
However, if there are no space before ${1}, it does not work.
Like the following example:

snippet     if
    if (${1}) {
        ${0:/* code */}
    }

@Shougo
Copy link
Owner

Shougo commented Jun 10, 2010

I Fixed.

@lono175
Copy link
Author

lono175 commented Jun 10, 2010

It works. Thank you :)

This issue was closed.
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