From c21d0342173e07741015fb28c1edff99c507354f Mon Sep 17 00:00:00 2001 From: vicky Date: Wed, 11 May 2022 00:27:38 +0200 Subject: [PATCH] put the last regex in the syntax file --- src/bootstraparse/modules/preparser.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bootstraparse/modules/preparser.py b/src/bootstraparse/modules/preparser.py index 2e246b8..ca576ce 100644 --- a/src/bootstraparse/modules/preparser.py +++ b/src/bootstraparse/modules/preparser.py @@ -1,6 +1,6 @@ # Module for pre-parsing user files in preparation for the parser import os -import regex +import regex # future: remove regex from io import StringIO from bootstraparse.modules import pathresolver as pr @@ -12,8 +12,7 @@ import rich from rich.tree import Tree # list of regexps -_rgx_import_file = regex.compile(r'::( ?\< ?(?P[\w\-._/]+) ?\>[ \s]*)+') -# TODO: put this in syntax.py +_rgx_import_file = syntax.rgx_import_file class PreParser: