Aaron Meurer
34154d05a0
Don't mutate the standard library token.tok_name dictionary ( #42 )
...
* Don't mutate the standard library token.tok_name dictionary
Fixes #41 .
* More robust test that tok_name isn't mutated
This test now works in Python 2.7, and actually tests something in Python 3.7,
and it's better anyway because it tests the whole dictionary instead of just
one token.
* Fix test_tok_name_copied in Python 3.7 and PyPy
Apparently Python 3.7 adds N_TOKENS to the tok_name dictionary, and PyPy
doesn't have NT_OFFSET in it.
2018-06-08 18:46:16 +02:00
Dave Halter
6f385bdba1
Not testing Python 3.3 anymore on travis. It seems to be broken
v0.2.1
2018-05-21 12:55:49 +02:00
Dave Halter
4fc31c58b3
Add a changelog for 0.2.1
2018-05-21 12:48:31 +02:00
Dave Halter
689decc66c
Push the version
2018-05-21 12:44:10 +02:00
Dave Halter
c2eacdb81c
The diff parser was slighly off with prefixes, fixes #1121
2018-05-20 19:13:50 +02:00
Dave Halter
ac0bf4fcdd
A better repr for the endmarker
2018-05-17 09:56:16 +02:00
Dave Halter
948f9ccecc
Merge branch 'master' of github.com:davidhalter/parso
2018-04-23 23:42:11 +02:00
Dave Halter
f20106d88e
Fix a prefix issue with error leafs.
2018-04-22 19:28:30 +02:00
Aaron Meurer
f4912f6c17
Use the correct field name in the PythonToken repr
2018-04-19 22:20:23 +02:00
Jonas Tranberg
bf5a4b7c2c
Added path param to load_grammar for loading custom grammar files
2018-04-19 10:16:33 +02:00
Dave Halter
579146b501
Don't test python 2.6 in tox by default, because the newer pip versions don't support it anymore
v0.2.0
2018-04-15 14:46:35 +02:00
Dave Halter
deb4dbce1c
Set a release date
2018-04-15 13:54:10 +02:00
Dave Halter
8eda8decea
Fix whitespace issues with prefixes
2018-04-07 15:34:58 +02:00
Dave Halter
f6935935c0
Use proper leafs for fstring start/end
2018-04-07 12:32:33 +02:00
Dave Halter
d3fa7e1cad
Fix a Python 2 related issue.
2018-04-07 11:14:41 +02:00
Dave Halter
83d9abd036
Forgot to delete another print. WTF I'm tired
2018-04-07 02:22:45 +02:00
Dave Halter
222e9117b4
Unfortunately forgot to delete a print
2018-04-07 02:21:59 +02:00
Dave Halter
eda2207e6c
Start to write a changelog for 0.2.0
2018-04-07 02:20:00 +02:00
Dave Halter
a91e5f2775
Merge branch 'fstrings'
...
f-strings are now parsed as part of the Python grammar and not in separate
steps.
Note that this is not the way that CPython does it. CPython still uses multiple
parse steps in ast.c.
2018-04-07 02:17:02 +02:00
Dave Halter
cba4f2ccc1
Fix the syntax errors from f-strings
2018-04-07 02:14:35 +02:00
Dave Halter
8f1a436ba1
Remove the old f-string grammar and fix the tests with the new syntax
2018-04-07 02:11:26 +02:00
Dave Halter
9941348ec6
Add python 3.7 to tox
2018-04-06 20:30:07 +02:00
Dave Halter
afb71dc762
Remove the f-string rules and replace them with new ones
2018-04-06 20:29:22 +02:00
Dave Halter
0d96b12566
Fix the fstring syntax if there's a conversion with exclamation mark
2018-04-06 09:59:15 +02:00
Dave Halter
9d2ce4bcd4
Fix a few fstring error gatherings
2018-04-06 09:50:07 +02:00
Dave Halter
a3e280c2b9
Use strings as a non-terminal symbol in all grammars
...
This makes it easier to write the same logic for all Python versions
2018-04-05 09:55:19 +02:00
Dave Halter
7c7f4f4e54
Fix a test
2018-04-05 00:45:23 +02:00
Dave Halter
56b3e2cdc8
Also use the fstring modfications for the 3.7 grammar
2018-04-05 00:45:03 +02:00
Dave Halter
97f042c6ba
Remove clutter from the grammar
2018-03-31 14:26:12 +02:00
Dave Halter
b1aa7c6a79
Cleanup a lot of details in the tokenizer for fstrings
2018-03-31 14:25:29 +02:00
Dave Halter
235fda3fbb
Fix a few things so that the tokenizer can at least parse the grammar.
2018-03-30 22:13:18 +02:00
Dave Halter
d8d2e596a5
A first implementation of the fstring tokenizer
2018-03-30 20:50:49 +02:00
Dave Halter
e05ce5ae31
Revert "A small improvement in checks"
...
The problem with this commit is that it probably makes some checks slower. It's
still slightly more beautiful, but we leave it for now.
This reverts commit 25e4ea9c24 .
2018-03-28 09:51:37 +02:00
Dave Halter
25e4ea9c24
A small improvement in checks
2018-03-28 02:16:37 +02:00
Dave Halter
9f88fe16a3
Added the fstring grammar without the tokenization part
...
This means that fstrings are not yet parsed, because there are no f-string tokens.
2018-03-28 02:03:18 +02:00
Dave Halter
ba0e7a2e9d
A comparison was slightly off
2018-03-24 22:40:12 +01:00
Dave Halter
dc80152ff8
Ignore the pytest cache
2018-03-23 20:24:08 +01:00
Dave Halter
9e3154d167
Fix an error message change in Python 3.7
2018-03-23 20:23:15 +01:00
Dave Halter
065da34272
Fix an issue in the diff parser about endmarker newlines
...
This was discovered in https://github.com/davidhalter/jedi/issues/1000 .
2018-03-11 23:41:18 +01:00
Dave Halter
f89809de9a
Remove the copyright for good
2018-01-09 23:27:46 +01:00
Chris Lamb
332c57ebcb
Remove copyright years from documentation. ( Closes : #25 )
2018-01-09 23:24:39 +01:00
lcolaholicl
acb173b703
Fix typo: containes→contains
2017-12-31 13:59:41 +01:00
Daniel Hahler
47e78b37fe
tox: use older pytest only for py26/py33
...
Follow-up to https://github.com/davidhalter/parso/commit/73439d5863daea .
2017-12-30 22:11:07 +01:00
Dave Halter
fc44af6165
Merge branch 'master' of github.com:davidhalter/parso
2017-12-30 18:08:17 +01:00
Dave Halter
73439d5863
Don't use a newer pytest version
...
Otherwise python 3.3 and 2.6 are not working anymore
2017-12-30 18:07:58 +01:00
Dave Halter
085aad3038
The tags should be annotated if possible
2017-12-30 14:05:50 +01:00
lcolaholicl
7db500bfbc
Fix another typo.
...
Delete accidentally repeated `None.`
2017-12-30 13:52:33 +01:00
lcolaholicl
e689f3dce6
Fix typo
...
keyworda → keyword
2017-12-30 13:52:33 +01:00
Max Nordlund
b076cdc12a
Fix typo
2017-12-26 03:09:40 +01:00
Dave Halter
0dea94c801
Bump version for the next release
2017-11-05 15:11:51 +01:00