Skip to content

Commit

Permalink
fix #753 - to less transforms inside a macro
Browse files Browse the repository at this point in the history
  • Loading branch information
domluna committed Sep 8, 2023
1 parent 70569a3 commit 14c11bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "JuliaFormatter"
uuid = "98e50ef6-434e-11e9-1051-2b60c6c9e899"
authors = ["Dominique Luna <[email protected]>"]
version = "1.0.36"
version = "1.0.37"

[deps]
CSTParser = "00ebfdb7-1f24-5e51-bd34-a7502290713f"
Expand Down
6 changes: 2 additions & 4 deletions test/sciml_style.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@
m.inv_match === nothing && throw(ArgumentError("Backwards matching not defined. `complete` the matching first."))
"""
formatted_str = raw"""
@noinline function require_complete(m::Matching)
m.inv_match === nothing &&
throw(ArgumentError("Backwards matching not defined. `complete` the matching first."))
end
@noinline require_complete(m::Matching) = m.inv_match === nothing &&
throw(ArgumentError("Backwards matching not defined. `complete` the matching first."))
"""
@test format_text(str, SciMLStyle()) == formatted_str

Expand Down

0 comments on commit 14c11bf

Please sign in to comment.