Fredrik Ekre
948f2d30ac
Fix module indent with parenthesized module name
1 year ago
Fredrik Ekre
0660870c08
Fix bug in formatting in export/public expressions with macronames
1 year ago
Fredrik Ekre
d65bf57ae0
Format spaces in export/public expressions, fixes #25
1 year ago
Fredrik Ekre
3f9b692167
Format spaces in using/import expressions, fixes #25
1 year ago
Kristoffer Carlsson
ebc2ba5917
parse with latest 1.x compatible syntax ( #24 )
1 year ago
Fredrik Ekre
0e214b6c69
Remove leading whitespace in the beginning of a file
...
This is needed to "bootstrap" the indent process since there isn't a
leading newline to indent to level 0 when there is leading whitespace.
1 year ago
Fredrik Ekre
1184d2ba43
Fix indent of array comprehensions, fixes #20
1 year ago
Fredrik Ekre
bdbe60e230
Replace tabs with spaces
1 year ago
Fredrik Ekre
7604ae749a
Format macrocalls with parens as function calls
...
This patch formats macrocalls with parens like function calls. This
means that indenting and list-spacing is the same.
1 year ago
Fredrik Ekre
d09e6af52b
Put semi colon on calls with only keyword arguments on first line
1 year ago
Fredrik Ekre
afa4252db2
No leading and a single trailing newline for files
1 year ago
Fredrik Ekre
2ddbb38e60
Fix indent of while-end with K"block" as conditions
1 year ago
Fredrik Ekre
eb7f55bb6e
Add tests and commentary about `∈` in non-loop contexts
...
Closes #17 .
1 year ago
Fredrik Ekre
806c81be36
Fix line continuation to not continue the first newline leaf
1 year ago
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
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
1568852e3f
Fix single line module
1 year ago
Fredrik Ekre
07bae80717
Fix multiple trailing K";" in paren blocks
1 year ago
Fredrik Ekre
f64fbfe99b
Fix spacing in K"parens" nodes
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
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
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