feat: indie status page MVP -- FastAPI + SQLite
- 8 DB models (services, incidents, monitors, subscribers, etc.) - Full CRUD API for services, incidents, monitors - Public status page with live data - Incident detail page with timeline - API key authentication - Uptime monitoring scheduler - 13 tests passing - TECHNICAL_DESIGN.md with full spec
This commit is contained in:
commit
902133edd3
4655 changed files with 1342691 additions and 0 deletions
68
venv/lib/python3.11/site-packages/pygments/lexers/rell.py
Normal file
68
venv/lib/python3.11/site-packages/pygments/lexers/rell.py
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
"""
|
||||
pygments.lexers.rell
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Lexers for the Rell language.
|
||||
|
||||
:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
|
||||
:license: BSD, see LICENSE for details.
|
||||
"""
|
||||
|
||||
from pygments.lexer import RegexLexer, bygroups, default, words
|
||||
from pygments.token import Comment, Keyword, Name, String, Number, \
|
||||
Punctuation, Whitespace
|
||||
|
||||
__all__ = ['RellLexer']
|
||||
|
||||
|
||||
class RellLexer(RegexLexer):
|
||||
"""
|
||||
A Lexer for Rell.
|
||||
"""
|
||||
name = 'Rell'
|
||||
url = 'https://docs.chromia.com/rell/rell-intro'
|
||||
aliases = ['rell']
|
||||
filenames = ['*.rell']
|
||||
mimetypes = ['text/x-rell']
|
||||
version_added = '2.20'
|
||||
|
||||
ident = r'[a-zA-Z_][a-zA-Z0-9_]*'
|
||||
|
||||
tokens = {
|
||||
'root': [
|
||||
(words((
|
||||
'big_integer', 'boolean', 'byte_array', 'decimal', 'gtv',
|
||||
'integer', 'json', 'list', 'map', 'mutable', 'set', 'text',
|
||||
'virtual'), suffix=r'\b'),
|
||||
Keyword.Type),
|
||||
(r'(false|true|null)\b', Keyword.Constant),
|
||||
(r'(entity|enum|namespace|object|struct)\b', Keyword.Declaration),
|
||||
(r'(function|operation|query)\b', Keyword.Declaration, 'function'),
|
||||
(words((
|
||||
'abstract', 'and', 'break', 'continue', 'create', 'delete',
|
||||
'else', 'for', 'if', 'import', 'in', 'index', 'key', 'limit',
|
||||
'module', 'not', 'offset', 'or', 'override', 'return', 'update',
|
||||
'val', 'var', 'when', 'while'), suffix=r'\b'),
|
||||
Keyword.Reserved),
|
||||
(r'//.*?$', Comment.Single),
|
||||
(r'/\*(.|\n|\r)*?\*/', Comment.Multiline),
|
||||
(r'"(\\\\|\\"|[^"])*"', String.Double),
|
||||
(r'\'(\\\\|\\\'|[^\\\'])*\'', String.Single),
|
||||
(r'-?[0-9]*\.[0-9]+([eE][+-][0-9]+)?', Number.Float),
|
||||
(r'-?[0-9]+([eE][+-][0-9]+|[lL])?', Number.Integer),
|
||||
(r'x(\'[a-fA-F0-9]*\'|"[a-fA-F0-9]*")', String.Binary),
|
||||
(r'(\.)([ \n\t\r]*)(' + ident + ')',
|
||||
bygroups(Punctuation, Whitespace, Name.Attribute)),
|
||||
(r'[{}():;,]+', Punctuation),
|
||||
(r'[ \n\t\r]+', Whitespace),
|
||||
(r'@[a-zA-Z_][a-zA-Z0-9_]*', Name.Decorator),
|
||||
(r'[~^*!%&\[\]<>|+=/?\-@\$]', Punctuation.Marker),
|
||||
(ident, Name),
|
||||
(r'(\.)+', Punctuation),
|
||||
],
|
||||
'function': [
|
||||
(r'[ \n\t\r]+', Whitespace),
|
||||
(ident, Name.Function, '#pop'),
|
||||
default('#pop'),
|
||||
],
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue