branch: elpa/yasnippet-snippets
commit f0048d2920b52958437b3b4b19eca56f2754c9c1
Author: brotherbus <42229878+brother...@users.noreply.github.com>
Commit: GitHub <nore...@github.com>

    moved ending point $0 in body of expressions (#506)
    
    I put the ending point for the snippet in the bodies of the expressions so 
that one can take as advantage of yas-wrap-around-region.
---
 snippets/julia-mode/begin  | 17 ++++++++---------
 snippets/julia-mode/do     | 17 ++++++++---------
 snippets/julia-mode/for    | 17 ++++++++---------
 snippets/julia-mode/fun    | 17 ++++++++---------
 snippets/julia-mode/if     | 17 ++++++++---------
 snippets/julia-mode/let    | 17 ++++++++---------
 snippets/julia-mode/macro  | 17 ++++++++---------
 snippets/julia-mode/module | 17 ++++++++---------
 snippets/julia-mode/mutstr | 17 ++++++++---------
 snippets/julia-mode/struct | 17 ++++++++---------
 snippets/julia-mode/while  | 17 ++++++++---------
 11 files changed, 88 insertions(+), 99 deletions(-)

diff --git a/snippets/julia-mode/begin b/snippets/julia-mode/begin
index 78f851e605..0bbc6732cb 100644
--- a/snippets/julia-mode/begin
+++ b/snippets/julia-mode/begin
@@ -1,9 +1,8 @@
-# -*- mode: snippet -*-
-# name: begin ... end
-# key: begin
-# contributor: hankail05
-# --
-begin
-    ${1:body}
-end
-$0
+# -*- mode: snippet -*-
+# name: begin ... end
+# key: begin
+# contributor: hankail05
+# --
+begin
+    $0
+end
\ No newline at end of file
diff --git a/snippets/julia-mode/do b/snippets/julia-mode/do
index 7630ffcfa8..80cbabbd37 100644
--- a/snippets/julia-mode/do
+++ b/snippets/julia-mode/do
@@ -1,9 +1,8 @@
-# -*- mode: snippet -*-
-# name: do ... ... end
-# key: do
-# contributor: hankail05
-# --
-do ${1:x}
-    ${2:body}
-end
-$0
\ No newline at end of file
+# -*- mode: snippet -*-
+# name: do ... ... end
+# key: do
+# contributor: hankail05
+# --
+do ${1:x}
+    $0
+end
\ No newline at end of file
diff --git a/snippets/julia-mode/for b/snippets/julia-mode/for
index 8f9619f438..44067bd98c 100644
--- a/snippets/julia-mode/for
+++ b/snippets/julia-mode/for
@@ -1,9 +1,8 @@
-# -*- mode: snippet -*-
-# name: for ... ... end
-# key: for
-# contributor: hankail05
-# --
-for ${1:i} ${2:$$(yas-julia-iteration-keyword-choice)} ${3:1:n}
-    ${4:body}
-end
-$0
+# -*- mode: snippet -*-
+# name: for ... ... end
+# key: for
+# contributor: hankail05
+# --
+for ${1:i} ${2:$$(yas-julia-iteration-keyword-choice)} ${3:1:n}
+    $0
+end
\ No newline at end of file
diff --git a/snippets/julia-mode/fun b/snippets/julia-mode/fun
index 2abeccf1bb..2235d301a1 100644
--- a/snippets/julia-mode/fun
+++ b/snippets/julia-mode/fun
@@ -1,9 +1,8 @@
-# -*- mode: snippet -*-
-# name: function(...) ... end
-# key: fun
-# contributor: hankail05
-# --
-function ${1:fun}(${2:args})
-    ${3:body}
-end
-$0
\ No newline at end of file
+# -*- mode: snippet -*-
+# name: function(...) ... end
+# key: fun
+# contributor: hankail05
+# --
+function ${1:fun}(${2:args})
+    $0
+end
\ No newline at end of file
diff --git a/snippets/julia-mode/if b/snippets/julia-mode/if
index adc4ad0488..632730c6f6 100644
--- a/snippets/julia-mode/if
+++ b/snippets/julia-mode/if
@@ -1,9 +1,8 @@
-# -*- mode: snippet -*-
-# name: if ... ... end
-# key: if
-# contributor: hankail05
-# --
-if ${1:cond}
-    ${2:body}
-end
-$0
+# -*- mode: snippet -*-
+# name: if ... ... end
+# key: if
+# contributor: hankail05
+# --
+if ${1:cond}
+    $0
+end
\ No newline at end of file
diff --git a/snippets/julia-mode/let b/snippets/julia-mode/let
index e53385cb6d..6e95a85fa8 100644
--- a/snippets/julia-mode/let
+++ b/snippets/julia-mode/let
@@ -1,9 +1,8 @@
-# -*- mode: snippet -*-
-# name: let ... ... end
-# key: let
-# contributor: hankail05
-# --
-let ${1:x = 0}
-    ${2:body}
-end
-$0
\ No newline at end of file
+# -*- mode: snippet -*-
+# name: let ... ... end
+# key: let
+# contributor: hankail05
+# --
+let ${1:x = 0}
+    $0
+end
\ No newline at end of file
diff --git a/snippets/julia-mode/macro b/snippets/julia-mode/macro
index 56b29765de..e082d4bfaf 100644
--- a/snippets/julia-mode/macro
+++ b/snippets/julia-mode/macro
@@ -1,9 +1,8 @@
-# -*- mode: snippet -*-
-# name: macro(...) ... end
-# key: macro
-# contributor: hankail05
-# --
-macro ${1:macro}(${2:args})
-    ${3:body}
-end
-$0
+# -*- mode: snippet -*-
+# name: macro(...) ... end
+# key: macro
+# contributor: hankail05
+# --
+macro ${1:macro}(${2:args})
+    $0
+end
\ No newline at end of file
diff --git a/snippets/julia-mode/module b/snippets/julia-mode/module
index 4ff4538e94..099e7f3377 100644
--- a/snippets/julia-mode/module
+++ b/snippets/julia-mode/module
@@ -1,9 +1,8 @@
-# -*- mode: snippet -*-
-# name: module ... ... end
-# key: module
-# contributor: hankail05
-# --
-module ${1:name}
-${2:body}
-end
-$0
+# -*- mode: snippet -*-
+# name: module ... ... end
+# key: module
+# contributor: hankail05
+# --
+module ${1:name}
+$0
+end
\ No newline at end of file
diff --git a/snippets/julia-mode/mutstr b/snippets/julia-mode/mutstr
index feeb3c783d..e8a3f93b3d 100644
--- a/snippets/julia-mode/mutstr
+++ b/snippets/julia-mode/mutstr
@@ -1,9 +1,8 @@
-# -*- mode: snippet -*-
-# name: mutable struct ... end
-# key: mutstr
-# contributor: hankail05
-# --
-mutable struct ${1:name}
-    ${2:body}
-end
-$0
+# -*- mode: snippet -*-
+# name: mutable struct ... end
+# key: mutstr
+# contributor: hankail05
+# --
+mutable struct ${1:name}
+    $0
+end
\ No newline at end of file
diff --git a/snippets/julia-mode/struct b/snippets/julia-mode/struct
index b0d31e0f40..37fd6427e7 100644
--- a/snippets/julia-mode/struct
+++ b/snippets/julia-mode/struct
@@ -1,9 +1,8 @@
-# -*- mode: snippet -*-
-# name: struct ... end
-# key: struct
-# contributor: hankail05
-# --
-struct ${1:name}
-    ${2:body}
-end
-$0
\ No newline at end of file
+# -*- mode: snippet -*-
+# name: struct ... end
+# key: struct
+# contributor: hankail05
+# --
+struct ${1:name}
+    $0
+end
\ No newline at end of file
diff --git a/snippets/julia-mode/while b/snippets/julia-mode/while
index 7a13bca1ae..c613e59918 100644
--- a/snippets/julia-mode/while
+++ b/snippets/julia-mode/while
@@ -1,9 +1,8 @@
-# -*- mode: snippet -*-
-# name: while ... ... end
-# key: while
-# contributor: hankail05
-# --
-while ${1:cond}
-    ${2:body}
-end
-$0
\ No newline at end of file
+# -*- mode: snippet -*-
+# name: while ... ... end
+# key: while
+# contributor: hankail05
+# --
+while ${1:cond}
+    $0
+end
\ No newline at end of file

Reply via email to