X-Git-Url: https://git.libre-soc.org/?p=sv2nmigen.git;a=blobdiff_plain;f=lexor.py;h=754fcf134459009e8553edaefa3400107a608035;hp=d19aa3ff2531558fda7a45f6f93c1314422d25df;hb=7e6264a3c76af3bd5349a2e52cbff329d0400ea5;hpb=cfedcf9205a2948f3eb88ff98d0ed48d2678f48e diff --git a/lexor.py b/lexor.py index d19aa3f..754fcf1 100644 --- a/lexor.py +++ b/lexor.py @@ -588,7 +588,7 @@ def t_LITERAL(t): # t.lexer.begin('module') if keyword == 'IDENTIFIER': t.type = 'IDENTIFIER' - t.value = keyword + t.value = word return t t.type = keyword return t @@ -811,7 +811,7 @@ def t_timescale_end(t): t.type = 'timescale' t.value = code t.lexer.pop_state() - print "match", code + print ("match", code) return t """