Fredrik Ekre
4bee1e0f94
Remove the octal formatting
...
Octal formatting isn't as useful as hex formatting and it is also value
dependent (not just string-length dependent) which makes it a bit odd.
Octals are also very rare. One of the more common ones are filemodes and
for that case e.g. 0o755 looks better than 0o000755. Closes #40 .
1 year ago
Fredrik Ekre
a41bc5dd81
Fix trailing semicolon in parens-block
...
This patch make sure to keep the trailing semicolon in parens-block if
there is just a single item. Without the trailing colon the text would
be parsed as parens but not as a block (compare `(1)` vs `(1,)` for
tuples). Closes #38 .
1 year ago
Fredrik Ekre
3ee9531e4d
Fix function indent with unusual infix definitions
1 year ago
Fredrik Ekre
f0a6d32476
Fix handling of comments within import/using lists
1 year ago
Kristoffer
e697677cc2
Fix a few JET opt errors, closes #31 .
1 year ago
Fredrik Ekre
bf9e3b0409
Skip trailing comma in list after macrocall items
...
Fixes #32 .
1 year ago
Fredrik Ekre
d82a8795d9
Add is_triple_string utility function
1 year ago
Fredrik Ekre
347490760a
Fix formatting of multiline triple strings with \-escaped newlines
...
Closes #29 .
1 year ago
Kristoffer Carlsson
21265f7500
avoid variables captured in closure from becoming boxed by passing them in as arguments. ( #30 )
1 year ago
Fredrik Ekre
aeabe11718
Indent: recurse into multiline strings, closes #27
1 year ago
Fredrik Ekre
7ab66e5fd1
Fix continuation-indent in cartesian iterator heads
1 year ago
Fredrik Ekre
836d498c2d
Multiline list classification: recurse into multiline triple strings
1 year ago
Fredrik Ekre
4d2c0fd041
Fix list spacing in K"braces" with K"parameters"
1 year ago
Fredrik Ekre
ba6522aced
Fix indent of multiline vcat with trailing whitespace
1 year ago
Fredrik Ekre
c76c60801f
Fix formatting of mixed generator/cartesian nodes
1 year ago
Fredrik Ekre
8e7af2db10
Fix (unnecessary) parenthesized symbols in export/public
1 year ago
Fredrik Ekre
0fdfc27c83
Fix formatting of K"parameters" inside K"ref"
1 year ago
Fredrik Ekre
49e6c9dc53
Fix handling of inline comments in export/public expressions
1 year ago
Fredrik Ekre
c19f5b578e
Fix import/using lists with operators and macros
1 year ago
Fredrik Ekre
88e6560700
Fix indent of long form functor definitions
1 year ago
Fredrik Ekre
b87b3cde1b
Fix import renaming of macros
1 year ago
Fredrik Ekre
d156504692
Fix interpolated vars as `as`-aliases
1 year ago
Fredrik Ekre
e57859e267
Allow interpolated vars in export lists inside macrocalls
1 year ago
Fredrik Ekre
bbc144d143
Fix var-nodes in export/public lists
1 year ago
Fredrik Ekre
9043278d44
Fix non-K"Identifier" leafs in export lists
1 year ago
Fredrik Ekre
2a9843fc99
Fix export/public expressions with comments
1 year ago
Fredrik Ekre
6d975d35a3
Fix parenthesized macrocalls with keyword arguments
1 year ago
Fredrik Ekre
d8efd2f05d
Fix formatting of import/using with `as` renaming
1 year ago
Fredrik Ekre
3645072700
Fix bug in formatting of export/public expressions with interpolated vars
1 year ago
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
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
2dfe195f86
Fix trailing comma in parameters
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
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
6983830966
FIXME: Octal BigInt needs better detection
1 year ago
Fredrik Ekre
1568852e3f
Fix single line module
1 year ago