opt_parser.add_option ("-I", '--include', help="add DIR to include path",
metavar="DIR",
action='append', dest='include_path',
- default=[os.path.abspath (os.getcwd ())])
+ default=[])
(options, files) = opt_parser.parse_args ()
+options.include_path.append (os.path.abspath (os.getcwd ()))
class InteractionError (Exception):
pass
ref_re = re.compile \
- ('@(ref|ruser|rlearning|rprogram|rglos)(?:\\{(?P<ref>[^,\\\\\\}]+?)|\
+ ('@((?:ressay|rgloss|rinternals|rlearning|rslr|rprogram|ruser|ref)|named)(?:\\{(?P<ref>[^,\\\\\\}]+?)|\
named\\{(?P<refname>[^,\\\\]+?),(?P<display>[^,\\\\\\}]+?))\\}(?P<last>.)',
re.DOTALL)
node_include_re = re.compile (r'(?m)^@(node|include)\s+(.+?)$')