mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
removing directives from some classic snippets
This commit is contained in:
parent
5cc5037cee
commit
546237f7de
@ -1,5 +1,4 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <h1>...</h1>
|
||||
#group : header
|
||||
# --
|
||||
<h1>$1</h1>
|
||||
<h1>$1</h1>
|
||||
|
@ -1,5 +1,4 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <h2>...</h2>
|
||||
#group : header
|
||||
# --
|
||||
<h2>$1</h2>
|
||||
<h2>$1</h2>
|
||||
|
@ -1,5 +1,4 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <h3>...</h3>
|
||||
#group : header
|
||||
# --
|
||||
<h3>$1</h3>
|
||||
<h3>$1</h3>
|
||||
|
@ -1,5 +1,4 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <h4>...</h4>
|
||||
#group : header
|
||||
# --
|
||||
<h4>$1</h4>
|
||||
<h4>$1</h4>
|
||||
|
@ -1,5 +1,4 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <h5>...</h5>
|
||||
#group : header
|
||||
# --
|
||||
<h5>$1</h5>
|
||||
<h5>$1</h5>
|
||||
|
@ -1,5 +1,4 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <h6>...</h6>
|
||||
#group : header
|
||||
# --
|
||||
<h6>$1</h6>
|
||||
<h6>$1</h6>
|
||||
|
@ -1,5 +1,4 @@
|
||||
#contributor : Rodrigo Setti <rodrigosetti@gmail.com>
|
||||
#name : <dd> ... </dd>
|
||||
#group : list
|
||||
# --
|
||||
<dd>$1</dd>
|
||||
<dd>$1</dd>
|
||||
|
@ -1,6 +1,5 @@
|
||||
#contributor : Rodrigo Setti <rodrigosetti@gmail.com>
|
||||
#name : <dl> ... </dl>
|
||||
#group : list
|
||||
# --
|
||||
<dl>
|
||||
$0
|
||||
|
@ -1,7 +1,6 @@
|
||||
#contributor : Rodrigo Setti <rodrigosetti@gmail.com>
|
||||
#name : <dl> ... </dl>
|
||||
#group : list
|
||||
# --
|
||||
<dl id="$1">
|
||||
$0
|
||||
</dl>
|
||||
</dl>
|
||||
|
@ -1,5 +1,4 @@
|
||||
#contributor : Rodrigo Setti <rodrigosetti@gmail.com>
|
||||
#name : <dt> ... </dt>
|
||||
#group : list
|
||||
# --
|
||||
<dt>$1</dt>
|
||||
<dt>$1</dt>
|
||||
|
@ -1,5 +1,4 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <li>...</li>
|
||||
#group : list
|
||||
# --
|
||||
<li>$1</li>
|
||||
<li>$1</li>
|
||||
|
@ -1,5 +1,4 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <li class="...">...</li>
|
||||
#group : list
|
||||
# --
|
||||
<li class="$1">$2</li>
|
||||
<li class="$1">$2</li>
|
||||
|
@ -1,7 +1,6 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <ol>...</ol>
|
||||
#group : list
|
||||
# --
|
||||
<ol>
|
||||
$0
|
||||
</ol>
|
||||
</ol>
|
||||
|
@ -1,7 +1,6 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <ol class="...">...</ol>
|
||||
#group : list
|
||||
# --
|
||||
<ol class="$1">
|
||||
$0
|
||||
</ol>
|
||||
</ol>
|
||||
|
@ -1,7 +1,6 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <ol id="...">...</ol>
|
||||
#group : list
|
||||
# --
|
||||
<ol id="$1">
|
||||
$0
|
||||
</ol>
|
||||
</ol>
|
||||
|
@ -1,7 +1,6 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <ul>...</ul>
|
||||
#group : list
|
||||
# --
|
||||
<ul>
|
||||
$0
|
||||
</ul>
|
||||
</ul>
|
||||
|
@ -1,7 +1,6 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <ul class="...">...</ul>
|
||||
#group : list
|
||||
# --
|
||||
<ul class="$1">
|
||||
$0
|
||||
</ul>
|
||||
</ul>
|
||||
|
@ -1,7 +1,6 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <ul id="...">...</ul>
|
||||
#group : list
|
||||
# --
|
||||
<ul id="$1">
|
||||
$0
|
||||
</ul>
|
||||
</ul>
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : Doctype HTML 4.01 Strict
|
||||
#group : meta
|
||||
# --
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : DocType XHTML 1.0 frameset
|
||||
#group : meta
|
||||
# --
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : DocType XHTML 1.1
|
||||
#group : meta
|
||||
# --
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : DocType XHTML 1.0 Strict
|
||||
#group : meta
|
||||
# --
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : DocType XHTML 1.0 Transitional
|
||||
#group : meta
|
||||
# --
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
@ -1,5 +1,4 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#group : meta
|
||||
#name : <meta name="..." content="..." />
|
||||
# --
|
||||
<meta name="${1:generator}" content="${2:content}" />
|
||||
<meta name="${1:generator}" content="${2:content}" />
|
||||
|
@ -1,5 +1,4 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <meta http-equiv="..." content="..." />
|
||||
#group : meta
|
||||
# --
|
||||
<meta name="${1:Content-Type}" content="${2:text/html; charset=UTF-8}" />
|
||||
<meta name="${1:Content-Type}" content="${2:text/html; charset=UTF-8}" />
|
||||
|
@ -1,7 +1,6 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <table ...>...</table>
|
||||
#group : table
|
||||
# --
|
||||
<table width="$1" cellspacing="$2" cellpadding="$3" border="$4">
|
||||
$0
|
||||
</table>
|
||||
</table>
|
||||
|
@ -1,5 +1,4 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <td>...</td>
|
||||
#group : table
|
||||
# --
|
||||
<td$1>$2</td>
|
||||
<td$1>$2</td>
|
||||
|
@ -1,5 +1,4 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <th>...</th>
|
||||
#group : table
|
||||
# --
|
||||
<th$1>$2</th>
|
||||
<th$1>$2</th>
|
||||
|
@ -1,7 +1,6 @@
|
||||
#contributor : Jimmy Wu <frozenthrone88@gmail.com>
|
||||
#name : <tr>...</tr>
|
||||
#group : table
|
||||
# --
|
||||
<tr>
|
||||
$0
|
||||
</tr>
|
||||
</tr>
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : all? { |...| ... }
|
||||
#group : collections
|
||||
# --
|
||||
all? { |${e}| $0 }
|
||||
all? { |${e}| $0 }
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : any? { |...| ... }
|
||||
#group : collections
|
||||
# --
|
||||
any? { |${e}| $0 }
|
||||
any? { |${e}| $0 }
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : classify { |...| ... }
|
||||
#group : collections
|
||||
# --
|
||||
classify { |${e}| $0 }
|
||||
classify { |${e}| $0 }
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : collect { |...| ... }
|
||||
#group : collections
|
||||
# --
|
||||
collect { |${e}| $0 }
|
||||
collect { |${e}| $0 }
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : delete_if { |...| ... }
|
||||
#group : collections
|
||||
# --
|
||||
delete_if { |${e} $0 }
|
||||
delete_if { |${e} $0 }
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : detect { |...| ... }
|
||||
#group : collections
|
||||
# --
|
||||
detect { |${e}| $0 }
|
||||
detect { |${e}| $0 }
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : each { |...| ... }
|
||||
#group : collections
|
||||
# --
|
||||
each { |${e}| $0 }
|
||||
each { |${e}| $0 }
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : each_cons(...) { |...| ... }
|
||||
#group : collections
|
||||
# --
|
||||
each_cons(${1:2}) { |${group}| $0 }
|
||||
each_cons(${1:2}) { |${group}| $0 }
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : each_index { |i| ... }
|
||||
#group : collections
|
||||
# --
|
||||
each_index { |${i}| $0 }
|
||||
each_index { |${i}| $0 }
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : each_value { |val| ... }
|
||||
#group : collections
|
||||
# --
|
||||
each_value { |${val}| $0 }
|
||||
each_value { |${val}| $0 }
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : each_with_index { |e, i| ... }
|
||||
#group : collections
|
||||
# --
|
||||
each_with_index { |${e}, ${i}| $0 }
|
||||
each_with_index { |${e}, ${i}| $0 }
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : inject(...) { |...| ... }
|
||||
#group : collections
|
||||
# --
|
||||
inject(${1:0}) { |${2:injection}, ${3:element}| $0 }
|
||||
inject(${1:0}) { |${2:injection}, ${3:element}| $0 }
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : reject { |...| ... }
|
||||
#group : collections
|
||||
# --
|
||||
reject { |${1:element}| $0 }
|
||||
reject { |${1:element}| $0 }
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : select { |...| ... }
|
||||
#group : collections
|
||||
# --
|
||||
select { |${1:element}| $0 }
|
||||
select { |${1:element}| $0 }
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : zip(...) { |...| ... }
|
||||
#group : collections
|
||||
# --
|
||||
zip(${enums}) { |${row}| $0 }
|
||||
zip(${enums}) { |${row}| $0 }
|
||||
|
@ -1,6 +1,5 @@
|
||||
#name : for ... in ...; ... end
|
||||
#group : control structure
|
||||
# --
|
||||
for ${1:element} in ${2:collection}
|
||||
$0
|
||||
end
|
||||
end
|
||||
|
@ -1,6 +1,5 @@
|
||||
#name : if ... end
|
||||
#group : control structure
|
||||
# --
|
||||
if ${1:condition}
|
||||
$0
|
||||
end
|
||||
end
|
||||
|
@ -1,8 +1,7 @@
|
||||
#name : if ... else ... end
|
||||
#group : control structure
|
||||
# --
|
||||
if ${1:condition}
|
||||
$2
|
||||
else
|
||||
$3
|
||||
end
|
||||
end
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : times { |n| ... }
|
||||
#group : control structure
|
||||
# --
|
||||
times { |${n}| $0 }
|
||||
times { |${n}| $0 }
|
||||
|
@ -3,4 +3,4 @@
|
||||
# --
|
||||
until ${condition}
|
||||
$0
|
||||
end
|
||||
end
|
||||
|
@ -1,6 +1,5 @@
|
||||
#name : upto(...) { |n| ... }
|
||||
#group : control structure
|
||||
# --
|
||||
upto(${n}) { |${i}|
|
||||
$0
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
#name : when ... end
|
||||
#group : control structure
|
||||
# --
|
||||
when ${condition}
|
||||
$0
|
||||
end
|
||||
end
|
||||
|
@ -1,6 +1,5 @@
|
||||
#name : while ... end
|
||||
#group : control structure
|
||||
# --
|
||||
while ${condition}
|
||||
$0
|
||||
end
|
||||
end
|
||||
|
@ -1,8 +1,7 @@
|
||||
#name : include Comparable; def <=> ... end
|
||||
#group : definitions
|
||||
# --
|
||||
include Comparable
|
||||
|
||||
def <=> other
|
||||
$0
|
||||
end
|
||||
end
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : alias_method new, old
|
||||
#group : definitions
|
||||
# --
|
||||
alias_method :${new_name}, :${old_name}
|
||||
alias_method :${new_name}, :${old_name}
|
||||
|
@ -1,6 +1,5 @@
|
||||
#name : class << self ... end
|
||||
#group : definitions
|
||||
# --
|
||||
class << ${self}
|
||||
$0
|
||||
end
|
||||
end
|
||||
|
@ -1,6 +1,5 @@
|
||||
#name : class ... end
|
||||
#contributor : hitesh <hitesh.jasani@gmail.com>
|
||||
#group : definitions
|
||||
# --
|
||||
class ${1:`(let ((fn (capitalize (file-name-nondirectory
|
||||
(file-name-sans-extension
|
||||
|
@ -1,6 +1,5 @@
|
||||
#name : def method_missing ... end
|
||||
#group : definitions
|
||||
# --
|
||||
def method_missing(method, *args)
|
||||
$0
|
||||
end
|
||||
end
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : attr_reader ...
|
||||
#group : definitions
|
||||
# --
|
||||
attr_reader :
|
||||
attr_reader :
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : attr_accessor ...
|
||||
#group : definitions
|
||||
# --
|
||||
attr_accessor :
|
||||
attr_accessor :
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : attr_writer ...
|
||||
#group : definitions
|
||||
# --
|
||||
attr_writer :
|
||||
attr_writer :
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : # =>
|
||||
#group : general
|
||||
# --
|
||||
# =>
|
||||
# =>
|
||||
|
@ -1,6 +1,5 @@
|
||||
#name : =begin rdoc ... =end
|
||||
#group : general
|
||||
# --
|
||||
=begin rdoc
|
||||
$0
|
||||
=end
|
||||
=end
|
||||
|
@ -1,6 +1,5 @@
|
||||
#name : if __FILE__ == $PROGRAM_NAME ... end
|
||||
#group : general
|
||||
# --
|
||||
if __FILE__ == $PROGRAM_NAME
|
||||
$0
|
||||
end
|
||||
end
|
||||
|
@ -1,6 +1,5 @@
|
||||
#name : Benchmark.bmbm(...) do ... end
|
||||
#group : general
|
||||
# --
|
||||
Benchmark.bmbm(${1:10}) do |x|
|
||||
$0
|
||||
end
|
||||
end
|
||||
|
@ -1,7 +1,6 @@
|
||||
#name : case ... end
|
||||
#group : general
|
||||
# --
|
||||
case ${1:object}
|
||||
when ${2:condition}
|
||||
$0
|
||||
end
|
||||
end
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : deep_copy(...)
|
||||
#group : general
|
||||
# --
|
||||
Marshal.load(Marshal.dump($0))
|
||||
Marshal.load(Marshal.dump($0))
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : /usr/bin/ruby -wKU
|
||||
#group : general
|
||||
# --
|
||||
#!/usr/bin/ruby -wKU
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : require "..."
|
||||
#group : general
|
||||
# --
|
||||
require "$0"
|
||||
require "$0"
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : require File.join(File.dirname(__FILE__), ...)
|
||||
#group : general
|
||||
# --
|
||||
require File.join(File.dirname(__FILE__), $0)
|
||||
require File.join(File.dirname(__FILE__), $0)
|
||||
|
@ -1,4 +1,3 @@
|
||||
#name : :yields: arguments (rdoc)
|
||||
#group : general
|
||||
# --
|
||||
:yields: $0
|
||||
:yields: $0
|
||||
|
Loading…
x
Reference in New Issue
Block a user