Fredrik Ekre
6df3f7ae3a
Fix trailing comma in single item lists with generators
...
Closes #16 .
1 year ago
Fredrik Ekre
f24397eae5
Disallow more than three consecutive newlines (2 empty lines)
1 year ago
Fredrik Ekre
d973e3af52
Fix alias note in the readme
1 year ago
Fredrik Ekre
143dc62200
Add alias tip to the readme
1 year ago
Fredrik Ekre
c629ff898d
Add comment about line width limit to readme
1 year ago
Fredrik Ekre
da6ce25287
Fix indentation of module with expression as module name
1 year ago
Fredrik Ekre
d5dea456ff
Fix stripping of trailing `;` in listlike
1 year ago
Fredrik Ekre
ab6e38fe01
Fix multiple K"parameters" in argument list
1 year ago
Fredrik Ekre
dcd1d92cdd
Fix K"vect" with parameters
...
Fixes parameters in K"vect" and fixes eating of empty parameters.
1 year ago
Fredrik Ekre
6983830966
FIXME: Octal BigInt needs better detection
1 year ago
Fredrik Ekre
1568852e3f
Fix single line module
1 year ago
Fredrik Ekre
07bae80717
Fix multiple trailing K";" in paren blocks
1 year ago
Fredrik Ekre
d77ec5fd9c
Ignore negative hex floats
1 year ago
Fredrik Ekre
f64fbfe99b
Fix spacing in K"parens" nodes
1 year ago
Fredrik Ekre
4bc7c0de3f
Fix comments in lists
1 year ago
Fredrik Ekre
826a566215
Fix empty functions with Unicode symbol names
1 year ago
Fredrik Ekre
124cd48228
Fix ternary (and others) with comments in between things
1 year ago
Fredrik Ekre
2c047af253
Fix generators with multiple `for` nodes
1 year ago
Fredrik Ekre
2ce46aa355
Fix nested module indent with var"..." as module name
1 year ago
Fredrik Ekre
f517d032f3
Fix single line do-end terminated by semicolon
1 year ago
Fredrik Ekre
d326bb1e5a
Fix in-replacement in filtered cartesian iterators
1 year ago
Fredrik Ekre
9d30a41b84
Fix single line macro definition
1 year ago
Fredrik Ekre
1186020953
Fix empty named tuples, single line let-end, trailing semi
1 year ago
Fredrik Ekre
7250c3f5a1
Fix indentation of `let` with comments after variable block
1 year ago
Fredrik Ekre
8737a9238d
Fix floating point regex with zero exponent
1 year ago
Fredrik Ekre
6cb6057250
Fix let block without variables
1 year ago
Fredrik Ekre
668527d433
Indentation and spacing in implicit tuples
1 year ago
Fredrik Ekre
bbb8d9f988
Fix space after keywords with parenthesized expression
1 year ago
Fredrik Ekre
ba1ec2c6da
Fix trailing comma in named tuples
1 year ago
Fredrik Ekre
6e59ab3196
Remove trailing `;` in paren-blocks
1 year ago
Fredrik Ekre
d3be764cb9
Fix replacement of = and \in in filtered generators
1 year ago
Fredrik Ekre
e14aaa07f3
Fix single line begin-end blocks
...
TODO: Should probably require leading and trailing newlines in such
blocks?
1 year ago
Fredrik Ekre
49a6690cfa
README updates
1 year ago
Fredrik Ekre
aca80fb706
Add things to README
...
- CI config
- Formatting spec
1 year ago
Fredrik Ekre
e669bc059a
Add installation and usage instructions to README
1 year ago
Fredrik Ekre
9e006832cc
Update docstrings, convert to String faster, fix --help
1 year ago
Fredrik Ekre
0f12148854
Update some items in TODO
1 year ago
Fredrik Ekre
4f45349109
Add --fail-fast option that returns after first failure
1 year ago
Fredrik Ekre
e277ac21c7
Fixes to listlike code
...
- Listlike expressions (e.g. tuples, calls, paren-blocks, vectors) that
span multiple lines now always require a leading and a trailing
newline (and thus a trailing comma from previous listlike spacing
code). For example
```diff
-f(a,
- b)
+f(
+ a,
+ b,
+)
```
- Listlike expressions are now hard indents instead of the
soft/continuation style from before. This looks better.
- Vectors (K"vect" and K"ref") are now spaced like lists.
- Fix some bugs in spaces-around-operators when there where hidden
newlines at the beginning of the call chain.
Closes #9 .
1 year ago
Fredrik Ekre
2b782f420d
Remove old debugging code
1 year ago
Fredrik Ekre
d70a2fdef1
Require explicit - for stdin/stdout usage.
1 year ago
Fredrik Ekre
608439ba50
Spacing around ternary operators, fixes #11 .
1 year ago
Fredrik Ekre
32c3219566
Fix a bug with newline instead of space after `where`.
1 year ago
Fredrik Ekre
15598cc64c
Insert parens around op calls in colon, fixes #3 .
1 year ago
Fredrik Ekre
732ffb6364
Fix a bug in colon-spacing
...
This fixes a bug in the no-space-around-colon rule where leading
whitespace in nodes would not be removed correctly.
1 year ago
Fredrik Ekre
7d739c9558
Fix a bug with single line comments inside a list
1 year ago
Fredrik Ekre
66c699685c
Always wrap RHS of `where` in braces
1 year ago
Fredrik Ekre
5cfc92a37e
Consistent spacing around keywords
1 year ago
Fredrik Ekre
59ee9fbb92
Line continuation in curly and bracescat.
1 year ago
Fredrik Ekre
4a63e66a12
Spacing in curly, braces, bracescat.
1 year ago