lib/lucid-tdl/parser/lucid-tdl.rex in lucid-tdl-1.0.0 vs lib/lucid-tdl/parser/lucid-tdl.rex in lucid-tdl-1.1.0

- old
+ new

@@ -3,10 +3,11 @@ macro BLANK [\ \t]+ rule {BLANK} # no action + \#.*$ # no action \n { [:NEWLINE, text] } Feature: { [:FEATURE, text[0..-2]] } Ability: { [:ABILITY, text[0..-2]] } @@ -24,10 +25,10 @@ Then { [:THEN, text] } And { [:AND, text] } But { [:BUT, text] } \* { [:GENERIC, text] } - [^\n]* { [:TEXT, text.strip] } + [^#\n]* { [:TEXT, text.strip] } inner def tokenize(code) scan_setup(code) tokens = []