File tree Expand file tree Collapse file tree 19 files changed +166
-0
lines changed Expand file tree Collapse file tree 19 files changed +166
-0
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 1+ # -*- mode : snippet -*-
2+ # name : do ... ... end
3+ # key : do
4+ # contributor : hankail05
5+ # --
6+ do ${ 1 :x }
7+ ${ 2 :body }
8+ end
9+ $0
Original file line number Diff line number Diff line change 1+ # -*- mode : snippet -*-
2+ # name : for ... ... end
3+ # key : for
4+ # contributor : hankail05
5+ # --
6+ for ${ 1 :i } ${ 2 :$$ (yas-julia-iteration-keyword-choice) } ${ 3 :1:n }
7+ ${ 4 :body }
8+ end
9+ $0
Original file line number Diff line number Diff line change 1+ # -*- mode : snippet -*-
2+ # name : function(...) ... end
3+ # key : fun
4+ # contributor : hankail05
5+ # --
6+ function ${ 1 :fun } (${ 2 :args } )
7+ ${ 3 :body }
8+ end
9+ $0
Original file line number Diff line number Diff line change 1+ # -*- mode : snippet -*-
2+ # name : if ... ... end
3+ # key : if
4+ # contributor : hankail05
5+ # --
6+ if ${ 1 :cond }
7+ ${ 2 :body }
8+ end
9+ $0
Original file line number Diff line number Diff line change 1+ # -*- mode : snippet -*-
2+ # name : if ... ... else ... end
3+ # key : ife
4+ # contributor : hankail05
5+ # --
6+ if ${ 1 :cond }
7+ ${ 2 :true }
8+ else
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