Commit Graph

  • b5d8175eaa f-string parts are also PythonLeaf instances Dave Halter 2019-01-24 00:15:44 +01:00
  • 32a83b932a Fix get_start_pos_of_prefix Dave Halter 2019-01-24 00:00:06 +01:00
  • 01ae01a382 Remove dead code Dave Halter 2019-01-23 23:28:18 +01:00
  • 5fbc207892 Refactor f-string support Dave Halter 2019-01-23 10:58:36 +01:00
  • 60e4591837 Fix: End detection for strings was mostly wrong, fixes #51 Dave Halter 2019-01-23 10:11:41 +01:00
  • ef56debb78 Fix f-string escapes, fixes #48 Dave Halter 2019-01-22 22:15:48 +01:00
  • dc2582f488 Tokenizer: Simplify end of string regexes Dave Halter 2019-01-22 09:33:46 +01:00
  • fe69989fbc Add a comment from the Python3.7 code base Dave Halter 2019-01-21 00:33:02 +01:00
  • ce8b531175 Fix diff parser: The previous fix was a bit off Dave Halter 2019-01-20 19:03:45 +01:00
  • 069c08883a Change fuzzer: Add ways to not always use correct parse input Dave Halter 2019-01-20 18:18:13 +01:00
  • 0da0a8655a Fix diff parser: issue with opening brackets Dave Halter 2019-01-20 00:27:44 +01:00
  • 3d890c3a00 Async doesn't work in 3.4 Dave Halter 2019-01-19 12:59:35 +01:00
  • 956ea55048 Skip some tests for Python2.6 and Python3.3 Dave Halter 2019-01-19 12:08:39 +01:00
  • 0bd17bee2c Fix diff parser: DEDENT as error leaves should also be ignored and reparsed Dave Halter 2019-01-18 18:41:08 +01:00
  • f3015efb2d Fix diff parser: error dedents in between nodes should be ignored for now when copying Dave Halter 2019-01-18 02:43:12 +01:00
  • 197391dc53 Fix diff parser: Don't copy error nodes/leaves in the beginning, leads to strange issues in some cases Dave Halter 2019-01-17 23:48:00 +01:00
  • 32321a74b1 Diff fuzzer: Create a check to see if the errors make sense. Dave Halter 2019-01-17 22:07:59 +01:00
  • 52d01685ba Fix diff parser: Don't copy DEDENT tokens at the beginning Dave Halter 2019-01-17 21:31:13 +01:00
  • e591b929eb Fix diff parser: Skip last leaves for last line offset leaves Dave Halter 2019-01-17 00:15:01 +01:00
  • dac4c445a7 Fix indentation error tokens Dave Halter 2019-01-16 23:21:31 +01:00
  • 20fd32b45d Fix diff parser: Avoid side effects for prefix Dave Halter 2019-01-14 21:36:10 +01:00
  • 9cc8178998 Fix tokenizer: backslashes sometimes led to newline token generation Dave Halter 2019-01-14 09:59:16 +01:00
  • 1e25445176 Make lines easier copyable in the fuzzer Dave Halter 2019-01-14 01:50:39 +01:00
  • d7171ae927 Fix tokenizer: Carriage returns after backslashes were not properly handled Dave Halter 2019-01-14 01:49:09 +01:00
  • d3d28480ed Fix in diff parser: prefix calculation was wrong when copying nodes Dave Halter 2019-01-14 01:00:17 +01:00
  • 564be7882e Replace --print-diff with --print-code Dave Halter 2019-01-14 00:20:49 +01:00
  • 76c5754b76 Fix diff parser generation for empty files Dave Halter 2019-01-13 23:38:35 +01:00
  • 55247a5a2c Docopt should not be needed for tests Dave Halter 2019-01-13 23:24:17 +01:00
  • 7ae1efe5c7 Fix tokenizer: Form feeds and multiline docstrings didn't work together Dave Halter 2019-01-13 23:16:09 +01:00
  • 01dba7f8ce Fix diff parser: Need to calculate the prefix for the diff tokenizer better Dave Halter 2019-01-13 22:38:53 +01:00
  • ea8a758051 Remove copied nodes stuff, to simplify some things Dave Halter 2019-01-13 19:57:23 +01:00
  • a7e24a37e7 Fix newline endings and a few parser/copy counts Dave Halter 2019-01-13 19:55:18 +01:00
  • f80d9de7a0 Feature: The diff parser fuzzer is now able to use random Python fragments Dave Halter 2019-01-13 16:00:36 +01:00
  • eaee2b9ca0 Fix: The Python 3.8 grammar did not include f-string support Dave Halter 2019-01-13 15:51:46 +01:00
  • dd1761da96 Fix tokenizer: Closing parentheses in the wrong place should not lead to strange behavior Dave Halter 2019-01-13 14:51:34 +01:00
  • e10802ab09 Fix end positions with error dedents Dave Halter 2019-01-13 13:59:31 +01:00
  • 3d402d0a77 Fix diff parser tests for Python 2 Dave Halter 2019-01-10 09:26:42 +01:00
  • f6a8b997f2 Randomize the fuzzer a bit more with inserting characters Dave Halter 2019-01-10 01:22:24 +01:00
  • 94c2681c8e Simplify the regexes Dave Halter 2019-01-10 01:21:56 +01:00
  • 610a820799 Fix a regex clause that was totally wrong Dave Halter 2019-01-10 01:00:08 +01:00
  • 57320af6eb Fix another tokenizer issue Dave Halter 2019-01-09 00:55:54 +01:00
  • 574e1c63e8 Apply \r changes in syntax trees Dave Halter 2019-01-08 20:45:58 +01:00
  • fbaad7883f Actually make \r usable Dave Halter 2019-01-08 20:01:57 +01:00
  • b1f613fe16 Fix split lines for Python code Dave Halter 2019-01-08 08:42:30 +01:00
  • f4696a6245 Add \r as a valid linebreak for splitlines Dave Halter 2019-01-07 18:46:16 +01:00
  • 48c1a0e590 Move split_lines tests around Dave Halter 2019-01-07 18:40:34 +01:00
  • 6f63147f69 Start generating really random strings with the fuzzer Dave Halter 2019-01-06 20:51:49 +01:00
  • 94bd48bae1 Fix tokenizer: Dedents before error tokens are properly done, now. Dave Halter 2019-01-06 19:26:49 +01:00
  • edbceba4f8 Fix diff parser: Also check async with Dave Halter 2019-01-06 16:25:28 +01:00
  • b33c2b3ae1 Make the diff parser use a lot of different files by default Dave Halter 2019-01-06 15:43:37 +01:00
  • 65a0748f4f Fix diff parser: Forgot that with statments are also flows Dave Halter 2019-01-06 15:39:10 +01:00
  • c442cf98be Fix valid graph asserting for some dedents that are errors Dave Halter 2019-01-06 12:39:04 +01:00
  • 65b15b05e3 Fix diff parser: If funcs are not copied, errors shouldn't either Dave Halter 2019-01-06 11:39:51 +01:00
  • 26aee1c6a9 Better documentation for the fuzz diff parser script Dave Halter 2019-01-06 01:10:15 +01:00
  • c88a862bae Rename a test Dave Halter 2019-01-06 01:08:15 +01:00
  • d6b0585933 More verbose output for the diff fuzzer Dave Halter 2019-01-06 01:05:07 +01:00
  • 6eba40b4c5 Fix diff parser: error dedent issues Dave Halter 2019-01-06 01:00:26 +01:00
  • 428bde0573 Fix diff parser: Avoid indentation issues Dave Halter 2019-01-05 22:40:31 +01:00
  • d1d866f6c6 Use the right diff order in debug output Dave Halter 2019-01-05 18:36:48 +01:00
  • a8ec75fedd Fix diff parser: The prefix was wrong in some copy cases Dave Halter 2019-01-05 18:33:38 +01:00
  • deaf1f310b Make fuzz parser compatible with Python 2 Dave Halter 2019-01-05 14:57:58 +01:00
  • 2a881bf875 Make it possible to print all diffs in fuzzer Dave Halter 2019-01-05 14:50:59 +01:00
  • 4d713f56e9 Introduce a redo flag 'only_last' to narrow down issues Dave Halter 2019-01-05 14:20:30 +01:00
  • d202fdea49 Add docopt to testing dependencies Dave Halter 2019-01-05 14:09:14 +01:00
  • 5e6d5dec59 Rewrite the fuzz diff parser to cache errors (so we can re-run those) Dave Halter 2019-01-05 14:05:19 +01:00
  • c1846dd082 Fix diff parser: Decorators were sometimes parsed without their functions Dave Halter 2019-01-05 09:29:00 +01:00
  • 5da51720cd Fix tokenizer: Dedents should only happen after newlines Dave Halter 2019-01-03 11:44:17 +01:00
  • fde64d0eae Usability for diff parser fuzzing Dave Halter 2019-01-02 17:31:07 +01:00
  • 430f13af5e Fix for diff parser: Rewrite prefix logic and don't mutate prematurely Dave Halter 2019-01-02 17:27:47 +01:00
  • 96ae6a078b Fix diff parser: positioning of functions if decorators were removed Dave Halter 2019-01-02 13:16:22 +01:00
  • a9f58b7c45 Ignore ERROR_DEDENT in graph validation Dave Halter 2019-01-02 11:31:09 +01:00
  • e0d0e57bd0 Add a small diff parser fuzzer Dave Halter 2019-01-02 02:39:55 +01:00
  • d2542983e9 Fix diff parser: get_last_line was sometimes wrong Dave Halter 2019-01-02 01:39:53 +01:00
  • 64cf24d9da Fix error reporting order for diff issues Dave Halter 2019-01-02 00:33:43 +01:00
  • 02f48a68f2 Clean up the test diff parser file Dave Halter 2019-01-01 23:37:31 +01:00
  • c7c464e5e9 Avoid nasty side effects in creation of Node Dave Halter 2019-01-01 23:35:20 +01:00
  • 29325d3052 Make parso errors even more informative Dave Halter 2018-12-31 11:38:56 +01:00
  • 750b8af37b Fix diff parser get_last_line calculation Dave Halter 2018-12-31 01:25:11 +01:00
  • 0126a38bd1 Fix graph asserting for error indents Dave Halter 2018-12-30 18:20:55 +01:00
  • c2985c111e Better checks for checking valid graphs Dave Halter 2018-12-30 16:34:11 +01:00
  • 45f9d4b204 Create better ways for debugging the diff parser Dave Halter 2018-12-30 16:03:54 +01:00
  • f99fe6ad21 Fix diff-parser: Copying parts of if else should not lead to the whole thing being copied Dave Halter 2018-12-30 15:25:17 +01:00
  • a64c32bb2a Reenable diff parser parser counting in all tests Dave Halter 2018-12-30 02:46:44 +01:00
  • e5fb1927bb Fix: Make the NodesStack to a NodesTree Dave Halter 2018-12-30 01:27:37 +01:00
  • 0ef4809377 Fix for diff parser : Make sure that start_pos are growing always The problem was that functions/classes were sometimes not well positioned. Now all diff tests are ensuring that leaves always grow. Dave Halter 2018-12-28 21:49:49 +01:00
  • 29456a6c0a Add a check to see if leaves have the right start positions Dave Halter 2018-12-28 02:05:27 +01:00
  • ada84ed063 Add parso version to an exception Dave Halter 2018-12-27 13:32:56 +01:00
  • 1c7b078db0 MNT: add grammar for python 3.8 Thomas A Caswell 2018-12-19 21:42:51 -05:00
  • 930ec08ab0 Use SVG badges Hugo 2018-09-28 13:22:12 +03:00
  • a90622040d tox.ini: simplify deps Daniel Hahler 2018-09-21 14:43:50 +02:00
  • 98c02f7d79 tox: add pypy to envlist for tox-travis Daniel Hahler 2018-09-21 14:38:45 +02:00
  • d6d6c5038f setup.py: add "testing" extras_require Daniel Hahler 2017-10-27 23:14:07 +02:00
  • 3be8ac7786 Add Python 3.7 stable to test matrix and update classifiers Michael Käufl 2018-09-12 11:40:03 +02:00
  • 96f1582b6e Update usage.rst Anders Hovmöller 2018-08-02 21:02:49 +02:00
  • 7064ecf3fb Don't use invalid escape sequences in regex, see https://github.com/davidhalter/jedi-vim/issues/843 Dave Halter 2018-07-12 08:53:48 +02:00
  • e6bc924fba Use a setuptools that still supports py33 v0.3.1 Dave Halter 2018-07-09 20:53:06 +02:00
  • 59605438e9 3.1 release notes Dave Halter 2018-07-09 20:27:10 +02:00
  • e7f71a3eba Use one simple functions to check for funcdefs in diff parser Dave Halter 2018-07-08 20:30:31 +02:00
  • 3f7aad84f9 Make sure to treat async funcdefs the same way as normal funcdefs Dave Halter 2018-07-08 20:18:15 +02:00
  • 52e3db4834 Fix an issue in the diff parser Dave Halter 2018-07-06 01:24:38 +02:00