inline comments with control statements

Issue #53 resolved
Michael Bayer
repo owner created an issue

I thought this worked, but apparently it does not:

% if foo: # check for 'foo'

would be a good lexer enhancement.

Comments (2)

  1. guest

    Look at attached patch. I've tried to split statement and control in the lexer but then code like following would be a problem:

    % if a = '#':

    I don't think attached solution would be a problem.

  2. Michael Bayer reporter

    just had to adjust one unit test which relied upon that parsing as an error, and they all pass. as a bonus, you get to be unit test #200. great job, it'll be out in 0.1.9 and its [changeset:302].

  3. Log in to comment