Skip to content

Commit

Permalink
Move notes after proto and before body as [proposed](zsx/r3#27 (comment)
Browse files Browse the repository at this point in the history
).
  • Loading branch information
Brett Handley committed Nov 17, 2015
1 parent bf7a34b commit 150cad9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions 201508-source-format-change/source-tool.reb
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,12 @@ source-tool: context [
keep def/name
keep rejoin [#"(" def/param #")" newline]

if def/post-notes [
post-comments: copy def/post-notes
encode-lines post-comments {//} { }
keep post-comments
]

keep "^{^/"

if def/body-notes [
Expand Down Expand Up @@ -321,8 +327,8 @@ source-tool: context [
rebnative? def
notes
] [
assert [none? def/body-notes]
def/body-notes: notes
assert [none? def/post-notes]
def/post-notes: notes
notes: none
]

Expand Down

0 comments on commit 150cad9

Please sign in to comment.