- re_Comment = re.compile(r'^(\s*)#')
- re_Counter = re.compile(r'\s*Counter\s*', re.IGNORECASE)
- re_Name = re.compile(r'\s*Name\s+(\S+)\s*', re.IGNORECASE)
- re_UseMod = re.compile(r'^\s*UseModule\s+(.*)', re.IGNORECASE)
- re_Empty = re.compile(r'^(\s*)$')
- re_Format = re.compile(r'^(\s*)(Format)(\s+)(\S+)', re.IGNORECASE)
- re_Preamble = re.compile(r'^(\s*)Preamble', re.IGNORECASE)
- re_EndPreamble = re.compile(r'^(\s*)EndPreamble', re.IGNORECASE)
- re_LangPreamble = re.compile(r'^(\s*)LangPreamble', re.IGNORECASE)
- re_EndLangPreamble = re.compile(r'^(\s*)EndLangPreamble', re.IGNORECASE)
- re_BabelPreamble = re.compile(r'^(\s*)BabelPreamble', re.IGNORECASE)
- re_EndBabelPreamble = re.compile(r'^(\s*)EndBabelPreamble', re.IGNORECASE)
- re_MaxCounter = re.compile(r'^(\s*)(MaxCounter)(\s+)(\S+)', re.IGNORECASE)
- re_LabelType = re.compile(r'^(\s*)(LabelType)(\s+)(\S+)', re.IGNORECASE)
- re_LabelString = re.compile(r'^(\s*)(LabelString)(\s+)(("[^"]+")|(\S+))', re.IGNORECASE)
- re_LabelStringAppendix = re.compile(r'^(\s*)(LabelStringAppendix)(\s+)(("[^"]+")|(\S+))', re.IGNORECASE)
- re_LatexType = re.compile(r'^(\s*)(LatexType)(\s+)(\S+)', re.IGNORECASE)
- re_Style = re.compile(r'^(\s*)(Style)(\s+)(\S+)', re.IGNORECASE)
- re_CopyStyle = re.compile(r'^(\s*)(CopyStyle)(\s+)(\S+)', re.IGNORECASE)
- re_NoStyle = re.compile(r'^(\s*)(NoStyle)(\s+)(\S+)', re.IGNORECASE)
- re_End = re.compile(r'^(\s*)(End)(\s*)$', re.IGNORECASE)
- re_Provides = re.compile(r'^(\s*)Provides(\S+)(\s+)(\S+)', re.IGNORECASE)
- re_CharStyle = re.compile(r'^(\s*)CharStyle(\s+)(\S+)$', re.IGNORECASE)
- re_CiteFormat = re.compile(r'^(\s*)(CiteFormat)(?:(\s*)()|(\s+)(default|authoryear|numerical))', re.IGNORECASE)
- re_AMSMaths = re.compile(r'^\s*Input ams(?:math|def)s.inc\s*')
- re_AMSMathsPlain = re.compile(r'^\s*Input amsmaths-plain.inc\s*')
- re_AMSMathsSeq = re.compile(r'^\s*Input amsmaths-seq.inc\s*')
- re_TocLevel = re.compile(r'^(\s*)(TocLevel)(\s+)(\S+)', re.IGNORECASE)
- re_I18nPreamble = re.compile(r'^(\s*)I18nPreamble', re.IGNORECASE)
- re_EndI18nPreamble = re.compile(r'^(\s*)EndI18nPreamble', re.IGNORECASE)
- re_Float = re.compile(r'^\s*Float\s*$', re.IGNORECASE)
- re_Type = re.compile(r'\s*Type\s+(\w+)', re.IGNORECASE)
- re_Builtin = re.compile(r'^(\s*)LaTeXBuiltin\s+(\w*)', re.IGNORECASE)
- re_True = re.compile(r'^\s*(?:true|1)\s*$', re.IGNORECASE)
- re_InsetLayout = re.compile(r'^\s*InsetLayout\s+(?:Custom|CharStyle|Element):(\S+)\s*$', re.IGNORECASE)
+ re_Comment = re.compile(b'^(\\s*)#')
+ re_Counter = re.compile(b'\\s*Counter\\s*', re.IGNORECASE)
+ re_Name = re.compile(b'\\s*Name\\s+(\\S+)\\s*', re.IGNORECASE)
+ re_UseMod = re.compile(b'^\\s*UseModule\\s+(.*)', re.IGNORECASE)
+ re_Empty = re.compile(b'^(\\s*)$')
+ re_Format = re.compile(b'^(\\s*)(Format)(\\s+)(\\S+)', re.IGNORECASE)
+ re_Preamble = re.compile(b'^(\\s*)Preamble', re.IGNORECASE)
+ re_EndPreamble = re.compile(b'^(\\s*)EndPreamble', re.IGNORECASE)
+ re_LangPreamble = re.compile(b'^(\\s*)LangPreamble', re.IGNORECASE)
+ re_EndLangPreamble = re.compile(b'^(\\s*)EndLangPreamble', re.IGNORECASE)
+ re_BabelPreamble = re.compile(b'^(\\s*)BabelPreamble', re.IGNORECASE)
+ re_EndBabelPreamble = re.compile(b'^(\\s*)EndBabelPreamble', re.IGNORECASE)
+ re_MaxCounter = re.compile(b'^(\\s*)(MaxCounter)(\\s+)(\\S+)', re.IGNORECASE)
+ re_LabelType = re.compile(b'^(\\s*)(LabelType)(\\s+)(\\S+)', re.IGNORECASE)
+ re_LabelString = re.compile(b'^(\\s*)(LabelString)(\\s+)(("[^"]+")|(\\S+))', re.IGNORECASE)
+ re_LabelStringAppendix = re.compile(b'^(\\s*)(LabelStringAppendix)(\\s+)(("[^"]+")|(\\S+))', re.IGNORECASE)
+ re_LatexType = re.compile(b'^(\\s*)(LatexType)(\\s+)(\\S+)', re.IGNORECASE)
+ re_Style = re.compile(b'^(\\s*)(Style)(\\s+)(\\S+)', re.IGNORECASE)
+ re_IfStyle = re.compile(b'^(\\s*)IfStyle(\\s+\\S+)', re.IGNORECASE)
+ re_CopyStyle = re.compile(b'^(\\s*)(CopyStyle)(\\s+)(\\S+)', re.IGNORECASE)
+ re_NoStyle = re.compile(b'^(\\s*)(NoStyle)(\\s+)(\\S+)', re.IGNORECASE)
+ re_End = re.compile(b'^(\\s*)(End)(\\s*)$', re.IGNORECASE)
+ re_Provides = re.compile(b'^(\\s*)Provides(\\S+)(\\s+)(\\S+)', re.IGNORECASE)
+ re_CharStyle = re.compile(b'^(\\s*)CharStyle(\\s+)(\\S+)$', re.IGNORECASE)
+ re_CiteFormat = re.compile(b'^(\\s*)(CiteFormat)(?:(\\s*)()|(\\s+)(default|authoryear|numerical))', re.IGNORECASE)
+ re_AMSMaths = re.compile(b'^\\s*Input ams(?:math|def)s.inc\\s*')
+ re_AMSMathsPlain = re.compile(b'^\\s*Input amsmaths-plain.inc\\s*')
+ re_AMSMathsSeq = re.compile(b'^\\s*Input amsmaths-seq.inc\\s*')
+ re_TocLevel = re.compile(b'^(\\s*)(TocLevel)(\\s+)(\\S+)', re.IGNORECASE)
+ re_I18nPreamble = re.compile(b'^(\\s*)I18nPreamble', re.IGNORECASE)
+ re_EndI18nPreamble = re.compile(b'^(\\s*)EndI18nPreamble', re.IGNORECASE)
+ re_Float = re.compile(b'^\\s*Float\\s*$', re.IGNORECASE)
+ re_Type = re.compile(b'\\s*Type\\s+(\\w+)', re.IGNORECASE)
+ re_Builtin = re.compile(b'^(\\s*)LaTeXBuiltin\\s+(\\w*)', re.IGNORECASE)
+ re_True = re.compile(b'^\\s*(?:true|1)\\s*$', re.IGNORECASE)
+ re_InsetLayout = re.compile(b'^\\s*InsetLayout\\s+(?:Custom|CharStyle|Element):(\\S+)\\s*$', re.IGNORECASE)
+ re_ResetsFont = re.compile(b'^(\\s*)ResetsFont(\\s+)(\\S+)$', re.IGNORECASE)