use only ASCII character in snippet

This commit is contained in:
Zhang Chiyuan 2008-03-06 10:31:10 +00:00
parent 1073189b7b
commit c9dd0b38ef
14 changed files with 18 additions and 17 deletions

View File

@ -1,4 +1,4 @@
#name : class ¡­ { ¡­ }
#name : class ... { ... }
# --
class ${1:Name}
{

View File

@ -1,4 +1,4 @@
#name : do { ¡­ } while (¡­)
#name : do { ... } while (...)
# --
do
{

View File

@ -1,4 +1,4 @@
#name : for (¡­; ¡­; ¡­) { ¡­ }
#name : for (...; ...; ...) { ... }
# --
for (${1:int i = 0}; ${2:i < N}; ${3:++i})
{

View File

@ -1,4 +1,4 @@
#name : if ( ¡­ ) { ¡­ }
#name : if (...) { ... }
# --
if (${1:condition})
{

View File

@ -1,4 +1,4 @@
#name: int main(argc, argv) { ¡­ }
#name: int main(argc, argv) { ... }
# --
int main(int argc, char const *argv)
{

View File

@ -1,4 +1,4 @@
#name : struct Ą­ { Ą­ }
#name : struct ... { ... }
# --
struct ${1:name}
{

View File

@ -1,3 +1,3 @@
#name : #include <¡­>
#name : #include <...>
# --
#include <$1>

View File

@ -1,4 +1,4 @@
#name : do { ¡­ } while (¡­)
#name : do { ... } while (...)
# --
do
{

View File

@ -1,4 +1,4 @@
#name : for (¡­; ¡­; ¡­) { ¡­ }
#name : for (...; ...; ...) { ... }
# --
for (${1:int i = 0}; ${2:i < N}; ${3:++i})
{

View File

@ -1,4 +1,4 @@
#name : if ( ¡­ ) { ¡­ }
#name : if (...) { ... }
# --
if (${1:condition})
{

View File

@ -1,3 +1,3 @@
#name : #include "¡­"
#name : #include "..."
# --
#include "$1"

View File

@ -1,4 +1,4 @@
#name: int main(argc, argv) { ¡­ }
#name: int main(argc, argv) { ... }
# --
int main(int argc, char *argv)
{

View File

@ -1,4 +1,4 @@
#name : struct Ą­ { Ą­ }
#name : struct ... { ... }
# --
struct ${1:name}
{

View File

@ -523,10 +523,11 @@ an example:
(defun yas/directory-files (directory file?)
"Return directory files or subdirectories in full path."
(remove-if (lambda (file)
(and (not (string-match "/\\.[^/]*$" file))
(if file?
(not (file-directory-p file))
(file-directory-p file))))
(or (string-match "^\\."
(file-name-nondirectory file))
(if file?
(file-directory-p file)
(not (file-directory-p file)))))
(directory-files directory t)))
(defun yas/make-menu-binding (template)