Skip to content

Commit ce4cc30

Browse files
committed
Fix whitespace using Julia contrib/check-whitespace.jl
1 parent 99e975a commit ce4cc30

File tree

12 files changed

+11
-22
lines changed

12 files changed

+11
-22
lines changed

LICENSE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,3 @@ package and is also licensed under the MIT "Expat" License:
4343
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
4444
> SOFTWARE.
4545
>
46-

docs/src/design.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,4 +848,3 @@ indentation from the syntax tree? Source formatting involves a big pile of
848848
heuristics to get something which "looks nice"... and ML systems have become
849849
very good at heuristics. Also, we've got huge piles of training data — just
850850
choose some high quality, tastefully hand-formatted libraries.
851-

docs/src/howto.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,3 @@ To reduce startup latency you can combine with a custom system as described in
3535
the [Julia VScode docs](https://www.julia-vscode.org/docs/dev/userguide/compilesysimage/#Creating-a-sysimage-for-the-active-environment),
3636
combined with the precompile execution file in `sysimage/precompile_exec.jl` in the source tree.
3737
For additional detail see the discussion in [issue #128](https://github.com/JuliaLang/JuliaSyntax.jl/issues/128).
38-

docs/src/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,3 @@ Julia `Expr` can also be produced:
7777
julia> JuliaSyntax.parsestmt(Expr, "(x + y)*z")
7878
:((x + y) * z)
7979
```
80-

docs/src/reference.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,4 +324,3 @@ Expr(:ncat)
324324
│ └─ :d
325325
└─ :x
326326
```
327-

src/julia/literal_parsing.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,4 +471,3 @@ function lower_identifier_name(name::Symbol, k::Kind)
471471
Symbol(lower_identifier_name(string(name), k))
472472
end
473473
end
474-

sysimage/compile.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,3 @@ PackageCompiler.create_sysimage(
4545
4646
Use it with `julia -J "$image_path"`
4747
"""
48-

test/diagnostics.jl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ end
3434
end
3535

3636
@testset "parser errors" begin
37-
@test diagnostic("+ #==# (a,b)") ==
37+
@test diagnostic("+ #==# (a,b)") ==
3838
Diagnostic(2, 7, :error, "whitespace not allowed between prefix function call and argument list")
3939
@test diagnostic("1 -+ (a=1, b=2)") ==
4040
Diagnostic(5, 5, :error, "whitespace not allowed between prefix function call and argument list")
@@ -44,18 +44,18 @@ end
4444
@test diagnostic("function (\$f) body end") ==
4545
Diagnostic(10, 13, :error, "Ambiguous signature. Add a trailing comma if this is a 1-argument anonymous function; remove parentheses if this is a macro call acting as function signature.")
4646

47-
@test diagnostic("[email protected]", only_first=true) ==
47+
@test diagnostic("[email protected]", only_first=true) ==
4848
Diagnostic(3, 4, :error, "`@` must appear on first or last macro name component")
49-
@test diagnostic("@M.(x)") ==
49+
@test diagnostic("@M.(x)") ==
5050
Diagnostic(1, 3, :error, "dot call syntax not supported for macros")
5151

52-
@test diagnostic("try x end") ==
52+
@test diagnostic("try x end") ==
5353
Diagnostic(1, 9, :error, "try without catch or finally")
5454
# TODO: better range
55-
@test diagnostic("@A.\$x a") ==
55+
@test diagnostic("@A.\$x a") ==
5656
Diagnostic(4, 5, :error, "invalid macro name")
5757

58-
@test diagnostic("a, , b") ==
58+
@test diagnostic("a, , b") ==
5959
Diagnostic(4, 4, :error, "unexpected `,`")
6060
@test diagnostic(")", allow_multiple=true) == [
6161
Diagnostic(1, 1, :error, "unexpected `)`")
@@ -118,15 +118,15 @@ end
118118
end
119119

120120
@testset "parser warnings" begin
121-
@test diagnostic("@(A)", only_first=true) ==
121+
@test diagnostic("@(A)", only_first=true) ==
122122
Diagnostic(2, 4, :warning, "parenthesizing macro names is unnecessary")
123-
@test diagnostic("try finally catch a ; b end") ==
123+
@test diagnostic("try finally catch a ; b end") ==
124124
Diagnostic(13, 23, :warning, "`catch` after `finally` will execute out of order")
125-
@test diagnostic("import . .A") ==
125+
@test diagnostic("import . .A") ==
126126
Diagnostic(9, 10, :warning, "space between dots in import path")
127-
@test diagnostic("import A .==") ==
127+
@test diagnostic("import A .==") ==
128128
Diagnostic(9, 9, :warning, "space between dots in import path")
129-
@test diagnostic("import A.:+") ==
129+
@test diagnostic("import A.:+") ==
130130
Diagnostic(10, 10, :warning, "quoting with `:` is not required here")
131131
# No warnings for imports of `:` and parenthesized `(..)`
132132
@test diagnostic("import A.:, :", allow_multiple=true) == []

test/fuzz_test.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,4 +1022,3 @@ end
10221022
#
10231023
# fuzz_test(try_hook_failure, product_token_fuzz(cutdown_tokens, 2))
10241024
# fuzz_test(try_parseall_failure, product_token_fuzz(cutdown_tokens, 2))
1025-

test/test_utils.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,4 +482,3 @@ function Meta_parseall(text::AbstractString; filename="none", lineno=1)
482482
ex,_ = _Meta_parse_string(text, String(filename), lineno, 1, :all)
483483
return ex
484484
end
485-

0 commit comments

Comments
 (0)