dmarcotte/idea-handlebars — pull request #31 by dmarcotte (2012-11-24 18:13:08+00:00)
Title: Highlight "else" expressions more intuitively

This pull resolves #17.

The previous behavior lexed "{{else" as an OPEN_INVERSE token. While technically correct, this led to the undesirable behavior of "else" being highlighted like "{{" rather than the same as, say, "if".

Modify the lexer to produce more refined tokens in this situation and assign the "identifier"-type highlight to the resulting ELSE token.