1
0
forked from VimPlug/jedi
Commit Graph

780 Commits

Author SHA1 Message Date
Dave Halter 4f6368e7eb Now ErrorLeaf and ErrorNode are part of the syntax tree. This makes probably sense. The documentation will follow once it's clear how they will shape out. 2016-05-30 00:34:58 +02:00
Dave Halter daa68b66ad Fix a few issues caused by the refactoring. 2016-05-29 19:49:35 +02:00
Dave Halter feef45f4bb Fixed all on_import tests. 2016-05-29 12:08:53 +02:00
Dave Halter 4714b464a6 Further import completion improvements. 2016-05-28 02:08:43 +02:00
Dave Halter cbba314286 Progress and actually passing a few tests. 2016-05-26 00:10:54 +02:00
Dave Halter d4a10929e2 Starting to create a way of how context sensitive completions can be made.
This involves playing heavily with the parser pgen2. We use its stack to check for all possible tokens/keywords.
2016-05-23 18:11:44 +02:00
Dave Halter 36a135c347 pgen2: Don't overwrite type 2016-05-21 16:08:12 +02:00
Claude 641fb80773 add support for 'with-assignment' hints 2016-02-15 17:52:21 +01:00
Claude 3a1b2e7104 add support for 'for-assignment' hints 2016-02-15 17:37:03 +01:00
Claude 8b28678d19 support tuple-assignment 2016-02-15 17:04:19 +01:00
Claude a658f7940c typehints for variables in comments 2016-02-15 16:03:23 +01:00
Claude daeee4ba0c simple typehints in comments 2016-02-15 15:12:07 +01:00
Claude ca08b8270b combine power-or-atom_expr statements into one statement 2016-02-15 10:20:25 +01:00
Claude d5f08f8bdd opting for skipping PEP492 backwards compatibility magic, instead directly making await and async keywords
See discussion at
https://github.com/davidhalter/jedi/pull/691#issuecomment-182815864
2016-02-11 19:30:01 +01:00
Claude 7077d0b762 Using python 3.7-like parser, instead of python 3.5 magic.
See https://github.com/davidhalter/jedi/pull/691#issuecomment-182815864
Revert "Update tokenizer to adhere to PEP492 magic"

This reverts commit 65187930bd.
2016-02-11 19:14:31 +01:00
Claude 65187930bd Update tokenizer to adhere to PEP492 magic 2016-02-09 21:07:18 +01:00
Claude a09611197b add ATEQUAL token for python < 3.5 2016-02-09 18:17:31 +01:00
Claude 0ed149070a add python 3.5 '@' operator to tokenizer 2016-02-09 17:13:25 +01:00
Claude 3b0dcb3fcb move file_input to top of file, as mentioned in 19acdd32b7 2016-02-09 11:47:01 +01:00
Claude 241abe9cf3 python 3.5 uses atom_expr node in many places where previous python would use power node 2016-02-09 11:42:53 +01:00
Claude 3fb5fe8c77 allow empty bodies for better autocompletion 2016-02-09 11:22:17 +01:00
Claude 1f4c95918f Add @= ATEQUAL token 2016-02-09 11:14:56 +01:00
Dave Halter c09a916ab5 Didn't load grammar for Python 2.6 correctly. 2016-01-27 17:52:42 -02:00
Dave Halter b479e157fc Fix an issue in YieldExpr. 2015-12-26 11:39:37 +01:00
Dave Halter 2a691eefff Including pgen2 tests from the cpython repo. 2015-12-26 03:15:09 +01:00
Dave Halter 507ddfa4b0 Add the Python 3.5 syntax file. 2015-12-26 03:10:59 +01:00
Dave Halter ab5d0ed72b Starting with Python 3.4 from is not a token that always is a "new" statement. 2015-12-26 02:47:22 +01:00
Dave Halter eb2e41f771 Grammar versioning has now a smoother interface. 2015-12-25 19:30:25 +01:00
Dave Halter a373e34229 The parser without error recovery raises an error now if he's not able to parse something. 2015-12-25 18:53:05 +01:00
Dave Halter c15551ccc1 Errortokens should also make the parser fail in the normal parser. 2015-12-20 23:11:52 +01:00
Dave Halter c4906e0e3f Rework the parser so we can use arbitrary start nodes of the syntax.
This also includes a rework for error recovery in the parser. This is now just possible for file_input parsing, which means for full files.
Includes also a refactoring of the tokenizer. No more do we have to add an additional newline, because it now works correctly (removes certain confusion.
2015-12-20 22:25:41 +01:00
Dave Halter 23f40d8998 Merge branch 'linter' of https://github.com/reinhrst/jedi into pep484
Conflicts:
	AUTHORS.txt
2015-12-17 23:46:20 +01:00
Dave Halter ab91cfa3b5 Fix: print_stmt was not actually cared for in Python 2.7, #662. 2015-12-15 13:08:37 +01:00
Dave Halter 7141158484 Merge master into linter. 2015-12-15 12:28:38 +01:00
Claude 3cef8b6d55 string-annotations should only be interpreted by the pep-0484 code, not the parser 2015-12-15 00:31:47 +01:00
Claude 0f6fb23d91 override annotation() in Lambda, instead of checking in Function on type 2015-12-14 22:02:11 +01:00
Claude f8debace0d forward reference pep-0484 2015-12-13 23:47:45 +01:00
Claude 7e8112d607 pep0484 return type support 2015-12-13 23:07:13 +01:00
Claude 5a8c46d509 seperate parser and testing code 2015-12-13 21:13:20 +01:00
Dave Halter 28585dcdba Better testing of classes. 2015-12-12 02:48:37 +01:00
Dave Halter 75ac2b9686 Enable better ways for analysis to analyze loop variables. 2015-12-11 20:25:49 +01:00
Dave Halter db060c70c9 Start creating py__getitem__. 2015-12-04 12:08:29 +01:00
Dave Halter bc41ba7ca9 get_code now has a normalized variable. 2015-11-26 07:11:56 +01:00
Dave Halter 9dbfb90c20 Fix: Nested flows user scope detection was wrong. 2015-11-25 21:36:17 +01:00
Dave Halter 8174b312b5 Fix: CompFor.nodes_to_execute didn't include the right nodes. Sometimes too many, sometimes too few. 2015-11-18 18:00:15 +01:00
Dave Halter 03efbca586 Tried to get the recursion issues with if stmts working. 2015-11-16 11:44:25 +01:00
Dave Halter dc2e52fd7d Create Comprehension.py__iter__. 2015-11-14 20:34:33 +01:00
Dave Halter 306d274a3d Merge dev into linter. 2015-11-10 21:52:18 +01:00
Dave Halter 9f82cce3bb Implement py__iter__ for Generators, which means that yield expressions are now orderable, if they are not too complicated. 2015-11-09 15:15:03 +01:00
Dave Halter 4549157d39 parser.Tree.ForStmt got more utility functions. 2015-11-08 22:29:49 +01:00