**Migrated issue, originally created by Michael Bayer ([@zzzeek](https://github.com/zzzeek))** I thought this worked, but apparently it does not: % if foo: # check for 'foo' would be a good lexer enhancement. ---------------------------------------- Attachments: [mako_comment_lex.diff](../wiki/imported_issue_attachments/53/mako_comment_lex.diff)