put the last regex in the syntax file
This commit is contained in:
parent
8d4f7c4d5f
commit
c21d034217
|
|
@ -1,6 +1,6 @@
|
||||||
# Module for pre-parsing user files in preparation for the parser
|
# Module for pre-parsing user files in preparation for the parser
|
||||||
import os
|
import os
|
||||||
import regex
|
import regex # future: remove regex
|
||||||
from io import StringIO
|
from io import StringIO
|
||||||
|
|
||||||
from bootstraparse.modules import pathresolver as pr
|
from bootstraparse.modules import pathresolver as pr
|
||||||
|
|
@ -12,8 +12,7 @@ import rich
|
||||||
from rich.tree import Tree
|
from rich.tree import Tree
|
||||||
|
|
||||||
# list of regexps
|
# list of regexps
|
||||||
_rgx_import_file = regex.compile(r'::( ?\< ?(?P<file_name>[\w\-._/]+) ?\>[ \s]*)+')
|
_rgx_import_file = syntax.rgx_import_file
|
||||||
# TODO: put this in syntax.py
|
|
||||||
|
|
||||||
|
|
||||||
class PreParser:
|
class PreParser:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue