Skip to content

Commit

Permalink
fix #770 (#772)
Browse files Browse the repository at this point in the history
* fix #770

* noteS

* v
  • Loading branch information
domluna authored Oct 19, 2023
1 parent 1abcfc7 commit 74ff7bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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 <dluna132@gmail.com>"]
version = "1.0.39"
version = "1.0.40"

[deps]
CSTParser = "00ebfdb7-1f24-5e51-bd34-a7502290713f"
Expand Down
5 changes: 4 additions & 1 deletion src/styles/default/pretty.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1386,7 +1386,10 @@ function p_chainopcall(

nws = nospace ? 0 : 1
for (i, a) in enumerate(cst)
if CSTParser.isoperator(a)
if CSTParser.isoperator(a) && i == length(cst)
#+a+1 is parsed as nodes [a, +, 1, +]
continue
elseif CSTParser.isoperator(a)
add_node!(t, Whitespace(nws), s)
add_node!(t, pretty(style, a, s), s, join_lines = true)
if nonest
Expand Down

2 comments on commit 74ff7bc

@domluna
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/93744

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.0.40 -m "<description of version>" 74ff7bc1a6ed8687324f549184b4f0434bd9c412
git push origin v1.0.40

Please sign in to comment.