File tree Expand file tree Collapse file tree 19 files changed +133
-22
lines changed Expand file tree Collapse file tree 19 files changed +133
-22
lines changed Original file line number Diff line number Diff line change 1+ (require 'yasnippet )
2+
3+ (defun yas-julia-iteration-keyword-choice ()
4+ " Choose the iteration keyword for for-loop"
5+ (yas-choose-value '(" =" " in" " ∈" )))
Original file line number Diff line number Diff line change 1+ # -*- mode : snippet -*-
2+ # name : abstract type ... end
3+ # key : atype
4+ # contributor : hankail05
5+ # --
6+ abstract type ${ 1 :${ 2 :type } <: ${ 3 :supertype } } end$0
Original file line number Diff line number Diff line change 1+ # -*- mode : snippet -*-
2+ # name : begin ... end
3+ # key : begin
4+ # contributor : hankail05
5+ # --
6+ begin
7+ ${ 1 :body }
8+ end
9+ $0
Original file line number Diff line number Diff line change 11# -*- mode : snippet -*-
22# name : do ... ... end
33# key : do
4- # contributor : hankail05
4+ # contributor : hankail05
55# --
66do ${ 1 :x }
7- $0
8- end
7+ ${ 2 :body }
8+ end
9+ $0
Original file line number Diff line number Diff line change 11# -*- mode : snippet -*-
2- # name : for ... in ... ... end
2+ # name : for ... ... end
33# key : for
4- # contributor : hankail05
4+ # contributor : hankail05
55# --
6- for ${ 1 :i } in ${ 2 :1:n }
7- $0
6+ for ${ 1 :i } ${ 2 : $$ (yas-julia-iteration-keyword-choice) } ${ 3 :1:n }
7+ ${ 4 : body }
88end
9+ $0
Original file line number Diff line number Diff line change 11# -*- mode : snippet -*-
22# name : function(...) ... end
33# key : fun
4- # contributor : hankail05
4+ # contributor : hankail05
55# --
66function ${ 1 :fun } (${ 2 :args } )
7- $0
8- end
7+ ${ 3 :body }
8+ end
9+ $0
Original file line number Diff line number Diff line change 11# -*- mode : snippet -*-
22# name : if ... ... end
33# key : if
4- # contributor : hankail05
4+ # contributor : hankail05
55# --
66if ${ 1 :cond }
7- $0
7+ ${ 2 : body }
88end
9+ $0
Original file line number Diff line number Diff line change 11# -*- mode : snippet -*-
22# name : if ... ... else ... end
33# key : ife
4- # contributor : hankail05
4+ # contributor : hankail05
55# --
66if ${ 1 :cond }
7- $2
7+ ${ 2 : true }
88else
9- $0
10- end
9+ ${ 3 :false }
10+ end
11+ $0
Original file line number Diff line number Diff line change 1+ # -*- mode : snippet -*-
2+ # name : let ... ... end
3+ # key : let
4+ # contributor : hankail05
5+ # --
6+ let ${ 1 :x = 0 }
7+ ${ 2 :body }
8+ end
9+ $0
Original file line number Diff line number Diff line change 1+ # -*- mode : snippet -*-
2+ # name : macro(...) ... end
3+ # key : macro
4+ # contributor : hankail05
5+ # --
6+ macro ${ 1 :macro } (${ 2 :args } )
7+ ${ 3 :body }
8+ end
9+ $0
You can’t perform that action at this time.
0 commit comments