allow space in <begin>, <end>

dev
MITSUNARI Shigeo 9 years ago
parent 59117d8475
commit db5e89e49c
  1. 2
      src/gen.py

@ -1,7 +1,7 @@
import sys, re import sys, re
# @for <var>, <begin>, <end> # @for <var>, <begin>, <end>
RE_FOR = re.compile(r'@for\s+(\w+)\s*,\s*([^ ]+)\s*,\s*([^ ]+)') RE_FOR = re.compile(r'@for\s+(\w+)\s*,\s*([^,]+)\s*,\s*([^,]+)')
# $(<exp>) # $(<exp>)
RE_VAL = re.compile(r'\$\(([^)]+)\)') RE_VAL = re.compile(r'\$\(([^)]+)\)')
# @define <var>=<exp> # @define <var>=<exp>

Loading…
Cancel
Save