Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to have yasnippet expand out a list. Ideally I'd like to have a list of items, for example:

'((ERROR_FILE_NOT_FOUND "The file was not found")
  (ERROR_SERVER_CRASHED "Server has crashed"))

I'd like to pass that to the snippet when expanding so that I can output a block of code for each list item. Currently I would do this sort of thing with a bit of custom list code, but I'm just curious if you can do it with a yasnippet.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.