Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add more work on handling erlang terms.

  • Loading branch information...
commit 54ed57cfb8492731e548a5c51e3c4a615f2c0650 1 parent acefd5c
@jlouis authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 bin/erlfmt
View
9 bin/erlfmt
@@ -1,8 +1,13 @@
#!/usr/bin/env rc
-cat | 9 sed -e 's/\.\.\./''...''/g' \
+cat | 9 sed \
+ -e 's/\.\.\./''...''/g' \
+ -e 's/(<[0-9]+\.[0-9]+\.[0-9]+>)/''\1''/g' \
+ -e 's/(#Port<[0-9]+.[0-9]+>)/''\1''/g' \
| erlpp \
- | 9 sed -e 's/''\.\.\.''/…/g' -e 's/<</«/g' -e 's/>>/»/g'
+ | 9 sed \
+ -e 's/''\.\.\.''/…/g' \
+ -e 's/<</«/g' -e 's/>>/»/g'
Please sign in to comment.
Something went wrong with that request. Please try again.