TigerPython-Parser icon indicating copy to clipboard operation
TigerPython-Parser copied to clipboard

Fix empty global causing exception

Open neilccbrown opened this issue 6 months ago • 0 comments

See #11 -- global keyword followed by nothing causes an exception. This simple PR adds a test proving the issue, and then a fix which makes the test work. (I'm not sure if NAME_EXPECTED is the most suitable error, but it was the one given if you have a trailing comma with nothing after, so it seemed like a reasonable choice.)

Fixes #11

neilccbrown avatar Aug 08 '24 10:08 neilccbrown