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