conditional replacements
Asked by
slanted
Having a heck of a time getting the conditonal snippet to work:
snippet mytest "mytest"
/**
* ${1/(void)
*/
${1:void}
endsnippet
what I expect to happen is if the input is "void", I get -----, if its not void, I get ===== . But what happens is I never get ==== and only get the text that was inputed:
e.g.:
input of beans (expected =====)
/**
* beans
*/
beans
input of void
/**
* ----
*/
void
What am I doing wrong?
Thanks!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- UltiSnips Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- SirVer
- Solved:
- Last query:
- Last reply:
To post a message you must log in.