j X S r SSKJrJrJr SSKJrJrJrJ r J
r
Jr S/r " S S\5 r
g)z
pygments.lexers.bare
~~~~~~~~~~~~~~~~~~~~
Lexer for the BARE schema.
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
)
RegexLexerwordsbygroups)TextCommentKeywordNameLiteral
Whitespace BareLexerc \ rS rSrSrSrSrS/rS/rSr / SQr
S \" \\
\R \
\5 S
4S\" \\
\R \
\5 S4S
\" \\
\\
5 S4S\" \\
\R \
5 S4S\4S\
4/S\S4S\S4S\" \R$ \\
5 S4S\
4/S\S4S\" \
\\
5 4S\R 4\" \
5 \4S\
4/S\4S\S4S\" \\\5 4S\4S\S4S\" \\\5 4S \" \\R \5 4S!\R 4\" \
5 \4S"\S4S\S
4S\
4S#\4/
S\S4S\S4S$\" \R$ \\5 4S%\" \R$ 5 4S\4S\
4/S&.rS'rg())r z
For BARE schema source.
BAREzhttps://baremessages.orgz*.barebarez2.7)typeenumu8u16u32u64uinti8i16i32i64intf32f64boolvoiddatastringoptionalmapz'(type)(\s+)([A-Z][a-zA-Z0-9]+)(\s+)(\{)structz'(type)(\s+)([A-Z][a-zA-Z0-9]+)(\s+)(\()unionz#(type)(\s+)([A-Z][a-zA-Z0-9]+)(\s+)typedefz%(enum)(\s+)([A-Z][a-zA-Z0-9]+)(\s+\{)r z#.*?$z\s+z\{z#pushz\}z#popz([a-zA-Z0-9]+)(:)(\s*)z\)z(\s*)(\|)(\s*)z[A-Z][a-zA-Z0-9]+z\[\]z
(\[)(\d+)(\])z<|>z\(z(\[)([a-z][a-z-A-Z0-9]+)(\])z(\[)([A-Z][a-z-A-Z0-9]+)(\])z([A-Z][a-z-A-Z0-9]+)z\nz\d+z([A-Z][A-Z0-9_]*)(\s*=\s*)(\d+)z([A-Z][A-Z0-9_]*))rootr% r&