PageRenderTime 60ms CodeModel.GetById 27ms RepoModel.GetById 1ms app.codeStats 0ms

/personal/snippets/ruby-mode/Snippets/gsub(..) { match .. } (gsu).yasnippet

https://bitbucket.org/robertsanders/emacsdotd
Unknown | 8 lines | 8 code | 0 blank | 0 comment | 0 complexity | 09c330d4027e15dd49bc2feaa2d5632e MD5 | raw file
  1. # -*- mode: snippet -*-
  2. # uuid: 2514FC26-468C-4D08-A788-494A444C4286
  3. # key: gsu
  4. # contributor: Translated from textmate snippet by PROGRAM_NAME
  5. # name: gsub(/../) { |match| .. }
  6. ## condition: "
  7. # --
  8. gsub(/${1:pattern}/) { ${2:$(and (yas/text) "|")}${2:match}${2:$(and (yas/text) "| ")}$0 }