X-Git-Url: https://code.kerkeslager.com/?p=fur;a=blobdiff_plain;f=tokenization.py;h=f73ddf8d73f6fd02340252a21a07ba721a2e8f99;hp=914d05a4701f2f0cd2de56e50c566ab6d1390cfa;hb=a96e96f3f783930707122f691cd6a08a90416a74;hpb=ad72a3204cb66766dcebb847b42512494199d15a diff --git a/tokenization.py b/tokenization.py index 914d05a..f73ddf8 100644 --- a/tokenization.py +++ b/tokenization.py @@ -32,7 +32,7 @@ def _make_token_matcher(definition): return token_matcher _TOKEN_MATCHERS = [ - ('keyword', r'(def|do|end)(?![a-z_])'), + ('keyword', r'(def|do|else|end|if)(?![a-z_])'), ('open_parenthese', r'\('), ('close_parenthese', r'\)'), ('comma', r','),