fix guard macro
This commit is contained in:
parent
9fc559cbaf
commit
a64f5a01bf
2 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ INS_FILE = [
|
|||
|
||||
DRV_FILE = [
|
||||
r'\documentclass{{{documentclass}}}',
|
||||
r'{{preamble}}',
|
||||
r'{preamble}',
|
||||
r'\begin{{document}}',
|
||||
r'\DocInput{{{infile}}}',
|
||||
r'\end{{document}}'
|
||||
|
|
|
@ -169,7 +169,7 @@ class SimpleSingleLineMacro(SingleLineMacro, ABC):
|
|||
|
||||
class GuardMacro(RegexSingleLineMacro):
|
||||
def __init__(self):
|
||||
super(GuardMacro, self).__init__(r'<(\*|/|@@=)[a-zA-Z]*>')
|
||||
super(GuardMacro, self).__init__(r'<(\*|/|@@=)[a-zA-Z_]*>')
|
||||
|
||||
def _apply(self, line, formatter) -> Union[str, List[str]]:
|
||||
match = re.search(self.regex, line)
|
||||
|
|
Loading…
Reference in a new issue