Dave Halter
e0c79a9fcc
Remove some code from the grammar
2018-06-12 21:49:18 +02:00
Dave Halter
3c08b1b058
Separate the grammar generation from the grammar parsing
2018-06-12 21:30:09 +02:00
Dave Halter
0f32673092
In pgen now everything is named grammar and not c
2018-06-12 18:17:02 +02:00
Dave Halter
1e18163402
Better recovery for online classes and functions
2018-06-12 13:23:49 +02:00
Dave Halter
cef9f1bdbd
Fix one-line error recovery for all things that are using a suite
...
Fixes https://github.com/davidhalter/jedi/issues/1138 .
2018-06-12 12:56:27 +02:00
Dave Halter
23db71a5f7
Add a debug function for first tokens
2018-06-12 01:50:37 +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
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
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
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
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
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
lcolaholicl
acb173b703
Fix typo: containes→contains
2017-12-31 13:59:41 +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
Dave Halter
5c1e953c17
Add the v0.1.1 changes to the changelog
2017-11-05 12:43:55 +01:00
Dave Halter
a29ec25598
Use os.path.join instead of a slash
...
Fixes #20
2017-11-04 14:58:57 +01:00
Mike Morearty
04360cdfe7
Load from cache even when code was given
...
Change Grammar._parse() to try load_module() even if code was passed
to it.
In many cases, _parse() is passed both the code and the path to the .py
file. E.g. in jedi-vim if you type "import foo.", then every .py file in
directory "foo" will reach Grammar._parse() with both the `code` and the
`path` variables filled in. This change allows the cache to be used in
those cases.
2017-11-04 11:16:28 +01:00
Robin Roth
4824534f8a
Support async for statement
2017-11-01 19:48:24 +01:00
Alisdair Robertson
647073b1b9
Iter raise statements in a Function ( #16 )
...
* Add Function.iter_raise_stmts method and tests
* Add Alisdair Robertson to AUTHORS.txt
* Cleanup Function.iter_raise_stmts and test
Decided not to try and exclude exceptions that would be caught by a try-catch
2017-10-28 13:35:49 +02:00
Alisdair Robertson
5b5d855fab
Clarify what a prefix is
2017-10-26 15:03:05 +02:00
Alisdair Robertson
04e18ebb01
Docstring for BaseNode.get_leaf_for_position
2017-10-26 15:03:05 +02:00
Alisdair Robertson
d3cfcc24b8
Correct seperator for param anotation docstring
2017-10-26 15:03:05 +02:00
Alisdair Robertson
89646e0970
Fix Name role in PythonMixin.get_name_of_position docstring
2017-10-26 15:03:05 +02:00