Jarry Shaw
84874aace3
Revision on fstring issues ( #100 )
...
* f-string expression part cannot include a backslash
* failing example `f"{'\n'}"` for tests
2020-01-09 21:49:34 +01:00
Jarry Shaw
55531ab65b
Revision on assignment errors ( #97 )
...
* Revision on assignment expression errors
* added rule for __debug__ (should be a keyword)
* reviewed error messages
* added new failing samples
* Adjustment upon Dave's review
* rewind several changes in assignment errors
* patched is_definition: command not found for assignment expressions
* patched Python 2 inconsistent error messages in test_python_errors.py: command not found
2020-01-08 23:07:37 +01:00
Dave Halter
95f353a15f
Merge branch 'rm-2.6' of https://github.com/hugovk/parso
2020-01-05 23:50:20 +01:00
Dave Halter
753e1999fe
Fix: Add more cases for named expression errors, see #89 , #90
2019-12-15 00:04:38 +01:00
Dave Halter
5f04dad9ab
Fix: Catch some additional cases named expr errors, see #89 , #90
2019-12-14 23:31:43 +01:00
Dave Halter
dbba1959f7
Make sure that function executions are errors as well, see #90
2019-12-14 23:23:00 +01:00
Jarry Shaw
776e151370
Revised implementation
...
* search ancestors of namedexpr_test directly for comprehensions
* added test samples for invalid namedexpr_test syntax
2019-12-13 11:55:53 +08:00
Hugo
f6bdba65c0
Drop support for EOL Python 2.6
2019-08-08 14:56:27 +03:00
Dave Halter
5430415d44
Change a test, because it doesn't really matter
...
The test had changed behavior for Python 3.8, a syntax error of:
SyntaxError: unexpected EOF while parsing
instead of
SyntaxError: invalid syntax
2019-06-02 22:54:45 +02:00
Dave Halter
6cdd47fe2b
f-string syntax in Python 3.8 was enhanced
...
See e.g. https://twitter.com/raymondh/status/1135253771846471680
2019-06-02 22:48:47 +02:00
Dave Halter
b2ab64d8f9
Fix Python 3.8 error issues
2019-04-05 18:30:48 +02:00
Dave Halter
dfe7fba08e
continue in finally is no longer an error
2019-04-05 16:17:30 +02:00
Dave Halter
0d37ff865c
Fix bytes/fstring mixing when using iter_errors, fixes #57 .
2019-02-06 01:28:47 +01:00
Dave Halter
9d2ce4bcd4
Fix a few fstring error gatherings
2018-04-06 09:50:07 +02:00
Dave Halter
cba82773d4
Small test refactoring, because not all fstrings errors from parso match the CPython equivalents.
2017-08-26 19:18:16 +02:00
Dave Halter
66606403c7
Most fstrings issues should be fixed now.
2017-08-26 19:15:09 +02:00
Dave Halter
5b7a01ba62
Finally add all fstring errors except the nested invalid syntax stuff that occurs in nested Python.
2017-08-26 12:16:06 +02:00
Dave Halter
68cc383d02
Do proper error recover for fstrings and fix another issue there.
2017-08-26 12:02:10 +02:00
Dave Halter
1893f77e15
Add issue "f-string: expecting }".
2017-08-26 11:53:59 +02:00
Dave Halter
296ecc6728
Add 'f-string: expressions nested too deeply' issue.
2017-08-26 11:10:04 +02:00
Dave Halter
7d4aa755a5
Add conversion issues.
2017-08-26 03:13:59 +02:00
Dave Halter
8a448303d1
Fix an issue that created an endless loop.
2017-08-26 03:08:10 +02:00
Dave Halter
ede8a2139f
Add some first f-string issues.
2017-08-25 22:09:58 +02:00
Dave Halter
820e94e03a
Move the error node checking to a rule.
2017-08-19 12:43:47 +02:00
Dave Halter
f4b51d91ee
Add python3.4/3.3 issue 'can use starred expression only as assignment target'.
2017-08-06 01:38:05 +02:00
Dave Halter
97525958b6
Move failing examples to a separate file.
2017-08-06 00:46:05 +02:00