Skip to content

Commit

Permalink
Fix indent for rust templates (Crandel#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
Crandel authored and alexforsale committed Aug 6, 2024
1 parent 9ae0ec4 commit 29b7987
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/rust.eld
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
rust-mode rust-ts-mode

(if "if " p " {" n> q n> "}" q)
(if "if " p " {" n> q n "}" > q)

(el "if " p " {" n> p n> "} else {" n> p n> "}" q)
(el "if " p " {" n> p n "} else {" >n> p n "}" > q)

(elif "if " p " {" n> p n> "} else if " p " {" n> p n> "}" q)
(elif "if " p " {" n> p n "} else if " p " {" >n> p n "}" > q)

(fn "fn " p "(" p ") {" n> p n "}" q)

Expand All @@ -16,4 +16,4 @@ rust-mode rust-ts-mode

(d "dbg!(" p ")" q)

(lp "loop {" n> q n> "}" q)
(lp "loop {" n> q n "}" > q)

0 comments on commit 29b7987

Please sign in to comment.