j d S r SSKrSSKJrJrJrJrJr SSKJ r J
r
JrJrJ
r
S/r " S S\5 rg)z
pygments.lexers.scdoc
~~~~~~~~~~~~~~~~~~~~~
Lexer for scdoc, a simple man page generator.
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
N)
RegexLexerincludebygroupsusingthis)TextCommentKeywordStringGeneric
ScdocLexerc \ rS rSrSrSrSrSS/rSS/rSr \
R rS \
" \5 4S
\
" \R \5 4S\
" \R$ \5 4S\
" \\\\" \S
S95 4S\
" \\\" \S
S95 4S\
" \\R, 5 4S\
" \\\5 4\" S
5 /S\4S\
" \\R, \5 4S\
" \\R2 \5 4S\R4 4S\4S\4/S.rS rSrg)r
zJ
`scdoc` is a simple man page generator for POSIX systems written in C99.
scdocz!https://git.sr.ht/~sircmpwn/scdocscdz*.scdz*.scdocz2.5z^(;.+\n)z^(#)([^#].+\n)z
^(#{2})(.+\n)z^(\s*)([*-])(\s)(.+\n)inline)statez^(\s*)(\.+\.)( .+\n)z^(\s*>\s)(.+\n)z^(```\n)([\w\W]*?)(^```$)z\\.z(\s)(_[^_]+_)(\W|\n)z(\s)(\*[^*]+\*)(\W|\n)z`[^`]+`z[^\\\s]+.)rootr c SnSU ; a US-
nSU ; a US-
nU R S5 S nSn[ R " X25 ( a US-
nU$ )zxWe checks for bold and underline text with * and _. Also
every scdoc file must start with a strictly defined first line.r *g{Gz?_
z^.*\([1-7]\)( "[^"]+"){0,2}$g ?) partitionresearch)textresult
first_linescdoc_preamble_patterns H/usr/lib/rads/venv/lib/python3.13/site-packages/pygments/lexers/scdoc.pyanalyse_textScdocLexer.analyse_textC sb $;dNF$;dNF ^^D)!,
!@
99+88cMF
N)__name__
__module____qualname____firstlineno____doc__nameurlaliases filenames
version_addedr MULTILINEflagsr r r Headingr
Subheadingr
r r Emphr r StrongBackticktokensr" __static_attributes__r% r$ r! r
r
s? D
-CG)$IMLLE
(7+, $ ?@
x(:(:DAB
&T7D%H*EF
H %T7E$h$?@
B '7<