1
0
forked from VimPlug/jedi
Commit Graph

480 Commits

Author SHA1 Message Date
Dave Halter
6ec89e6785 Fix issues with flows. 2015-01-28 13:03:57 +01:00
Dave Halter
5e8f8f7a8d Fix issues with error correction / newline correction. 2015-01-27 12:24:54 +01:00
Dave Halter
62e45aa42b Fix issues with the new newline end_pos positions. 2015-01-27 02:21:05 +01:00
Dave Halter
88a3e25814 Fix newline stuff for empty parsers. 2015-01-27 01:15:39 +01:00
Dave Halter
39e869d146 Test added newline module end_pos as well. 2015-01-26 22:02:11 +01:00
Dave Halter
cdae250b36 code -> source and also care for added newlines in the fast parser. 2015-01-26 22:01:39 +01:00
Dave Halter
07c60d7ff6 Fix DEDENT issues in _remove_newline. 2015-01-26 21:17:50 +01:00
Dave Halter
61e2bba380 Tests and implementation to remove the last newline again in the parser tree, to be able to exactly reproduce the parser input. 2015-01-26 21:07:14 +01:00
Dave Halter
e5d265e845 Add a method Leaf.get_previous, to get previous leafs. 2015-01-26 21:02:56 +01:00
Dave Halter
a8943b8a80 Get the position modifiers right. 2015-01-24 20:42:28 +01:00
Dave Halter
446f5b9018 Fix issues with the right count of parsers used. 2015-01-24 20:19:03 +01:00
Dave Halter
4d6afd3c99 Fix fast parser tests. 2015-01-24 00:06:16 +01:00
Dave Halter
8569651bf4 Fast parser simplifications and bug fixes. 2015-01-21 18:34:22 +01:00
Dave Halter
91ab1d0ecd Fix an issue in the fast parser that caused stuff to be parsed always. 2015-01-21 02:03:06 +01:00
Dave Halter
7188105dc7 The fast parser is now in a more readable shape. 2015-01-19 16:21:25 +01:00
Dave Halter
ce793b1066 Trying to restructure the fast parser. 2015-01-19 14:49:44 +01:00
Dave Halter
d6b3b76d26 First fast parser version that actually let a test pass. 2015-01-19 00:39:51 +01:00
Dave Halter
01c209dc00 MergedNamesDicts for the parser. 2015-01-16 15:25:58 +01:00
Dave Halter
e477fab856 Playing with the fast parser implementation. 2015-01-16 15:23:49 +01:00
Dave Halter
cc7483498c Start using the position modifier. 2015-01-15 14:18:22 +01:00
Dave Halter
cf223a71f5 Add a position modifier for the fast parser. Not yet in use though. 2015-01-15 13:57:56 +01:00
Dave Halter
e6b9111749 Python 2.7 compatibility. 2015-01-13 02:12:49 +01:00
Dave Halter
cc64265187 Grammar modifications so that the Python2.7 grammar looks more like the Python 3.4 grammar. 2015-01-13 01:05:13 +01:00
Dave Halter
f59e05f8e7 Switch grammars depending on Python version. 2015-01-12 13:33:44 +01:00
Dave Halter
582b9b01af Get invalid INDENTs working.
The following DEDENT's are removed.
2015-01-12 12:22:57 +01:00
Dave Halter
5c98f6cf04 Suites don't have to contain statements anymore, this makes autocompletion better in certain cases. 2015-01-12 01:11:46 +01:00
Dave Halter
5334f8dbad Implemented the in operator in a very simple fashion: It returns nothing. 2015-01-09 16:05:09 +01:00
Dave Halter
d78a89df51 Move filter_after_position. 2015-01-09 01:37:42 +01:00
Dave Halter
6d58fed0e8 Remove get_defined_names in favor of names_dict in the parser tree. 2015-01-08 13:38:03 +01:00
Dave Halter
a20fd12de9 Remove all scope_names_generator usages. 2015-01-08 13:24:01 +01:00
Dave Halter
83a94c12c9 Correct global name issues. 2015-01-08 01:20:53 +01:00
Dave Halter
f5e687bc22 Use names_dicts now for all completions. 2015-01-07 23:49:13 +01:00
Dave Halter
494a3e3307 Fix usages. 2015-01-06 16:54:01 +01:00
Dave Halter
9de4a5479c Start using names_dicts instead of scope_names_generator. 2015-01-01 23:27:03 +01:00
Dave Halter
47615ae786 Remove pr.Array.type identifiers. 2014-12-19 01:05:52 +01:00
Dave Halter
98eb4a71a1 Clean up the parser tree. 2014-12-18 03:38:24 +01:00
Dave Halter
f8cd3c661a Fix slots in the parser tree. 2014-12-17 20:36:17 +01:00
Dave Halter
b2e54ca1eb The tokenizer now includes all newlines and comments in its prefix. 2014-12-17 20:11:42 +01:00
Dave Halter
9cdf6de206 More positioning for backwards tokenizer. 2014-12-17 17:51:12 +01:00
Dave Halter
d918f8be73 Give the backwards tokenizer a better structure and comments. 2014-12-17 17:30:00 +01:00
Dave Halter
f164dd8892 Fix some newline issues in the backwards tokenizer. 2014-12-17 14:56:46 +01:00
Dave Halter
6eb2af301d Simplifying reversed line generation of user_context. 2014-12-17 14:04:54 +01:00
Dave Halter
5730e5add0 parser tree docstring updates. 2014-12-16 18:10:28 +01:00
Dave Halter
e53e211325 Python 2 compatibility in fake module. 2014-12-16 02:07:20 +01:00
Dave Halter
d5e3a09c44 Python 2 compatibility with the new tokens. 2014-12-16 02:03:05 +01:00
Dave Halter
fd1cb86765 Now able to remove both tokenize and token from pgen2. 2014-12-16 02:00:33 +01:00
Dave Halter
d9d3740c92 Trying to replace the old pgen2 token module with a token module more tightly coupled to the standard library. 2014-12-16 01:52:15 +01:00
Dave Halter
eaace104dd Replace the tokenizer's output with a tuple (switching back from a Token class). 2014-12-16 00:10:07 +01:00
Dave Halter
680fdd574b Remove some old unused tokenize stuff. 2014-12-15 17:44:40 +01:00
Dave Halter
955f125c0d Trying to remove token from pgen2. 2014-12-15 17:36:15 +01:00