Łukasz Langa
048efa7476
Trivial nits
2018-06-19 23:08:10 -07:00
Łukasz Langa
e1ef57a29e
Move INDENT value to the postponed prefix
...
This makes blib2to3's tree output valid again (which was broken by the previous
fiddling with INDENT and DEDENT nodes).
Fixes #334
2018-06-19 20:44:47 -07:00
Łukasz Langa
c891c65b6b
Store grammar pickle caches in CACHE_DIR
...
Fixes #192
Fixes #203
2018-05-19 14:06:27 -07:00
Christian Heimes
adf4ebd2d9
Remove unnecessary shebang lines ( #189 )
...
Since black.py is not marked as executable, the shebang in black.py serves
no purpose. black should be invoked through its entry point any way.
token.py is an internal module without a __name__ == '__main__' block or
other executable code. It contains just list of constants and small
helper functions.
Signed-off-by: Christian Heimes <christian@python.org>
2018-05-04 13:52:17 -07:00
Łukasz Langa
54d707e10a
Allow standalone comments to close code blocks
...
Fixes #16
Fixes #32
2018-04-23 16:17:12 -07:00
Łukasz Langa
c86fb36232
Accelerate Unicode identifier support (backport from Lib/tokenize.py)
2018-04-23 14:31:35 -07:00
Łukasz Langa
e41844feb7
Remove debug print
2018-04-11 23:22:22 -07:00
Łukasz Langa
9138a75b75
Fix parsing of unaligned standalone comments
...
Fixes #99
Fixes #112
2018-04-11 23:22:22 -07:00
Zsolt Dollenstein
ecdbf085a7
Add support for all valid string literals ( #115 )
2018-04-09 14:36:40 -07:00
Łukasz Langa
e36b8c71bb
[blib2to3] Support non-ASCII identifiers
...
This support isn't *exactly* right per PEP 3131 as the regex engine is a bit
too limited for that and I didn't want to spend time on Other_ID_Start and
Other_ID_Continue unless they're actually needed.
Hopefully this doesn't slow it down too much.
2018-04-05 02:29:01 -07:00
Łukasz Langa
63da5d088c
3.6.5 grammar pickles
2018-04-04 09:55:56 -07:00
Łukasz Langa
2d80366ac1
[blib2to3] Make the grammar pickles faster
2018-04-02 18:28:24 -07:00
Łukasz Langa
fc869039eb
Don't crash and burn on empty lines with trailing whitespace
...
Fixes #80
2018-03-26 18:41:25 -07:00
Łukasz Langa
8c565d8684
blib2to3: Never put prefixes on INDENT leaves either
2018-03-23 17:15:47 -07:00
Łukasz Langa
5fa38d4c3b
Fix tests on 3.7
2018-03-20 19:04:49 -07:00
Łukasz Langa
d9c6b99073
Restore ability to format code with legacy usage of async
as a name
...
Fixes #20
Fixes #42
2018-03-20 18:54:01 -07:00
Łukasz Langa
c90cf42d7c
blib2to3: Never put prefixes on DEDENT leaves
2018-03-16 21:47:52 -07:00
Łukasz Langa
e74117f172
Initial commit
2018-03-14 12:55:32 -07:00