Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
6afe3ec
Setup nix
tye-exe Oct 27, 2025
9146ddc
Changed to workspace
tye-exe Oct 27, 2025
42723b4
Separated into library and binary
tye-exe Oct 27, 2025
765a525
Moved amber version detection into library
tye-exe Oct 29, 2025
8678455
Setup nix
tye-exe Oct 27, 2025
605994f
Changed to workspace
tye-exe Oct 27, 2025
84b0aad
Separated into library and binary
tye-exe Oct 27, 2025
f9cfb06
Moved amber version detection into library
tye-exe Oct 29, 2025
568e356
Update to latest master commit
tye-exe Nov 5, 2025
94d19e7
First attempt at formatting
tye-exe Nov 5, 2025
80c04d1
Add display for command modifier
tye-exe Nov 23, 2025
719d981
Can parse files without error
tye-exe Nov 23, 2025
69ef289
Function parsing
tye-exe Nov 23, 2025
80ebc94
Fix fragment remove method implementations
tye-exe Nov 30, 2025
253d414
Use file content for text type
tye-exe Nov 30, 2025
3bd90c8
Allow same-line comments
tye-exe Dec 11, 2025
f6d8379
Merge branch 'master' into formatting
tye-exe Dec 14, 2025
d64d414
Do not format bash commands
tye-exe Dec 14, 2025
6180136
Ignore unused variables
tye-exe Dec 14, 2025
a09154b
Do not surround variables with {}
tye-exe Dec 14, 2025
9f115a4
Properly handle imports
tye-exe Dec 14, 2025
a3b5337
Correctly handle doc comments
tye-exe Dec 29, 2025
c26376f
Give formatter program context
tye-exe Jan 4, 2026
1cfcc21
Fix global statement spacing
tye-exe Jan 4, 2026
b149730
Minor refactor
tye-exe Jan 4, 2026
45875b3
Remove trailing whitespace inside functions
tye-exe Jan 4, 2026
5d203d2
Preserve newlines from input files
tye-exe Feb 22, 2026
a78cbe3
Allow import statements to be separated with a newline
tye-exe Feb 22, 2026
c4a79b2
Prepare format method to be generic over amber versions
tye-exe Feb 22, 2026
af49cf1
Read file from cli args
tye-exe Feb 22, 2026
3ae901a
Split 040 formatting code into multiple modules
tye-exe Feb 22, 2026
8c11183
Test import statement formatting
tye-exe Feb 22, 2026
f896c6b
Preserve line breaks in global statements
tye-exe Feb 22, 2026
4ea76c1
Don't force space after if block
tye-exe Feb 24, 2026
3d5508a
Don't output () for main with no args
tye-exe Feb 25, 2026
16dc140
Ensure main and fun blocks are surrounded by newlines
tye-exe Feb 25, 2026
48d3314
Don't output any whitespace after last amber expression
tye-exe Feb 25, 2026
9565ed2
Ensure proper spacing for function return types
tye-exe Feb 25, 2026
9201d10
Format argument types and default values
tye-exe Feb 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
131 changes: 60 additions & 71 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[workspace]
members = [
"crates/types",
"crates/grammar",
"crates/analysis",
"crates/server",
"crates/types",
"crates/grammar",
"crates/analysis",
"crates/server",
"crates/formatter",
]
resolver = "2"

Expand Down
9 changes: 9 additions & 0 deletions crates/formatter/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "amber-fmt"
version = "0.1.0"
edition = "2024"

[dependencies]
amber_types = { path = "../types" }
amber_grammar = { path = "../grammar" }
thiserror = "2.0.12"
Loading
Loading