class TmSnippet @@known_substitutions["content"] += [{ /`[^`]*snippet_paren\.rb[\s\t]*`/ => "`(yas/ruby-snippet-paren)`", /`[^`]*snippet_paren\.rb end[^`]*`/ => "`(yas/ruby-snippet-paren \'close)`" }, { %q@${1/.+/(/}@ => '${1:$(and (yas/text) "(")}', %q@${1/.+/)/}@ => '${1:$(and (yas/text) ")")}', %q@${2/.+/ => /}@ => '${2:$(and (yas/text) " => ")}', %q@${1:${TM_FILENAME/\.\w+//}@ => '${1:$(and buffer-file-name (file-name-sans-extension buffer-file-name))}', %q@${1/(^.*?\S.*)|.*/(?1:\()/}@ => '${1:$(and (string-match "[^\s\t]" yas/text) "(" )}', %q@${1/(^.*?\S.*)|.*/(?1:\))/}@ => '${1:$(and (string-match "[^\s\t]" yas/text) ")" )}', %q@${2/(^.*?\S.*)|.*/(?1:\()/}@ => '${2:$(and (string-match "[^\s\t]" yas/text) "(" )}', %q@${2/(^.*?\S.*)|.*/(?1:\))/}@ => '${2:$(and (string-match "[^\s\t]" yas/text) ")" )}', %q@${3/(^.*?\S.*)|.*/(?1:\()/}@ => '${3:$(and (string-match "[^\s\t]" yas/text) "(" )}', %q@${3/(^.*?\S.*)|.*/(?1:\))/}@ => '${3:$(and (string-match "[^\s\t]" yas/text) ")" )}', %q@${2/^\s*$|(.*\S.*)/(?1: )/}@ => '${2:$(and (string-match "[^\s\t]" yas/text) " " )}', %q@${3/^\s*$|(.*\S.*)/(?1: )/}@ => '${3:$(and (string-match "[^\s\t]" yas/text) " " )}', %q@${3/(^[rwab+]+$)|.*/(?1:")/}@ => '${}', %q@${3/(^[rwab+]+$)|.*/(?1:, ")/}@ => '${}', %q@${3/^\s*$|(.*\S.*)/(?1:, )/}@ => '${}', %q@${1:"${2:path/or/url/or/pipe}@ => '${}', %q@${2:${1/([\w&&[^_]]+)|./\u$1/g}@ => '${}', %q@${TM_SELECTED_TEXT/([\t ]*).*/$1/m}@ => '${}', %q@${1:"${2:path/to/file}"}${3/(^[rwab+]+$)|.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