Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/_ada_builtins.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/_lilypond_builtins.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/ambient.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/asn1.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/bare.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/berry.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/cddl.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/clean.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/dalvik.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/fift.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/forth.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/gsql.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/markup.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/other.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/promql.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/qvt.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/sas.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/solidity.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/sql.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/vyper.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/yang.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/_asy_builtins.py +1644 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/_csound_builtins.py +1780 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/_googlesql_builtins.py +918 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/_lilypond_builtins.py +0 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/_mysql_builtins.py +1335 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/_postgres_builtins.py +739 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/_qlik_builtins.py +666 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/_stata_builtins.py +457 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/_usd_builtins.py +112 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/actionscript.py +243 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/archetype.py +315 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/asm.py +1051 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/asn1.py +178 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/automation.py +379 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/business.py +625 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/d.py +259 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/eiffel.py +68 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/elm.py +123 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/email.py +132 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/erlang.py +526 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/fantom.py +251 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/floscript.py +81 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/func.py +110 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/gleam.py +74 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/gsql.py +103 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/idl.py +284 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/javascript.py +1591 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/jsonnet.py +169 -0
- mplug_owl2/lib/python3.10/site-packages/pygments/lexers/kusto.py +93 -0
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/_ada_builtins.cpython-310.pyc
ADDED
|
Binary file (1.2 kB). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/_lilypond_builtins.cpython-310.pyc
ADDED
|
Binary file (88.3 kB). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/ambient.cpython-310.pyc
ADDED
|
Binary file (2.3 kB). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/asn1.cpython-310.pyc
ADDED
|
Binary file (3.39 kB). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/bare.cpython-310.pyc
ADDED
|
Binary file (2.11 kB). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/berry.cpython-310.pyc
ADDED
|
Binary file (2.52 kB). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/cddl.cpython-310.pyc
ADDED
|
Binary file (3.06 kB). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/clean.cpython-310.pyc
ADDED
|
Binary file (3.96 kB). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/dalvik.cpython-310.pyc
ADDED
|
Binary file (3.43 kB). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/fift.cpython-310.pyc
ADDED
|
Binary file (1.49 kB). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/forth.cpython-310.pyc
ADDED
|
Binary file (4.73 kB). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/gsql.cpython-310.pyc
ADDED
|
Binary file (3.17 kB). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/markup.cpython-310.pyc
ADDED
|
Binary file (37.9 kB). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/other.cpython-310.pyc
ADDED
|
Binary file (2.36 kB). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/promql.cpython-310.pyc
ADDED
|
Binary file (2.75 kB). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/qvt.cpython-310.pyc
ADDED
|
Binary file (4.18 kB). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/sas.cpython-310.pyc
ADDED
|
Binary file (6.01 kB). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/solidity.cpython-310.pyc
ADDED
|
Binary file (2.61 kB). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/sql.cpython-310.pyc
ADDED
|
Binary file (29.6 kB). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/vyper.cpython-310.pyc
ADDED
|
Binary file (3.61 kB). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/__pycache__/yang.cpython-310.pyc
ADDED
|
Binary file (3.15 kB). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/_asy_builtins.py
ADDED
|
@@ -0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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pygments.lexers._asy_builtins
|
| 3 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
This file contains the asy-function names and asy-variable names of
|
| 6 |
+
Asymptote.
|
| 7 |
+
|
| 8 |
+
Do not edit the ASYFUNCNAME and ASYVARNAME sets by hand.
|
| 9 |
+
TODO: perl/python script in Asymptote SVN similar to asy-list.pl but only
|
| 10 |
+
for function and variable names.
|
| 11 |
+
|
| 12 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 13 |
+
:license: BSD, see LICENSE for details.
|
| 14 |
+
"""
|
| 15 |
+
|
| 16 |
+
ASYFUNCNAME = {
|
| 17 |
+
'AND',
|
| 18 |
+
'Arc',
|
| 19 |
+
'ArcArrow',
|
| 20 |
+
'ArcArrows',
|
| 21 |
+
'Arrow',
|
| 22 |
+
'Arrows',
|
| 23 |
+
'Automatic',
|
| 24 |
+
'AvantGarde',
|
| 25 |
+
'BBox',
|
| 26 |
+
'BWRainbow',
|
| 27 |
+
'BWRainbow2',
|
| 28 |
+
'Bar',
|
| 29 |
+
'Bars',
|
| 30 |
+
'BeginArcArrow',
|
| 31 |
+
'BeginArrow',
|
| 32 |
+
'BeginBar',
|
| 33 |
+
'BeginDotMargin',
|
| 34 |
+
'BeginMargin',
|
| 35 |
+
'BeginPenMargin',
|
| 36 |
+
'Blank',
|
| 37 |
+
'Bookman',
|
| 38 |
+
'Bottom',
|
| 39 |
+
'BottomTop',
|
| 40 |
+
'Bounds',
|
| 41 |
+
'Break',
|
| 42 |
+
'Broken',
|
| 43 |
+
'BrokenLog',
|
| 44 |
+
'Ceil',
|
| 45 |
+
'Circle',
|
| 46 |
+
'CircleBarIntervalMarker',
|
| 47 |
+
'Cos',
|
| 48 |
+
'Courier',
|
| 49 |
+
'CrossIntervalMarker',
|
| 50 |
+
'DefaultFormat',
|
| 51 |
+
'DefaultLogFormat',
|
| 52 |
+
'Degrees',
|
| 53 |
+
'Dir',
|
| 54 |
+
'DotMargin',
|
| 55 |
+
'DotMargins',
|
| 56 |
+
'Dotted',
|
| 57 |
+
'Draw',
|
| 58 |
+
'Drawline',
|
| 59 |
+
'Embed',
|
| 60 |
+
'EndArcArrow',
|
| 61 |
+
'EndArrow',
|
| 62 |
+
'EndBar',
|
| 63 |
+
'EndDotMargin',
|
| 64 |
+
'EndMargin',
|
| 65 |
+
'EndPenMargin',
|
| 66 |
+
'Fill',
|
| 67 |
+
'FillDraw',
|
| 68 |
+
'Floor',
|
| 69 |
+
'Format',
|
| 70 |
+
'Full',
|
| 71 |
+
'Gaussian',
|
| 72 |
+
'Gaussrand',
|
| 73 |
+
'Gaussrandpair',
|
| 74 |
+
'Gradient',
|
| 75 |
+
'Grayscale',
|
| 76 |
+
'Helvetica',
|
| 77 |
+
'Hermite',
|
| 78 |
+
'HookHead',
|
| 79 |
+
'InOutTicks',
|
| 80 |
+
'InTicks',
|
| 81 |
+
'J',
|
| 82 |
+
'Label',
|
| 83 |
+
'Landscape',
|
| 84 |
+
'Left',
|
| 85 |
+
'LeftRight',
|
| 86 |
+
'LeftTicks',
|
| 87 |
+
'Legend',
|
| 88 |
+
'Linear',
|
| 89 |
+
'Link',
|
| 90 |
+
'Log',
|
| 91 |
+
'LogFormat',
|
| 92 |
+
'Margin',
|
| 93 |
+
'Margins',
|
| 94 |
+
'Mark',
|
| 95 |
+
'MidArcArrow',
|
| 96 |
+
'MidArrow',
|
| 97 |
+
'NOT',
|
| 98 |
+
'NewCenturySchoolBook',
|
| 99 |
+
'NoBox',
|
| 100 |
+
'NoMargin',
|
| 101 |
+
'NoModifier',
|
| 102 |
+
'NoTicks',
|
| 103 |
+
'NoTicks3',
|
| 104 |
+
'NoZero',
|
| 105 |
+
'NoZeroFormat',
|
| 106 |
+
'None',
|
| 107 |
+
'OR',
|
| 108 |
+
'OmitFormat',
|
| 109 |
+
'OmitTick',
|
| 110 |
+
'OutTicks',
|
| 111 |
+
'Ox',
|
| 112 |
+
'Oy',
|
| 113 |
+
'Palatino',
|
| 114 |
+
'PaletteTicks',
|
| 115 |
+
'Pen',
|
| 116 |
+
'PenMargin',
|
| 117 |
+
'PenMargins',
|
| 118 |
+
'Pentype',
|
| 119 |
+
'Portrait',
|
| 120 |
+
'RadialShade',
|
| 121 |
+
'Rainbow',
|
| 122 |
+
'Range',
|
| 123 |
+
'Relative',
|
| 124 |
+
'Right',
|
| 125 |
+
'RightTicks',
|
| 126 |
+
'Rotate',
|
| 127 |
+
'Round',
|
| 128 |
+
'SQR',
|
| 129 |
+
'Scale',
|
| 130 |
+
'ScaleX',
|
| 131 |
+
'ScaleY',
|
| 132 |
+
'ScaleZ',
|
| 133 |
+
'Seascape',
|
| 134 |
+
'Shift',
|
| 135 |
+
'Sin',
|
| 136 |
+
'Slant',
|
| 137 |
+
'Spline',
|
| 138 |
+
'StickIntervalMarker',
|
| 139 |
+
'Straight',
|
| 140 |
+
'Symbol',
|
| 141 |
+
'Tan',
|
| 142 |
+
'TeXify',
|
| 143 |
+
'Ticks',
|
| 144 |
+
'Ticks3',
|
| 145 |
+
'TildeIntervalMarker',
|
| 146 |
+
'TimesRoman',
|
| 147 |
+
'Top',
|
| 148 |
+
'TrueMargin',
|
| 149 |
+
'UnFill',
|
| 150 |
+
'UpsideDown',
|
| 151 |
+
'Wheel',
|
| 152 |
+
'X',
|
| 153 |
+
'XEquals',
|
| 154 |
+
'XOR',
|
| 155 |
+
'XY',
|
| 156 |
+
'XYEquals',
|
| 157 |
+
'XYZero',
|
| 158 |
+
'XYgrid',
|
| 159 |
+
'XZEquals',
|
| 160 |
+
'XZZero',
|
| 161 |
+
'XZero',
|
| 162 |
+
'XZgrid',
|
| 163 |
+
'Y',
|
| 164 |
+
'YEquals',
|
| 165 |
+
'YXgrid',
|
| 166 |
+
'YZ',
|
| 167 |
+
'YZEquals',
|
| 168 |
+
'YZZero',
|
| 169 |
+
'YZero',
|
| 170 |
+
'YZgrid',
|
| 171 |
+
'Z',
|
| 172 |
+
'ZX',
|
| 173 |
+
'ZXgrid',
|
| 174 |
+
'ZYgrid',
|
| 175 |
+
'ZapfChancery',
|
| 176 |
+
'ZapfDingbats',
|
| 177 |
+
'_cputime',
|
| 178 |
+
'_draw',
|
| 179 |
+
'_eval',
|
| 180 |
+
'_image',
|
| 181 |
+
'_labelpath',
|
| 182 |
+
'_projection',
|
| 183 |
+
'_strokepath',
|
| 184 |
+
'_texpath',
|
| 185 |
+
'aCos',
|
| 186 |
+
'aSin',
|
| 187 |
+
'aTan',
|
| 188 |
+
'abort',
|
| 189 |
+
'abs',
|
| 190 |
+
'accel',
|
| 191 |
+
'acos',
|
| 192 |
+
'acosh',
|
| 193 |
+
'acot',
|
| 194 |
+
'acsc',
|
| 195 |
+
'add',
|
| 196 |
+
'addArrow',
|
| 197 |
+
'addMargins',
|
| 198 |
+
'addSaveFunction',
|
| 199 |
+
'addnode',
|
| 200 |
+
'addnodes',
|
| 201 |
+
'addpenarc',
|
| 202 |
+
'addpenline',
|
| 203 |
+
'addseg',
|
| 204 |
+
'adjust',
|
| 205 |
+
'alias',
|
| 206 |
+
'align',
|
| 207 |
+
'all',
|
| 208 |
+
'altitude',
|
| 209 |
+
'angabscissa',
|
| 210 |
+
'angle',
|
| 211 |
+
'angpoint',
|
| 212 |
+
'animate',
|
| 213 |
+
'annotate',
|
| 214 |
+
'anticomplementary',
|
| 215 |
+
'antipedal',
|
| 216 |
+
'apply',
|
| 217 |
+
'approximate',
|
| 218 |
+
'arc',
|
| 219 |
+
'arcarrowsize',
|
| 220 |
+
'arccircle',
|
| 221 |
+
'arcdir',
|
| 222 |
+
'arcfromcenter',
|
| 223 |
+
'arcfromfocus',
|
| 224 |
+
'arclength',
|
| 225 |
+
'arcnodesnumber',
|
| 226 |
+
'arcpoint',
|
| 227 |
+
'arcsubtended',
|
| 228 |
+
'arcsubtendedcenter',
|
| 229 |
+
'arctime',
|
| 230 |
+
'arctopath',
|
| 231 |
+
'array',
|
| 232 |
+
'arrow',
|
| 233 |
+
'arrow2',
|
| 234 |
+
'arrowbase',
|
| 235 |
+
'arrowbasepoints',
|
| 236 |
+
'arrowsize',
|
| 237 |
+
'asec',
|
| 238 |
+
'asin',
|
| 239 |
+
'asinh',
|
| 240 |
+
'ask',
|
| 241 |
+
'assert',
|
| 242 |
+
'asy',
|
| 243 |
+
'asycode',
|
| 244 |
+
'asydir',
|
| 245 |
+
'asyfigure',
|
| 246 |
+
'asyfilecode',
|
| 247 |
+
'asyinclude',
|
| 248 |
+
'asywrite',
|
| 249 |
+
'atan',
|
| 250 |
+
'atan2',
|
| 251 |
+
'atanh',
|
| 252 |
+
'atbreakpoint',
|
| 253 |
+
'atexit',
|
| 254 |
+
'atime',
|
| 255 |
+
'attach',
|
| 256 |
+
'attract',
|
| 257 |
+
'atupdate',
|
| 258 |
+
'autoformat',
|
| 259 |
+
'autoscale',
|
| 260 |
+
'autoscale3',
|
| 261 |
+
'axes',
|
| 262 |
+
'axes3',
|
| 263 |
+
'axialshade',
|
| 264 |
+
'axis',
|
| 265 |
+
'axiscoverage',
|
| 266 |
+
'azimuth',
|
| 267 |
+
'babel',
|
| 268 |
+
'background',
|
| 269 |
+
'bangles',
|
| 270 |
+
'bar',
|
| 271 |
+
'barmarksize',
|
| 272 |
+
'barsize',
|
| 273 |
+
'basealign',
|
| 274 |
+
'baseline',
|
| 275 |
+
'bbox',
|
| 276 |
+
'beep',
|
| 277 |
+
'begin',
|
| 278 |
+
'beginclip',
|
| 279 |
+
'begingroup',
|
| 280 |
+
'beginpoint',
|
| 281 |
+
'between',
|
| 282 |
+
'bevel',
|
| 283 |
+
'bezier',
|
| 284 |
+
'bezierP',
|
| 285 |
+
'bezierPP',
|
| 286 |
+
'bezierPPP',
|
| 287 |
+
'bezulate',
|
| 288 |
+
'bibliography',
|
| 289 |
+
'bibliographystyle',
|
| 290 |
+
'binarytree',
|
| 291 |
+
'binarytreeNode',
|
| 292 |
+
'binomial',
|
| 293 |
+
'binput',
|
| 294 |
+
'bins',
|
| 295 |
+
'bisector',
|
| 296 |
+
'bisectorpoint',
|
| 297 |
+
'blend',
|
| 298 |
+
'boutput',
|
| 299 |
+
'box',
|
| 300 |
+
'bqe',
|
| 301 |
+
'breakpoint',
|
| 302 |
+
'breakpoints',
|
| 303 |
+
'brick',
|
| 304 |
+
'buildRestoreDefaults',
|
| 305 |
+
'buildRestoreThunk',
|
| 306 |
+
'buildcycle',
|
| 307 |
+
'bulletcolor',
|
| 308 |
+
'canonical',
|
| 309 |
+
'canonicalcartesiansystem',
|
| 310 |
+
'cartesiansystem',
|
| 311 |
+
'case1',
|
| 312 |
+
'case2',
|
| 313 |
+
'case3',
|
| 314 |
+
'cbrt',
|
| 315 |
+
'cd',
|
| 316 |
+
'ceil',
|
| 317 |
+
'center',
|
| 318 |
+
'centerToFocus',
|
| 319 |
+
'centroid',
|
| 320 |
+
'cevian',
|
| 321 |
+
'change2',
|
| 322 |
+
'changecoordsys',
|
| 323 |
+
'checkSegment',
|
| 324 |
+
'checkconditionlength',
|
| 325 |
+
'checker',
|
| 326 |
+
'checklengths',
|
| 327 |
+
'checkposition',
|
| 328 |
+
'checktriangle',
|
| 329 |
+
'choose',
|
| 330 |
+
'circle',
|
| 331 |
+
'circlebarframe',
|
| 332 |
+
'circlemarkradius',
|
| 333 |
+
'circlenodesnumber',
|
| 334 |
+
'circumcenter',
|
| 335 |
+
'circumcircle',
|
| 336 |
+
'clamped',
|
| 337 |
+
'clear',
|
| 338 |
+
'clip',
|
| 339 |
+
'clipdraw',
|
| 340 |
+
'close',
|
| 341 |
+
'cmyk',
|
| 342 |
+
'code',
|
| 343 |
+
'colatitude',
|
| 344 |
+
'collect',
|
| 345 |
+
'collinear',
|
| 346 |
+
'color',
|
| 347 |
+
'colorless',
|
| 348 |
+
'colors',
|
| 349 |
+
'colorspace',
|
| 350 |
+
'comma',
|
| 351 |
+
'compassmark',
|
| 352 |
+
'complement',
|
| 353 |
+
'complementary',
|
| 354 |
+
'concat',
|
| 355 |
+
'concurrent',
|
| 356 |
+
'cone',
|
| 357 |
+
'conic',
|
| 358 |
+
'conicnodesnumber',
|
| 359 |
+
'conictype',
|
| 360 |
+
'conj',
|
| 361 |
+
'connect',
|
| 362 |
+
'containmentTree',
|
| 363 |
+
'contains',
|
| 364 |
+
'contour',
|
| 365 |
+
'contour3',
|
| 366 |
+
'controlSpecifier',
|
| 367 |
+
'convert',
|
| 368 |
+
'coordinates',
|
| 369 |
+
'coordsys',
|
| 370 |
+
'copy',
|
| 371 |
+
'cos',
|
| 372 |
+
'cosh',
|
| 373 |
+
'cot',
|
| 374 |
+
'countIntersections',
|
| 375 |
+
'cputime',
|
| 376 |
+
'crop',
|
| 377 |
+
'cropcode',
|
| 378 |
+
'cross',
|
| 379 |
+
'crossframe',
|
| 380 |
+
'crosshatch',
|
| 381 |
+
'crossmarksize',
|
| 382 |
+
'csc',
|
| 383 |
+
'cubicroots',
|
| 384 |
+
'curabscissa',
|
| 385 |
+
'curlSpecifier',
|
| 386 |
+
'curpoint',
|
| 387 |
+
'currentarrow',
|
| 388 |
+
'currentexitfunction',
|
| 389 |
+
'currentmomarrow',
|
| 390 |
+
'currentpolarconicroutine',
|
| 391 |
+
'curve',
|
| 392 |
+
'cut',
|
| 393 |
+
'cutafter',
|
| 394 |
+
'cutbefore',
|
| 395 |
+
'cyclic',
|
| 396 |
+
'cylinder',
|
| 397 |
+
'debugger',
|
| 398 |
+
'deconstruct',
|
| 399 |
+
'defaultdir',
|
| 400 |
+
'defaultformat',
|
| 401 |
+
'defaultpen',
|
| 402 |
+
'defined',
|
| 403 |
+
'degenerate',
|
| 404 |
+
'degrees',
|
| 405 |
+
'delete',
|
| 406 |
+
'deletepreamble',
|
| 407 |
+
'determinant',
|
| 408 |
+
'diagonal',
|
| 409 |
+
'diamond',
|
| 410 |
+
'diffdiv',
|
| 411 |
+
'dir',
|
| 412 |
+
'dirSpecifier',
|
| 413 |
+
'dirtime',
|
| 414 |
+
'display',
|
| 415 |
+
'distance',
|
| 416 |
+
'divisors',
|
| 417 |
+
'do_overpaint',
|
| 418 |
+
'dot',
|
| 419 |
+
'dotframe',
|
| 420 |
+
'dotsize',
|
| 421 |
+
'downcase',
|
| 422 |
+
'draw',
|
| 423 |
+
'drawAll',
|
| 424 |
+
'drawDoubleLine',
|
| 425 |
+
'drawFermion',
|
| 426 |
+
'drawGhost',
|
| 427 |
+
'drawGluon',
|
| 428 |
+
'drawMomArrow',
|
| 429 |
+
'drawPhoton',
|
| 430 |
+
'drawScalar',
|
| 431 |
+
'drawVertex',
|
| 432 |
+
'drawVertexBox',
|
| 433 |
+
'drawVertexBoxO',
|
| 434 |
+
'drawVertexBoxX',
|
| 435 |
+
'drawVertexO',
|
| 436 |
+
'drawVertexOX',
|
| 437 |
+
'drawVertexTriangle',
|
| 438 |
+
'drawVertexTriangleO',
|
| 439 |
+
'drawVertexX',
|
| 440 |
+
'drawarrow',
|
| 441 |
+
'drawarrow2',
|
| 442 |
+
'drawline',
|
| 443 |
+
'drawtick',
|
| 444 |
+
'duplicate',
|
| 445 |
+
'elle',
|
| 446 |
+
'ellipse',
|
| 447 |
+
'ellipsenodesnumber',
|
| 448 |
+
'embed',
|
| 449 |
+
'embed3',
|
| 450 |
+
'empty',
|
| 451 |
+
'enclose',
|
| 452 |
+
'end',
|
| 453 |
+
'endScript',
|
| 454 |
+
'endclip',
|
| 455 |
+
'endgroup',
|
| 456 |
+
'endl',
|
| 457 |
+
'endpoint',
|
| 458 |
+
'endpoints',
|
| 459 |
+
'eof',
|
| 460 |
+
'eol',
|
| 461 |
+
'equation',
|
| 462 |
+
'equations',
|
| 463 |
+
'erase',
|
| 464 |
+
'erasestep',
|
| 465 |
+
'erf',
|
| 466 |
+
'erfc',
|
| 467 |
+
'error',
|
| 468 |
+
'errorbar',
|
| 469 |
+
'errorbars',
|
| 470 |
+
'eval',
|
| 471 |
+
'excenter',
|
| 472 |
+
'excircle',
|
| 473 |
+
'exit',
|
| 474 |
+
'exitXasyMode',
|
| 475 |
+
'exitfunction',
|
| 476 |
+
'exp',
|
| 477 |
+
'expfactors',
|
| 478 |
+
'expi',
|
| 479 |
+
'expm1',
|
| 480 |
+
'exradius',
|
| 481 |
+
'extend',
|
| 482 |
+
'extension',
|
| 483 |
+
'extouch',
|
| 484 |
+
'fabs',
|
| 485 |
+
'factorial',
|
| 486 |
+
'fermat',
|
| 487 |
+
'fft',
|
| 488 |
+
'fhorner',
|
| 489 |
+
'figure',
|
| 490 |
+
'file',
|
| 491 |
+
'filecode',
|
| 492 |
+
'fill',
|
| 493 |
+
'filldraw',
|
| 494 |
+
'filloutside',
|
| 495 |
+
'fillrule',
|
| 496 |
+
'filltype',
|
| 497 |
+
'find',
|
| 498 |
+
'finite',
|
| 499 |
+
'finiteDifferenceJacobian',
|
| 500 |
+
'firstcut',
|
| 501 |
+
'firstframe',
|
| 502 |
+
'fit',
|
| 503 |
+
'fit2',
|
| 504 |
+
'fixedscaling',
|
| 505 |
+
'floor',
|
| 506 |
+
'flush',
|
| 507 |
+
'fmdefaults',
|
| 508 |
+
'fmod',
|
| 509 |
+
'focusToCenter',
|
| 510 |
+
'font',
|
| 511 |
+
'fontcommand',
|
| 512 |
+
'fontsize',
|
| 513 |
+
'foot',
|
| 514 |
+
'format',
|
| 515 |
+
'frac',
|
| 516 |
+
'frequency',
|
| 517 |
+
'fromCenter',
|
| 518 |
+
'fromFocus',
|
| 519 |
+
'fspline',
|
| 520 |
+
'functionshade',
|
| 521 |
+
'gamma',
|
| 522 |
+
'generate_random_backtrace',
|
| 523 |
+
'generateticks',
|
| 524 |
+
'gergonne',
|
| 525 |
+
'getc',
|
| 526 |
+
'getint',
|
| 527 |
+
'getpair',
|
| 528 |
+
'getreal',
|
| 529 |
+
'getstring',
|
| 530 |
+
'gettriple',
|
| 531 |
+
'gluon',
|
| 532 |
+
'gouraudshade',
|
| 533 |
+
'graph',
|
| 534 |
+
'graphic',
|
| 535 |
+
'gray',
|
| 536 |
+
'grestore',
|
| 537 |
+
'grid',
|
| 538 |
+
'grid3',
|
| 539 |
+
'gsave',
|
| 540 |
+
'halfbox',
|
| 541 |
+
'hatch',
|
| 542 |
+
'hdiffdiv',
|
| 543 |
+
'hermite',
|
| 544 |
+
'hex',
|
| 545 |
+
'histogram',
|
| 546 |
+
'history',
|
| 547 |
+
'hline',
|
| 548 |
+
'hprojection',
|
| 549 |
+
'hsv',
|
| 550 |
+
'hyperbola',
|
| 551 |
+
'hyperbolanodesnumber',
|
| 552 |
+
'hyperlink',
|
| 553 |
+
'hypot',
|
| 554 |
+
'identity',
|
| 555 |
+
'image',
|
| 556 |
+
'incenter',
|
| 557 |
+
'incentral',
|
| 558 |
+
'incircle',
|
| 559 |
+
'increasing',
|
| 560 |
+
'incrementposition',
|
| 561 |
+
'indexedTransform',
|
| 562 |
+
'indexedfigure',
|
| 563 |
+
'initXasyMode',
|
| 564 |
+
'initdefaults',
|
| 565 |
+
'input',
|
| 566 |
+
'inradius',
|
| 567 |
+
'insert',
|
| 568 |
+
'inside',
|
| 569 |
+
'integrate',
|
| 570 |
+
'interactive',
|
| 571 |
+
'interior',
|
| 572 |
+
'interp',
|
| 573 |
+
'interpolate',
|
| 574 |
+
'intersect',
|
| 575 |
+
'intersection',
|
| 576 |
+
'intersectionpoint',
|
| 577 |
+
'intersectionpoints',
|
| 578 |
+
'intersections',
|
| 579 |
+
'intouch',
|
| 580 |
+
'inverse',
|
| 581 |
+
'inversion',
|
| 582 |
+
'invisible',
|
| 583 |
+
'is3D',
|
| 584 |
+
'isDuplicate',
|
| 585 |
+
'isogonal',
|
| 586 |
+
'isogonalconjugate',
|
| 587 |
+
'isotomic',
|
| 588 |
+
'isotomicconjugate',
|
| 589 |
+
'isparabola',
|
| 590 |
+
'italic',
|
| 591 |
+
'item',
|
| 592 |
+
'key',
|
| 593 |
+
'kurtosis',
|
| 594 |
+
'kurtosisexcess',
|
| 595 |
+
'label',
|
| 596 |
+
'labelaxis',
|
| 597 |
+
'labelmargin',
|
| 598 |
+
'labelpath',
|
| 599 |
+
'labels',
|
| 600 |
+
'labeltick',
|
| 601 |
+
'labelx',
|
| 602 |
+
'labelx3',
|
| 603 |
+
'labely',
|
| 604 |
+
'labely3',
|
| 605 |
+
'labelz',
|
| 606 |
+
'labelz3',
|
| 607 |
+
'lastcut',
|
| 608 |
+
'latex',
|
| 609 |
+
'latitude',
|
| 610 |
+
'latticeshade',
|
| 611 |
+
'layer',
|
| 612 |
+
'layout',
|
| 613 |
+
'ldexp',
|
| 614 |
+
'leastsquares',
|
| 615 |
+
'legend',
|
| 616 |
+
'legenditem',
|
| 617 |
+
'length',
|
| 618 |
+
'lift',
|
| 619 |
+
'light',
|
| 620 |
+
'limits',
|
| 621 |
+
'line',
|
| 622 |
+
'linear',
|
| 623 |
+
'linecap',
|
| 624 |
+
'lineinversion',
|
| 625 |
+
'linejoin',
|
| 626 |
+
'linemargin',
|
| 627 |
+
'lineskip',
|
| 628 |
+
'linetype',
|
| 629 |
+
'linewidth',
|
| 630 |
+
'link',
|
| 631 |
+
'list',
|
| 632 |
+
'lm_enorm',
|
| 633 |
+
'lm_evaluate_default',
|
| 634 |
+
'lm_lmdif',
|
| 635 |
+
'lm_lmpar',
|
| 636 |
+
'lm_minimize',
|
| 637 |
+
'lm_print_default',
|
| 638 |
+
'lm_print_quiet',
|
| 639 |
+
'lm_qrfac',
|
| 640 |
+
'lm_qrsolv',
|
| 641 |
+
'locale',
|
| 642 |
+
'locate',
|
| 643 |
+
'locatefile',
|
| 644 |
+
'location',
|
| 645 |
+
'log',
|
| 646 |
+
'log10',
|
| 647 |
+
'log1p',
|
| 648 |
+
'logaxiscoverage',
|
| 649 |
+
'longitude',
|
| 650 |
+
'lookup',
|
| 651 |
+
'magnetize',
|
| 652 |
+
'makeNode',
|
| 653 |
+
'makedraw',
|
| 654 |
+
'makepen',
|
| 655 |
+
'map',
|
| 656 |
+
'margin',
|
| 657 |
+
'markangle',
|
| 658 |
+
'markangleradius',
|
| 659 |
+
'markanglespace',
|
| 660 |
+
'markarc',
|
| 661 |
+
'marker',
|
| 662 |
+
'markinterval',
|
| 663 |
+
'marknodes',
|
| 664 |
+
'markrightangle',
|
| 665 |
+
'markuniform',
|
| 666 |
+
'mass',
|
| 667 |
+
'masscenter',
|
| 668 |
+
'massformat',
|
| 669 |
+
'math',
|
| 670 |
+
'max',
|
| 671 |
+
'max3',
|
| 672 |
+
'maxbezier',
|
| 673 |
+
'maxbound',
|
| 674 |
+
'maxcoords',
|
| 675 |
+
'maxlength',
|
| 676 |
+
'maxratio',
|
| 677 |
+
'maxtimes',
|
| 678 |
+
'mean',
|
| 679 |
+
'medial',
|
| 680 |
+
'median',
|
| 681 |
+
'midpoint',
|
| 682 |
+
'min',
|
| 683 |
+
'min3',
|
| 684 |
+
'minbezier',
|
| 685 |
+
'minbound',
|
| 686 |
+
'minipage',
|
| 687 |
+
'minratio',
|
| 688 |
+
'mintimes',
|
| 689 |
+
'miterlimit',
|
| 690 |
+
'momArrowPath',
|
| 691 |
+
'momarrowsize',
|
| 692 |
+
'monotonic',
|
| 693 |
+
'multifigure',
|
| 694 |
+
'nativeformat',
|
| 695 |
+
'natural',
|
| 696 |
+
'needshipout',
|
| 697 |
+
'newl',
|
| 698 |
+
'newpage',
|
| 699 |
+
'newslide',
|
| 700 |
+
'newton',
|
| 701 |
+
'newtree',
|
| 702 |
+
'nextframe',
|
| 703 |
+
'nextnormal',
|
| 704 |
+
'nextpage',
|
| 705 |
+
'nib',
|
| 706 |
+
'nodabscissa',
|
| 707 |
+
'none',
|
| 708 |
+
'norm',
|
| 709 |
+
'normalvideo',
|
| 710 |
+
'notaknot',
|
| 711 |
+
'nowarn',
|
| 712 |
+
'numberpage',
|
| 713 |
+
'nurb',
|
| 714 |
+
'object',
|
| 715 |
+
'offset',
|
| 716 |
+
'onpath',
|
| 717 |
+
'opacity',
|
| 718 |
+
'opposite',
|
| 719 |
+
'orientation',
|
| 720 |
+
'orig_circlenodesnumber',
|
| 721 |
+
'orig_circlenodesnumber1',
|
| 722 |
+
'orig_draw',
|
| 723 |
+
'orig_ellipsenodesnumber',
|
| 724 |
+
'orig_ellipsenodesnumber1',
|
| 725 |
+
'orig_hyperbolanodesnumber',
|
| 726 |
+
'orig_parabolanodesnumber',
|
| 727 |
+
'origin',
|
| 728 |
+
'orthic',
|
| 729 |
+
'orthocentercenter',
|
| 730 |
+
'outformat',
|
| 731 |
+
'outline',
|
| 732 |
+
'outprefix',
|
| 733 |
+
'output',
|
| 734 |
+
'overloadedMessage',
|
| 735 |
+
'overwrite',
|
| 736 |
+
'pack',
|
| 737 |
+
'pad',
|
| 738 |
+
'pairs',
|
| 739 |
+
'palette',
|
| 740 |
+
'parabola',
|
| 741 |
+
'parabolanodesnumber',
|
| 742 |
+
'parallel',
|
| 743 |
+
'partialsum',
|
| 744 |
+
'path',
|
| 745 |
+
'path3',
|
| 746 |
+
'pattern',
|
| 747 |
+
'pause',
|
| 748 |
+
'pdf',
|
| 749 |
+
'pedal',
|
| 750 |
+
'periodic',
|
| 751 |
+
'perp',
|
| 752 |
+
'perpendicular',
|
| 753 |
+
'perpendicularmark',
|
| 754 |
+
'phantom',
|
| 755 |
+
'phi1',
|
| 756 |
+
'phi2',
|
| 757 |
+
'phi3',
|
| 758 |
+
'photon',
|
| 759 |
+
'piecewisestraight',
|
| 760 |
+
'point',
|
| 761 |
+
'polar',
|
| 762 |
+
'polarconicroutine',
|
| 763 |
+
'polargraph',
|
| 764 |
+
'polygon',
|
| 765 |
+
'postcontrol',
|
| 766 |
+
'postscript',
|
| 767 |
+
'pow10',
|
| 768 |
+
'ppoint',
|
| 769 |
+
'prc',
|
| 770 |
+
'prc0',
|
| 771 |
+
'precision',
|
| 772 |
+
'precontrol',
|
| 773 |
+
'prepend',
|
| 774 |
+
'print_random_addresses',
|
| 775 |
+
'project',
|
| 776 |
+
'projection',
|
| 777 |
+
'purge',
|
| 778 |
+
'pwhermite',
|
| 779 |
+
'quadrant',
|
| 780 |
+
'quadraticroots',
|
| 781 |
+
'quantize',
|
| 782 |
+
'quarticroots',
|
| 783 |
+
'quotient',
|
| 784 |
+
'radialshade',
|
| 785 |
+
'radians',
|
| 786 |
+
'radicalcenter',
|
| 787 |
+
'radicalline',
|
| 788 |
+
'radius',
|
| 789 |
+
'rand',
|
| 790 |
+
'randompath',
|
| 791 |
+
'rd',
|
| 792 |
+
'readline',
|
| 793 |
+
'realmult',
|
| 794 |
+
'realquarticroots',
|
| 795 |
+
'rectangle',
|
| 796 |
+
'rectangular',
|
| 797 |
+
'rectify',
|
| 798 |
+
'reflect',
|
| 799 |
+
'relabscissa',
|
| 800 |
+
'relative',
|
| 801 |
+
'relativedistance',
|
| 802 |
+
'reldir',
|
| 803 |
+
'relpoint',
|
| 804 |
+
'reltime',
|
| 805 |
+
'remainder',
|
| 806 |
+
'remark',
|
| 807 |
+
'removeDuplicates',
|
| 808 |
+
'rename',
|
| 809 |
+
'replace',
|
| 810 |
+
'report',
|
| 811 |
+
'resetdefaultpen',
|
| 812 |
+
'restore',
|
| 813 |
+
'restoredefaults',
|
| 814 |
+
'reverse',
|
| 815 |
+
'reversevideo',
|
| 816 |
+
'rf',
|
| 817 |
+
'rfind',
|
| 818 |
+
'rgb',
|
| 819 |
+
'rgba',
|
| 820 |
+
'rgbint',
|
| 821 |
+
'rms',
|
| 822 |
+
'rotate',
|
| 823 |
+
'rotateO',
|
| 824 |
+
'rotation',
|
| 825 |
+
'round',
|
| 826 |
+
'roundbox',
|
| 827 |
+
'roundedpath',
|
| 828 |
+
'roundrectangle',
|
| 829 |
+
'samecoordsys',
|
| 830 |
+
'sameside',
|
| 831 |
+
'sample',
|
| 832 |
+
'save',
|
| 833 |
+
'savedefaults',
|
| 834 |
+
'saveline',
|
| 835 |
+
'scale',
|
| 836 |
+
'scale3',
|
| 837 |
+
'scaleO',
|
| 838 |
+
'scaleT',
|
| 839 |
+
'scaleless',
|
| 840 |
+
'scientific',
|
| 841 |
+
'search',
|
| 842 |
+
'searchtree',
|
| 843 |
+
'sec',
|
| 844 |
+
'secondaryX',
|
| 845 |
+
'secondaryY',
|
| 846 |
+
'seconds',
|
| 847 |
+
'section',
|
| 848 |
+
'sector',
|
| 849 |
+
'seek',
|
| 850 |
+
'seekeof',
|
| 851 |
+
'segment',
|
| 852 |
+
'sequence',
|
| 853 |
+
'setpens',
|
| 854 |
+
'sgn',
|
| 855 |
+
'sgnd',
|
| 856 |
+
'sharpangle',
|
| 857 |
+
'sharpdegrees',
|
| 858 |
+
'shift',
|
| 859 |
+
'shiftless',
|
| 860 |
+
'shipout',
|
| 861 |
+
'shipout3',
|
| 862 |
+
'show',
|
| 863 |
+
'side',
|
| 864 |
+
'simeq',
|
| 865 |
+
'simpson',
|
| 866 |
+
'sin',
|
| 867 |
+
'single',
|
| 868 |
+
'sinh',
|
| 869 |
+
'size',
|
| 870 |
+
'size3',
|
| 871 |
+
'skewness',
|
| 872 |
+
'skip',
|
| 873 |
+
'slant',
|
| 874 |
+
'sleep',
|
| 875 |
+
'slope',
|
| 876 |
+
'slopefield',
|
| 877 |
+
'solve',
|
| 878 |
+
'solveBVP',
|
| 879 |
+
'sort',
|
| 880 |
+
'sourceline',
|
| 881 |
+
'sphere',
|
| 882 |
+
'split',
|
| 883 |
+
'sqrt',
|
| 884 |
+
'square',
|
| 885 |
+
'srand',
|
| 886 |
+
'standardizecoordsys',
|
| 887 |
+
'startScript',
|
| 888 |
+
'startTrembling',
|
| 889 |
+
'stdev',
|
| 890 |
+
'step',
|
| 891 |
+
'stickframe',
|
| 892 |
+
'stickmarksize',
|
| 893 |
+
'stickmarkspace',
|
| 894 |
+
'stop',
|
| 895 |
+
'straight',
|
| 896 |
+
'straightness',
|
| 897 |
+
'string',
|
| 898 |
+
'stripdirectory',
|
| 899 |
+
'stripextension',
|
| 900 |
+
'stripfile',
|
| 901 |
+
'strokepath',
|
| 902 |
+
'subdivide',
|
| 903 |
+
'subitem',
|
| 904 |
+
'subpath',
|
| 905 |
+
'substr',
|
| 906 |
+
'sum',
|
| 907 |
+
'surface',
|
| 908 |
+
'symmedial',
|
| 909 |
+
'symmedian',
|
| 910 |
+
'system',
|
| 911 |
+
'tab',
|
| 912 |
+
'tableau',
|
| 913 |
+
'tan',
|
| 914 |
+
'tangent',
|
| 915 |
+
'tangential',
|
| 916 |
+
'tangents',
|
| 917 |
+
'tanh',
|
| 918 |
+
'tell',
|
| 919 |
+
'tensionSpecifier',
|
| 920 |
+
'tensorshade',
|
| 921 |
+
'tex',
|
| 922 |
+
'texcolor',
|
| 923 |
+
'texify',
|
| 924 |
+
'texpath',
|
| 925 |
+
'texpreamble',
|
| 926 |
+
'texreset',
|
| 927 |
+
'texshipout',
|
| 928 |
+
'texsize',
|
| 929 |
+
'textpath',
|
| 930 |
+
'thick',
|
| 931 |
+
'thin',
|
| 932 |
+
'tick',
|
| 933 |
+
'tickMax',
|
| 934 |
+
'tickMax3',
|
| 935 |
+
'tickMin',
|
| 936 |
+
'tickMin3',
|
| 937 |
+
'ticklabelshift',
|
| 938 |
+
'ticklocate',
|
| 939 |
+
'tildeframe',
|
| 940 |
+
'tildemarksize',
|
| 941 |
+
'tile',
|
| 942 |
+
'tiling',
|
| 943 |
+
'time',
|
| 944 |
+
'times',
|
| 945 |
+
'title',
|
| 946 |
+
'titlepage',
|
| 947 |
+
'topbox',
|
| 948 |
+
'transform',
|
| 949 |
+
'transformation',
|
| 950 |
+
'transpose',
|
| 951 |
+
'tremble',
|
| 952 |
+
'trembleFuzz',
|
| 953 |
+
'tremble_circlenodesnumber',
|
| 954 |
+
'tremble_circlenodesnumber1',
|
| 955 |
+
'tremble_draw',
|
| 956 |
+
'tremble_ellipsenodesnumber',
|
| 957 |
+
'tremble_ellipsenodesnumber1',
|
| 958 |
+
'tremble_hyperbolanodesnumber',
|
| 959 |
+
'tremble_marknodes',
|
| 960 |
+
'tremble_markuniform',
|
| 961 |
+
'tremble_parabolanodesnumber',
|
| 962 |
+
'triangle',
|
| 963 |
+
'triangleAbc',
|
| 964 |
+
'triangleabc',
|
| 965 |
+
'triangulate',
|
| 966 |
+
'tricoef',
|
| 967 |
+
'tridiagonal',
|
| 968 |
+
'trilinear',
|
| 969 |
+
'trim',
|
| 970 |
+
'trueMagnetize',
|
| 971 |
+
'truepoint',
|
| 972 |
+
'tube',
|
| 973 |
+
'uncycle',
|
| 974 |
+
'unfill',
|
| 975 |
+
'uniform',
|
| 976 |
+
'unit',
|
| 977 |
+
'unitrand',
|
| 978 |
+
'unitsize',
|
| 979 |
+
'unityroot',
|
| 980 |
+
'unstraighten',
|
| 981 |
+
'upcase',
|
| 982 |
+
'updatefunction',
|
| 983 |
+
'uperiodic',
|
| 984 |
+
'upscale',
|
| 985 |
+
'uptodate',
|
| 986 |
+
'usepackage',
|
| 987 |
+
'usersetting',
|
| 988 |
+
'usetypescript',
|
| 989 |
+
'usleep',
|
| 990 |
+
'value',
|
| 991 |
+
'variance',
|
| 992 |
+
'variancebiased',
|
| 993 |
+
'vbox',
|
| 994 |
+
'vector',
|
| 995 |
+
'vectorfield',
|
| 996 |
+
'verbatim',
|
| 997 |
+
'view',
|
| 998 |
+
'vline',
|
| 999 |
+
'vperiodic',
|
| 1000 |
+
'vprojection',
|
| 1001 |
+
'warn',
|
| 1002 |
+
'warning',
|
| 1003 |
+
'windingnumber',
|
| 1004 |
+
'write',
|
| 1005 |
+
'xaxis',
|
| 1006 |
+
'xaxis3',
|
| 1007 |
+
'xaxis3At',
|
| 1008 |
+
'xaxisAt',
|
| 1009 |
+
'xequals',
|
| 1010 |
+
'xinput',
|
| 1011 |
+
'xlimits',
|
| 1012 |
+
'xoutput',
|
| 1013 |
+
'xpart',
|
| 1014 |
+
'xscale',
|
| 1015 |
+
'xscaleO',
|
| 1016 |
+
'xtick',
|
| 1017 |
+
'xtick3',
|
| 1018 |
+
'xtrans',
|
| 1019 |
+
'yaxis',
|
| 1020 |
+
'yaxis3',
|
| 1021 |
+
'yaxis3At',
|
| 1022 |
+
'yaxisAt',
|
| 1023 |
+
'yequals',
|
| 1024 |
+
'ylimits',
|
| 1025 |
+
'ypart',
|
| 1026 |
+
'yscale',
|
| 1027 |
+
'yscaleO',
|
| 1028 |
+
'ytick',
|
| 1029 |
+
'ytick3',
|
| 1030 |
+
'ytrans',
|
| 1031 |
+
'zaxis3',
|
| 1032 |
+
'zaxis3At',
|
| 1033 |
+
'zero',
|
| 1034 |
+
'zero3',
|
| 1035 |
+
'zlimits',
|
| 1036 |
+
'zpart',
|
| 1037 |
+
'ztick',
|
| 1038 |
+
'ztick3',
|
| 1039 |
+
'ztrans'
|
| 1040 |
+
}
|
| 1041 |
+
|
| 1042 |
+
ASYVARNAME = {
|
| 1043 |
+
'AliceBlue',
|
| 1044 |
+
'Align',
|
| 1045 |
+
'Allow',
|
| 1046 |
+
'AntiqueWhite',
|
| 1047 |
+
'Apricot',
|
| 1048 |
+
'Aqua',
|
| 1049 |
+
'Aquamarine',
|
| 1050 |
+
'Aspect',
|
| 1051 |
+
'Azure',
|
| 1052 |
+
'BeginPoint',
|
| 1053 |
+
'Beige',
|
| 1054 |
+
'Bisque',
|
| 1055 |
+
'Bittersweet',
|
| 1056 |
+
'Black',
|
| 1057 |
+
'BlanchedAlmond',
|
| 1058 |
+
'Blue',
|
| 1059 |
+
'BlueGreen',
|
| 1060 |
+
'BlueViolet',
|
| 1061 |
+
'Both',
|
| 1062 |
+
'Break',
|
| 1063 |
+
'BrickRed',
|
| 1064 |
+
'Brown',
|
| 1065 |
+
'BurlyWood',
|
| 1066 |
+
'BurntOrange',
|
| 1067 |
+
'CCW',
|
| 1068 |
+
'CW',
|
| 1069 |
+
'CadetBlue',
|
| 1070 |
+
'CarnationPink',
|
| 1071 |
+
'Center',
|
| 1072 |
+
'Centered',
|
| 1073 |
+
'Cerulean',
|
| 1074 |
+
'Chartreuse',
|
| 1075 |
+
'Chocolate',
|
| 1076 |
+
'Coeff',
|
| 1077 |
+
'Coral',
|
| 1078 |
+
'CornflowerBlue',
|
| 1079 |
+
'Cornsilk',
|
| 1080 |
+
'Crimson',
|
| 1081 |
+
'Crop',
|
| 1082 |
+
'Cyan',
|
| 1083 |
+
'Dandelion',
|
| 1084 |
+
'DarkBlue',
|
| 1085 |
+
'DarkCyan',
|
| 1086 |
+
'DarkGoldenrod',
|
| 1087 |
+
'DarkGray',
|
| 1088 |
+
'DarkGreen',
|
| 1089 |
+
'DarkKhaki',
|
| 1090 |
+
'DarkMagenta',
|
| 1091 |
+
'DarkOliveGreen',
|
| 1092 |
+
'DarkOrange',
|
| 1093 |
+
'DarkOrchid',
|
| 1094 |
+
'DarkRed',
|
| 1095 |
+
'DarkSalmon',
|
| 1096 |
+
'DarkSeaGreen',
|
| 1097 |
+
'DarkSlateBlue',
|
| 1098 |
+
'DarkSlateGray',
|
| 1099 |
+
'DarkTurquoise',
|
| 1100 |
+
'DarkViolet',
|
| 1101 |
+
'DeepPink',
|
| 1102 |
+
'DeepSkyBlue',
|
| 1103 |
+
'DefaultHead',
|
| 1104 |
+
'DimGray',
|
| 1105 |
+
'DodgerBlue',
|
| 1106 |
+
'Dotted',
|
| 1107 |
+
'Draw',
|
| 1108 |
+
'E',
|
| 1109 |
+
'ENE',
|
| 1110 |
+
'EPS',
|
| 1111 |
+
'ESE',
|
| 1112 |
+
'E_Euler',
|
| 1113 |
+
'E_PC',
|
| 1114 |
+
'E_RK2',
|
| 1115 |
+
'E_RK3BS',
|
| 1116 |
+
'Emerald',
|
| 1117 |
+
'EndPoint',
|
| 1118 |
+
'Euler',
|
| 1119 |
+
'Fill',
|
| 1120 |
+
'FillDraw',
|
| 1121 |
+
'FireBrick',
|
| 1122 |
+
'FloralWhite',
|
| 1123 |
+
'ForestGreen',
|
| 1124 |
+
'Fuchsia',
|
| 1125 |
+
'Gainsboro',
|
| 1126 |
+
'GhostWhite',
|
| 1127 |
+
'Gold',
|
| 1128 |
+
'Goldenrod',
|
| 1129 |
+
'Gray',
|
| 1130 |
+
'Green',
|
| 1131 |
+
'GreenYellow',
|
| 1132 |
+
'Honeydew',
|
| 1133 |
+
'HookHead',
|
| 1134 |
+
'Horizontal',
|
| 1135 |
+
'HotPink',
|
| 1136 |
+
'I',
|
| 1137 |
+
'IgnoreAspect',
|
| 1138 |
+
'IndianRed',
|
| 1139 |
+
'Indigo',
|
| 1140 |
+
'Ivory',
|
| 1141 |
+
'JOIN_IN',
|
| 1142 |
+
'JOIN_OUT',
|
| 1143 |
+
'JungleGreen',
|
| 1144 |
+
'Khaki',
|
| 1145 |
+
'LM_DWARF',
|
| 1146 |
+
'LM_MACHEP',
|
| 1147 |
+
'LM_SQRT_DWARF',
|
| 1148 |
+
'LM_SQRT_GIANT',
|
| 1149 |
+
'LM_USERTOL',
|
| 1150 |
+
'Label',
|
| 1151 |
+
'Lavender',
|
| 1152 |
+
'LavenderBlush',
|
| 1153 |
+
'LawnGreen',
|
| 1154 |
+
'LeftJustified',
|
| 1155 |
+
'LeftSide',
|
| 1156 |
+
'LemonChiffon',
|
| 1157 |
+
'LightBlue',
|
| 1158 |
+
'LightCoral',
|
| 1159 |
+
'LightCyan',
|
| 1160 |
+
'LightGoldenrodYellow',
|
| 1161 |
+
'LightGreen',
|
| 1162 |
+
'LightGrey',
|
| 1163 |
+
'LightPink',
|
| 1164 |
+
'LightSalmon',
|
| 1165 |
+
'LightSeaGreen',
|
| 1166 |
+
'LightSkyBlue',
|
| 1167 |
+
'LightSlateGray',
|
| 1168 |
+
'LightSteelBlue',
|
| 1169 |
+
'LightYellow',
|
| 1170 |
+
'Lime',
|
| 1171 |
+
'LimeGreen',
|
| 1172 |
+
'Linear',
|
| 1173 |
+
'Linen',
|
| 1174 |
+
'Log',
|
| 1175 |
+
'Logarithmic',
|
| 1176 |
+
'Magenta',
|
| 1177 |
+
'Mahogany',
|
| 1178 |
+
'Mark',
|
| 1179 |
+
'MarkFill',
|
| 1180 |
+
'Maroon',
|
| 1181 |
+
'Max',
|
| 1182 |
+
'MediumAquamarine',
|
| 1183 |
+
'MediumBlue',
|
| 1184 |
+
'MediumOrchid',
|
| 1185 |
+
'MediumPurple',
|
| 1186 |
+
'MediumSeaGreen',
|
| 1187 |
+
'MediumSlateBlue',
|
| 1188 |
+
'MediumSpringGreen',
|
| 1189 |
+
'MediumTurquoise',
|
| 1190 |
+
'MediumVioletRed',
|
| 1191 |
+
'Melon',
|
| 1192 |
+
'MidPoint',
|
| 1193 |
+
'MidnightBlue',
|
| 1194 |
+
'Min',
|
| 1195 |
+
'MintCream',
|
| 1196 |
+
'MistyRose',
|
| 1197 |
+
'Moccasin',
|
| 1198 |
+
'Move',
|
| 1199 |
+
'MoveQuiet',
|
| 1200 |
+
'Mulberry',
|
| 1201 |
+
'N',
|
| 1202 |
+
'NE',
|
| 1203 |
+
'NNE',
|
| 1204 |
+
'NNW',
|
| 1205 |
+
'NW',
|
| 1206 |
+
'NavajoWhite',
|
| 1207 |
+
'Navy',
|
| 1208 |
+
'NavyBlue',
|
| 1209 |
+
'NoAlign',
|
| 1210 |
+
'NoCrop',
|
| 1211 |
+
'NoFill',
|
| 1212 |
+
'NoSide',
|
| 1213 |
+
'OldLace',
|
| 1214 |
+
'Olive',
|
| 1215 |
+
'OliveDrab',
|
| 1216 |
+
'OliveGreen',
|
| 1217 |
+
'Orange',
|
| 1218 |
+
'OrangeRed',
|
| 1219 |
+
'Orchid',
|
| 1220 |
+
'Ox',
|
| 1221 |
+
'Oy',
|
| 1222 |
+
'PC',
|
| 1223 |
+
'PaleGoldenrod',
|
| 1224 |
+
'PaleGreen',
|
| 1225 |
+
'PaleTurquoise',
|
| 1226 |
+
'PaleVioletRed',
|
| 1227 |
+
'PapayaWhip',
|
| 1228 |
+
'Peach',
|
| 1229 |
+
'PeachPuff',
|
| 1230 |
+
'Periwinkle',
|
| 1231 |
+
'Peru',
|
| 1232 |
+
'PineGreen',
|
| 1233 |
+
'Pink',
|
| 1234 |
+
'Plum',
|
| 1235 |
+
'PowderBlue',
|
| 1236 |
+
'ProcessBlue',
|
| 1237 |
+
'Purple',
|
| 1238 |
+
'RK2',
|
| 1239 |
+
'RK3',
|
| 1240 |
+
'RK3BS',
|
| 1241 |
+
'RK4',
|
| 1242 |
+
'RK5',
|
| 1243 |
+
'RK5DP',
|
| 1244 |
+
'RK5F',
|
| 1245 |
+
'RawSienna',
|
| 1246 |
+
'Red',
|
| 1247 |
+
'RedOrange',
|
| 1248 |
+
'RedViolet',
|
| 1249 |
+
'Rhodamine',
|
| 1250 |
+
'RightJustified',
|
| 1251 |
+
'RightSide',
|
| 1252 |
+
'RosyBrown',
|
| 1253 |
+
'RoyalBlue',
|
| 1254 |
+
'RoyalPurple',
|
| 1255 |
+
'RubineRed',
|
| 1256 |
+
'S',
|
| 1257 |
+
'SE',
|
| 1258 |
+
'SSE',
|
| 1259 |
+
'SSW',
|
| 1260 |
+
'SW',
|
| 1261 |
+
'SaddleBrown',
|
| 1262 |
+
'Salmon',
|
| 1263 |
+
'SandyBrown',
|
| 1264 |
+
'SeaGreen',
|
| 1265 |
+
'Seashell',
|
| 1266 |
+
'Sepia',
|
| 1267 |
+
'Sienna',
|
| 1268 |
+
'Silver',
|
| 1269 |
+
'SimpleHead',
|
| 1270 |
+
'SkyBlue',
|
| 1271 |
+
'SlateBlue',
|
| 1272 |
+
'SlateGray',
|
| 1273 |
+
'Snow',
|
| 1274 |
+
'SpringGreen',
|
| 1275 |
+
'SteelBlue',
|
| 1276 |
+
'Suppress',
|
| 1277 |
+
'SuppressQuiet',
|
| 1278 |
+
'Tan',
|
| 1279 |
+
'TeXHead',
|
| 1280 |
+
'Teal',
|
| 1281 |
+
'TealBlue',
|
| 1282 |
+
'Thistle',
|
| 1283 |
+
'Ticksize',
|
| 1284 |
+
'Tomato',
|
| 1285 |
+
'Turquoise',
|
| 1286 |
+
'UnFill',
|
| 1287 |
+
'VERSION',
|
| 1288 |
+
'Value',
|
| 1289 |
+
'Vertical',
|
| 1290 |
+
'Violet',
|
| 1291 |
+
'VioletRed',
|
| 1292 |
+
'W',
|
| 1293 |
+
'WNW',
|
| 1294 |
+
'WSW',
|
| 1295 |
+
'Wheat',
|
| 1296 |
+
'White',
|
| 1297 |
+
'WhiteSmoke',
|
| 1298 |
+
'WildStrawberry',
|
| 1299 |
+
'XYAlign',
|
| 1300 |
+
'YAlign',
|
| 1301 |
+
'Yellow',
|
| 1302 |
+
'YellowGreen',
|
| 1303 |
+
'YellowOrange',
|
| 1304 |
+
'addpenarc',
|
| 1305 |
+
'addpenline',
|
| 1306 |
+
'align',
|
| 1307 |
+
'allowstepping',
|
| 1308 |
+
'angularsystem',
|
| 1309 |
+
'animationdelay',
|
| 1310 |
+
'appendsuffix',
|
| 1311 |
+
'arcarrowangle',
|
| 1312 |
+
'arcarrowfactor',
|
| 1313 |
+
'arrow2sizelimit',
|
| 1314 |
+
'arrowangle',
|
| 1315 |
+
'arrowbarb',
|
| 1316 |
+
'arrowdir',
|
| 1317 |
+
'arrowfactor',
|
| 1318 |
+
'arrowhookfactor',
|
| 1319 |
+
'arrowlength',
|
| 1320 |
+
'arrowsizelimit',
|
| 1321 |
+
'arrowtexfactor',
|
| 1322 |
+
'authorpen',
|
| 1323 |
+
'axis',
|
| 1324 |
+
'axiscoverage',
|
| 1325 |
+
'axislabelfactor',
|
| 1326 |
+
'background',
|
| 1327 |
+
'backgroundcolor',
|
| 1328 |
+
'backgroundpen',
|
| 1329 |
+
'barfactor',
|
| 1330 |
+
'barmarksizefactor',
|
| 1331 |
+
'basealign',
|
| 1332 |
+
'baselinetemplate',
|
| 1333 |
+
'beveljoin',
|
| 1334 |
+
'bigvertexpen',
|
| 1335 |
+
'bigvertexsize',
|
| 1336 |
+
'black',
|
| 1337 |
+
'blue',
|
| 1338 |
+
'bm',
|
| 1339 |
+
'bottom',
|
| 1340 |
+
'bp',
|
| 1341 |
+
'brown',
|
| 1342 |
+
'bullet',
|
| 1343 |
+
'byfoci',
|
| 1344 |
+
'byvertices',
|
| 1345 |
+
'camerafactor',
|
| 1346 |
+
'chartreuse',
|
| 1347 |
+
'circlemarkradiusfactor',
|
| 1348 |
+
'circlenodesnumberfactor',
|
| 1349 |
+
'circleprecision',
|
| 1350 |
+
'circlescale',
|
| 1351 |
+
'cm',
|
| 1352 |
+
'codefile',
|
| 1353 |
+
'codepen',
|
| 1354 |
+
'codeskip',
|
| 1355 |
+
'colorPen',
|
| 1356 |
+
'coloredNodes',
|
| 1357 |
+
'coloredSegments',
|
| 1358 |
+
'conditionlength',
|
| 1359 |
+
'conicnodesfactor',
|
| 1360 |
+
'count',
|
| 1361 |
+
'cputimeformat',
|
| 1362 |
+
'crossmarksizefactor',
|
| 1363 |
+
'currentcoordsys',
|
| 1364 |
+
'currentlight',
|
| 1365 |
+
'currentpatterns',
|
| 1366 |
+
'currentpen',
|
| 1367 |
+
'currentpicture',
|
| 1368 |
+
'currentposition',
|
| 1369 |
+
'currentprojection',
|
| 1370 |
+
'curvilinearsystem',
|
| 1371 |
+
'cuttings',
|
| 1372 |
+
'cyan',
|
| 1373 |
+
'darkblue',
|
| 1374 |
+
'darkbrown',
|
| 1375 |
+
'darkcyan',
|
| 1376 |
+
'darkgray',
|
| 1377 |
+
'darkgreen',
|
| 1378 |
+
'darkgrey',
|
| 1379 |
+
'darkmagenta',
|
| 1380 |
+
'darkolive',
|
| 1381 |
+
'darkred',
|
| 1382 |
+
'dashdotted',
|
| 1383 |
+
'dashed',
|
| 1384 |
+
'datepen',
|
| 1385 |
+
'dateskip',
|
| 1386 |
+
'debuggerlines',
|
| 1387 |
+
'debugging',
|
| 1388 |
+
'deepblue',
|
| 1389 |
+
'deepcyan',
|
| 1390 |
+
'deepgray',
|
| 1391 |
+
'deepgreen',
|
| 1392 |
+
'deepgrey',
|
| 1393 |
+
'deepmagenta',
|
| 1394 |
+
'deepred',
|
| 1395 |
+
'default',
|
| 1396 |
+
'defaultControl',
|
| 1397 |
+
'defaultS',
|
| 1398 |
+
'defaultbackpen',
|
| 1399 |
+
'defaultcoordsys',
|
| 1400 |
+
'defaultfilename',
|
| 1401 |
+
'defaultformat',
|
| 1402 |
+
'defaultmassformat',
|
| 1403 |
+
'defaultpen',
|
| 1404 |
+
'diagnostics',
|
| 1405 |
+
'differentlengths',
|
| 1406 |
+
'dot',
|
| 1407 |
+
'dotfactor',
|
| 1408 |
+
'dotframe',
|
| 1409 |
+
'dotted',
|
| 1410 |
+
'doublelinepen',
|
| 1411 |
+
'doublelinespacing',
|
| 1412 |
+
'down',
|
| 1413 |
+
'duplicateFuzz',
|
| 1414 |
+
'ellipsenodesnumberfactor',
|
| 1415 |
+
'eps',
|
| 1416 |
+
'epsgeo',
|
| 1417 |
+
'epsilon',
|
| 1418 |
+
'evenodd',
|
| 1419 |
+
'extendcap',
|
| 1420 |
+
'fermionpen',
|
| 1421 |
+
'figureborder',
|
| 1422 |
+
'figuremattpen',
|
| 1423 |
+
'firstnode',
|
| 1424 |
+
'firststep',
|
| 1425 |
+
'foregroundcolor',
|
| 1426 |
+
'fuchsia',
|
| 1427 |
+
'fuzz',
|
| 1428 |
+
'gapfactor',
|
| 1429 |
+
'ghostpen',
|
| 1430 |
+
'gluonamplitude',
|
| 1431 |
+
'gluonpen',
|
| 1432 |
+
'gluonratio',
|
| 1433 |
+
'gray',
|
| 1434 |
+
'green',
|
| 1435 |
+
'grey',
|
| 1436 |
+
'hatchepsilon',
|
| 1437 |
+
'havepagenumber',
|
| 1438 |
+
'heavyblue',
|
| 1439 |
+
'heavycyan',
|
| 1440 |
+
'heavygray',
|
| 1441 |
+
'heavygreen',
|
| 1442 |
+
'heavygrey',
|
| 1443 |
+
'heavymagenta',
|
| 1444 |
+
'heavyred',
|
| 1445 |
+
'hline',
|
| 1446 |
+
'hwratio',
|
| 1447 |
+
'hyperbolanodesnumberfactor',
|
| 1448 |
+
'identity4',
|
| 1449 |
+
'ignore',
|
| 1450 |
+
'inXasyMode',
|
| 1451 |
+
'inch',
|
| 1452 |
+
'inches',
|
| 1453 |
+
'includegraphicscommand',
|
| 1454 |
+
'inf',
|
| 1455 |
+
'infinity',
|
| 1456 |
+
'institutionpen',
|
| 1457 |
+
'intMax',
|
| 1458 |
+
'intMin',
|
| 1459 |
+
'invert',
|
| 1460 |
+
'invisible',
|
| 1461 |
+
'itempen',
|
| 1462 |
+
'itemskip',
|
| 1463 |
+
'itemstep',
|
| 1464 |
+
'labelmargin',
|
| 1465 |
+
'landscape',
|
| 1466 |
+
'lastnode',
|
| 1467 |
+
'left',
|
| 1468 |
+
'legendhskip',
|
| 1469 |
+
'legendlinelength',
|
| 1470 |
+
'legendmargin',
|
| 1471 |
+
'legendmarkersize',
|
| 1472 |
+
'legendmaxrelativewidth',
|
| 1473 |
+
'legendvskip',
|
| 1474 |
+
'lightblue',
|
| 1475 |
+
'lightcyan',
|
| 1476 |
+
'lightgray',
|
| 1477 |
+
'lightgreen',
|
| 1478 |
+
'lightgrey',
|
| 1479 |
+
'lightmagenta',
|
| 1480 |
+
'lightolive',
|
| 1481 |
+
'lightred',
|
| 1482 |
+
'lightyellow',
|
| 1483 |
+
'linemargin',
|
| 1484 |
+
'lm_infmsg',
|
| 1485 |
+
'lm_shortmsg',
|
| 1486 |
+
'longdashdotted',
|
| 1487 |
+
'longdashed',
|
| 1488 |
+
'magenta',
|
| 1489 |
+
'magneticPoints',
|
| 1490 |
+
'magneticRadius',
|
| 1491 |
+
'mantissaBits',
|
| 1492 |
+
'markangleradius',
|
| 1493 |
+
'markangleradiusfactor',
|
| 1494 |
+
'markanglespace',
|
| 1495 |
+
'markanglespacefactor',
|
| 1496 |
+
'mediumblue',
|
| 1497 |
+
'mediumcyan',
|
| 1498 |
+
'mediumgray',
|
| 1499 |
+
'mediumgreen',
|
| 1500 |
+
'mediumgrey',
|
| 1501 |
+
'mediummagenta',
|
| 1502 |
+
'mediumred',
|
| 1503 |
+
'mediumyellow',
|
| 1504 |
+
'middle',
|
| 1505 |
+
'minDistDefault',
|
| 1506 |
+
'minblockheight',
|
| 1507 |
+
'minblockwidth',
|
| 1508 |
+
'mincirclediameter',
|
| 1509 |
+
'minipagemargin',
|
| 1510 |
+
'minipagewidth',
|
| 1511 |
+
'minvertexangle',
|
| 1512 |
+
'miterjoin',
|
| 1513 |
+
'mm',
|
| 1514 |
+
'momarrowfactor',
|
| 1515 |
+
'momarrowlength',
|
| 1516 |
+
'momarrowmargin',
|
| 1517 |
+
'momarrowoffset',
|
| 1518 |
+
'momarrowpen',
|
| 1519 |
+
'monoPen',
|
| 1520 |
+
'morepoints',
|
| 1521 |
+
'nCircle',
|
| 1522 |
+
'newbulletcolor',
|
| 1523 |
+
'ngraph',
|
| 1524 |
+
'nil',
|
| 1525 |
+
'nmesh',
|
| 1526 |
+
'nobasealign',
|
| 1527 |
+
'nodeMarginDefault',
|
| 1528 |
+
'nodesystem',
|
| 1529 |
+
'nomarker',
|
| 1530 |
+
'nopoint',
|
| 1531 |
+
'noprimary',
|
| 1532 |
+
'nullpath',
|
| 1533 |
+
'nullpen',
|
| 1534 |
+
'numarray',
|
| 1535 |
+
'ocgindex',
|
| 1536 |
+
'oldbulletcolor',
|
| 1537 |
+
'olive',
|
| 1538 |
+
'orange',
|
| 1539 |
+
'origin',
|
| 1540 |
+
'overpaint',
|
| 1541 |
+
'page',
|
| 1542 |
+
'pageheight',
|
| 1543 |
+
'pagemargin',
|
| 1544 |
+
'pagenumberalign',
|
| 1545 |
+
'pagenumberpen',
|
| 1546 |
+
'pagenumberposition',
|
| 1547 |
+
'pagewidth',
|
| 1548 |
+
'paleblue',
|
| 1549 |
+
'palecyan',
|
| 1550 |
+
'palegray',
|
| 1551 |
+
'palegreen',
|
| 1552 |
+
'palegrey',
|
| 1553 |
+
'palemagenta',
|
| 1554 |
+
'palered',
|
| 1555 |
+
'paleyellow',
|
| 1556 |
+
'parabolanodesnumberfactor',
|
| 1557 |
+
'perpfactor',
|
| 1558 |
+
'phi',
|
| 1559 |
+
'photonamplitude',
|
| 1560 |
+
'photonpen',
|
| 1561 |
+
'photonratio',
|
| 1562 |
+
'pi',
|
| 1563 |
+
'pink',
|
| 1564 |
+
'plain',
|
| 1565 |
+
'plus',
|
| 1566 |
+
'preamblenodes',
|
| 1567 |
+
'pt',
|
| 1568 |
+
'purple',
|
| 1569 |
+
'r3',
|
| 1570 |
+
'r4a',
|
| 1571 |
+
'r4b',
|
| 1572 |
+
'randMax',
|
| 1573 |
+
'realDigits',
|
| 1574 |
+
'realEpsilon',
|
| 1575 |
+
'realMax',
|
| 1576 |
+
'realMin',
|
| 1577 |
+
'red',
|
| 1578 |
+
'relativesystem',
|
| 1579 |
+
'reverse',
|
| 1580 |
+
'right',
|
| 1581 |
+
'roundcap',
|
| 1582 |
+
'roundjoin',
|
| 1583 |
+
'royalblue',
|
| 1584 |
+
'salmon',
|
| 1585 |
+
'saveFunctions',
|
| 1586 |
+
'scalarpen',
|
| 1587 |
+
'sequencereal',
|
| 1588 |
+
'settings',
|
| 1589 |
+
'shipped',
|
| 1590 |
+
'signedtrailingzero',
|
| 1591 |
+
'solid',
|
| 1592 |
+
'springgreen',
|
| 1593 |
+
'sqrtEpsilon',
|
| 1594 |
+
'squarecap',
|
| 1595 |
+
'squarepen',
|
| 1596 |
+
'startposition',
|
| 1597 |
+
'stdin',
|
| 1598 |
+
'stdout',
|
| 1599 |
+
'stepfactor',
|
| 1600 |
+
'stepfraction',
|
| 1601 |
+
'steppagenumberpen',
|
| 1602 |
+
'stepping',
|
| 1603 |
+
'stickframe',
|
| 1604 |
+
'stickmarksizefactor',
|
| 1605 |
+
'stickmarkspacefactor',
|
| 1606 |
+
'textpen',
|
| 1607 |
+
'ticksize',
|
| 1608 |
+
'tildeframe',
|
| 1609 |
+
'tildemarksizefactor',
|
| 1610 |
+
'tinv',
|
| 1611 |
+
'titlealign',
|
| 1612 |
+
'titlepagepen',
|
| 1613 |
+
'titlepageposition',
|
| 1614 |
+
'titlepen',
|
| 1615 |
+
'titleskip',
|
| 1616 |
+
'top',
|
| 1617 |
+
'trailingzero',
|
| 1618 |
+
'treeLevelStep',
|
| 1619 |
+
'treeMinNodeWidth',
|
| 1620 |
+
'treeNodeStep',
|
| 1621 |
+
'trembleAngle',
|
| 1622 |
+
'trembleFrequency',
|
| 1623 |
+
'trembleRandom',
|
| 1624 |
+
'tremblingMode',
|
| 1625 |
+
'undefined',
|
| 1626 |
+
'unitcircle',
|
| 1627 |
+
'unitsquare',
|
| 1628 |
+
'up',
|
| 1629 |
+
'urlpen',
|
| 1630 |
+
'urlskip',
|
| 1631 |
+
'version',
|
| 1632 |
+
'vertexpen',
|
| 1633 |
+
'vertexsize',
|
| 1634 |
+
'viewportmargin',
|
| 1635 |
+
'viewportsize',
|
| 1636 |
+
'vline',
|
| 1637 |
+
'white',
|
| 1638 |
+
'wye',
|
| 1639 |
+
'xformStack',
|
| 1640 |
+
'yellow',
|
| 1641 |
+
'ylabelwidth',
|
| 1642 |
+
'zerotickfuzz',
|
| 1643 |
+
'zerowinding'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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pygments.lexers._csound_builtins
|
| 3 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 6 |
+
:license: BSD, see LICENSE for details.
|
| 7 |
+
"""
|
| 8 |
+
|
| 9 |
+
REMOVED_OPCODES = set('''
|
| 10 |
+
OSCsendA
|
| 11 |
+
beadsynt
|
| 12 |
+
beosc
|
| 13 |
+
buchla
|
| 14 |
+
getrowlin
|
| 15 |
+
lua_exec
|
| 16 |
+
lua_iaopcall
|
| 17 |
+
lua_iaopcall_off
|
| 18 |
+
lua_ikopcall
|
| 19 |
+
lua_ikopcall_off
|
| 20 |
+
lua_iopcall
|
| 21 |
+
lua_iopcall_off
|
| 22 |
+
lua_opdef
|
| 23 |
+
mp3scal_check
|
| 24 |
+
mp3scal_load
|
| 25 |
+
mp3scal_load2
|
| 26 |
+
mp3scal_play
|
| 27 |
+
mp3scal_play2
|
| 28 |
+
pvsgendy
|
| 29 |
+
socksend_k
|
| 30 |
+
signalflowgraph
|
| 31 |
+
sumTableFilter
|
| 32 |
+
systime
|
| 33 |
+
tabrowlin
|
| 34 |
+
vbap1move
|
| 35 |
+
'''.split())
|
| 36 |
+
|
| 37 |
+
# Opcodes in Csound 6.18.0 using:
|
| 38 |
+
# python3 -c "
|
| 39 |
+
# import re
|
| 40 |
+
# from subprocess import Popen, PIPE
|
| 41 |
+
# output = Popen(['csound', '--list-opcodes0'], stderr=PIPE, text=True).communicate()[1]
|
| 42 |
+
# opcodes = output[re.search(r'^\$', output, re.M).end() : re.search(r'^\d+ opcodes\$', output, re.M).start()].split()
|
| 43 |
+
# output = Popen(['csound', '--list-opcodes2'], stderr=PIPE, text=True).communicate()[1]
|
| 44 |
+
# all_opcodes = output[re.search(r'^\$', output, re.M).end() : re.search(r'^\d+ opcodes\$', output, re.M).start()].split()
|
| 45 |
+
# deprecated_opcodes = [opcode for opcode in all_opcodes if opcode not in opcodes]
|
| 46 |
+
# # Remove opcodes that csound.py treats as keywords.
|
| 47 |
+
# keyword_opcodes = [
|
| 48 |
+
# 'cggoto', # https://csound.com/docs/manual/cggoto.html
|
| 49 |
+
# 'cigoto', # https://csound.com/docs/manual/cigoto.html
|
| 50 |
+
# 'cingoto', # (undocumented)
|
| 51 |
+
# 'ckgoto', # https://csound.com/docs/manual/ckgoto.html
|
| 52 |
+
# 'cngoto', # https://csound.com/docs/manual/cngoto.html
|
| 53 |
+
# 'cnkgoto', # (undocumented)
|
| 54 |
+
# 'endin', # https://csound.com/docs/manual/endin.html
|
| 55 |
+
# 'endop', # https://csound.com/docs/manual/endop.html
|
| 56 |
+
# 'goto', # https://csound.com/docs/manual/goto.html
|
| 57 |
+
# 'igoto', # https://csound.com/docs/manual/igoto.html
|
| 58 |
+
# 'instr', # https://csound.com/docs/manual/instr.html
|
| 59 |
+
# 'kgoto', # https://csound.com/docs/manual/kgoto.html
|
| 60 |
+
# 'loop_ge', # https://csound.com/docs/manual/loop_ge.html
|
| 61 |
+
# 'loop_gt', # https://csound.com/docs/manual/loop_gt.html
|
| 62 |
+
# 'loop_le', # https://csound.com/docs/manual/loop_le.html
|
| 63 |
+
# 'loop_lt', # https://csound.com/docs/manual/loop_lt.html
|
| 64 |
+
# 'opcode', # https://csound.com/docs/manual/opcode.html
|
| 65 |
+
# 'reinit', # https://csound.com/docs/manual/reinit.html
|
| 66 |
+
# 'return', # https://csound.com/docs/manual/return.html
|
| 67 |
+
# 'rireturn', # https://csound.com/docs/manual/rireturn.html
|
| 68 |
+
# 'rigoto', # https://csound.com/docs/manual/rigoto.html
|
| 69 |
+
# 'tigoto', # https://csound.com/docs/manual/tigoto.html
|
| 70 |
+
# 'timout' # https://csound.com/docs/manual/timout.html
|
| 71 |
+
# ]
|
| 72 |
+
# opcodes = [opcode for opcode in opcodes if opcode not in keyword_opcodes]
|
| 73 |
+
# newline = '\n'
|
| 74 |
+
# print(f'''OPCODES = set(\'''
|
| 75 |
+
# {newline.join(opcodes)}
|
| 76 |
+
# \'''.split())
|
| 77 |
+
#
|
| 78 |
+
# DEPRECATED_OPCODES = set(\'''
|
| 79 |
+
# {newline.join(deprecated_opcodes)}
|
| 80 |
+
# \'''.split())
|
| 81 |
+
# ''')
|
| 82 |
+
# "
|
| 83 |
+
|
| 84 |
+
OPCODES = set('''
|
| 85 |
+
ATSadd
|
| 86 |
+
ATSaddnz
|
| 87 |
+
ATSbufread
|
| 88 |
+
ATScross
|
| 89 |
+
ATSinfo
|
| 90 |
+
ATSinterpread
|
| 91 |
+
ATSpartialtap
|
| 92 |
+
ATSread
|
| 93 |
+
ATSreadnz
|
| 94 |
+
ATSsinnoi
|
| 95 |
+
FLbox
|
| 96 |
+
FLbutBank
|
| 97 |
+
FLbutton
|
| 98 |
+
FLcloseButton
|
| 99 |
+
FLcolor
|
| 100 |
+
FLcolor2
|
| 101 |
+
FLcount
|
| 102 |
+
FLexecButton
|
| 103 |
+
FLgetsnap
|
| 104 |
+
FLgroup
|
| 105 |
+
FLgroupEnd
|
| 106 |
+
FLgroup_end
|
| 107 |
+
FLhide
|
| 108 |
+
FLhvsBox
|
| 109 |
+
FLhvsBoxSetValue
|
| 110 |
+
FLjoy
|
| 111 |
+
FLkeyIn
|
| 112 |
+
FLknob
|
| 113 |
+
FLlabel
|
| 114 |
+
FLloadsnap
|
| 115 |
+
FLmouse
|
| 116 |
+
FLpack
|
| 117 |
+
FLpackEnd
|
| 118 |
+
FLpack_end
|
| 119 |
+
FLpanel
|
| 120 |
+
FLpanelEnd
|
| 121 |
+
FLpanel_end
|
| 122 |
+
FLprintk
|
| 123 |
+
FLprintk2
|
| 124 |
+
FLroller
|
| 125 |
+
FLrun
|
| 126 |
+
FLsavesnap
|
| 127 |
+
FLscroll
|
| 128 |
+
FLscrollEnd
|
| 129 |
+
FLscroll_end
|
| 130 |
+
FLsetAlign
|
| 131 |
+
FLsetBox
|
| 132 |
+
FLsetColor
|
| 133 |
+
FLsetColor2
|
| 134 |
+
FLsetFont
|
| 135 |
+
FLsetPosition
|
| 136 |
+
FLsetSize
|
| 137 |
+
FLsetSnapGroup
|
| 138 |
+
FLsetText
|
| 139 |
+
FLsetTextColor
|
| 140 |
+
FLsetTextSize
|
| 141 |
+
FLsetTextType
|
| 142 |
+
FLsetVal
|
| 143 |
+
FLsetVal_i
|
| 144 |
+
FLsetVali
|
| 145 |
+
FLsetsnap
|
| 146 |
+
FLshow
|
| 147 |
+
FLslidBnk
|
| 148 |
+
FLslidBnk2
|
| 149 |
+
FLslidBnk2Set
|
| 150 |
+
FLslidBnk2Setk
|
| 151 |
+
FLslidBnkGetHandle
|
| 152 |
+
FLslidBnkSet
|
| 153 |
+
FLslidBnkSetk
|
| 154 |
+
FLslider
|
| 155 |
+
FLtabs
|
| 156 |
+
FLtabsEnd
|
| 157 |
+
FLtabs_end
|
| 158 |
+
FLtext
|
| 159 |
+
FLupdate
|
| 160 |
+
FLvalue
|
| 161 |
+
FLvkeybd
|
| 162 |
+
FLvslidBnk
|
| 163 |
+
FLvslidBnk2
|
| 164 |
+
FLxyin
|
| 165 |
+
JackoAudioIn
|
| 166 |
+
JackoAudioInConnect
|
| 167 |
+
JackoAudioOut
|
| 168 |
+
JackoAudioOutConnect
|
| 169 |
+
JackoFreewheel
|
| 170 |
+
JackoInfo
|
| 171 |
+
JackoInit
|
| 172 |
+
JackoMidiInConnect
|
| 173 |
+
JackoMidiOut
|
| 174 |
+
JackoMidiOutConnect
|
| 175 |
+
JackoNoteOut
|
| 176 |
+
JackoOn
|
| 177 |
+
JackoTransport
|
| 178 |
+
K35_hpf
|
| 179 |
+
K35_lpf
|
| 180 |
+
MixerClear
|
| 181 |
+
MixerGetLevel
|
| 182 |
+
MixerReceive
|
| 183 |
+
MixerSend
|
| 184 |
+
MixerSetLevel
|
| 185 |
+
MixerSetLevel_i
|
| 186 |
+
OSCbundle
|
| 187 |
+
OSCcount
|
| 188 |
+
OSCinit
|
| 189 |
+
OSCinitM
|
| 190 |
+
OSClisten
|
| 191 |
+
OSCraw
|
| 192 |
+
OSCsend
|
| 193 |
+
OSCsend_lo
|
| 194 |
+
S
|
| 195 |
+
STKBandedWG
|
| 196 |
+
STKBeeThree
|
| 197 |
+
STKBlowBotl
|
| 198 |
+
STKBlowHole
|
| 199 |
+
STKBowed
|
| 200 |
+
STKBrass
|
| 201 |
+
STKClarinet
|
| 202 |
+
STKDrummer
|
| 203 |
+
STKFMVoices
|
| 204 |
+
STKFlute
|
| 205 |
+
STKHevyMetl
|
| 206 |
+
STKMandolin
|
| 207 |
+
STKModalBar
|
| 208 |
+
STKMoog
|
| 209 |
+
STKPercFlut
|
| 210 |
+
STKPlucked
|
| 211 |
+
STKResonate
|
| 212 |
+
STKRhodey
|
| 213 |
+
STKSaxofony
|
| 214 |
+
STKShakers
|
| 215 |
+
STKSimple
|
| 216 |
+
STKSitar
|
| 217 |
+
STKStifKarp
|
| 218 |
+
STKTubeBell
|
| 219 |
+
STKVoicForm
|
| 220 |
+
STKWhistle
|
| 221 |
+
STKWurley
|
| 222 |
+
a
|
| 223 |
+
abs
|
| 224 |
+
active
|
| 225 |
+
adsr
|
| 226 |
+
adsyn
|
| 227 |
+
adsynt
|
| 228 |
+
adsynt2
|
| 229 |
+
aftouch
|
| 230 |
+
allpole
|
| 231 |
+
alpass
|
| 232 |
+
alwayson
|
| 233 |
+
ampdb
|
| 234 |
+
ampdbfs
|
| 235 |
+
ampmidi
|
| 236 |
+
ampmidicurve
|
| 237 |
+
ampmidid
|
| 238 |
+
apoleparams
|
| 239 |
+
arduinoRead
|
| 240 |
+
arduinoReadF
|
| 241 |
+
arduinoStart
|
| 242 |
+
arduinoStop
|
| 243 |
+
areson
|
| 244 |
+
aresonk
|
| 245 |
+
atone
|
| 246 |
+
atonek
|
| 247 |
+
atonex
|
| 248 |
+
autocorr
|
| 249 |
+
babo
|
| 250 |
+
balance
|
| 251 |
+
balance2
|
| 252 |
+
bamboo
|
| 253 |
+
barmodel
|
| 254 |
+
bbcutm
|
| 255 |
+
bbcuts
|
| 256 |
+
betarand
|
| 257 |
+
bexprnd
|
| 258 |
+
bformdec1
|
| 259 |
+
bformdec2
|
| 260 |
+
bformenc1
|
| 261 |
+
binit
|
| 262 |
+
biquad
|
| 263 |
+
biquada
|
| 264 |
+
birnd
|
| 265 |
+
bob
|
| 266 |
+
bpf
|
| 267 |
+
bpfcos
|
| 268 |
+
bqrez
|
| 269 |
+
butbp
|
| 270 |
+
butbr
|
| 271 |
+
buthp
|
| 272 |
+
butlp
|
| 273 |
+
butterbp
|
| 274 |
+
butterbr
|
| 275 |
+
butterhp
|
| 276 |
+
butterlp
|
| 277 |
+
button
|
| 278 |
+
buzz
|
| 279 |
+
c2r
|
| 280 |
+
cabasa
|
| 281 |
+
cauchy
|
| 282 |
+
cauchyi
|
| 283 |
+
cbrt
|
| 284 |
+
ceil
|
| 285 |
+
cell
|
| 286 |
+
cent
|
| 287 |
+
centroid
|
| 288 |
+
ceps
|
| 289 |
+
cepsinv
|
| 290 |
+
chanctrl
|
| 291 |
+
changed
|
| 292 |
+
changed2
|
| 293 |
+
chani
|
| 294 |
+
chano
|
| 295 |
+
chebyshevpoly
|
| 296 |
+
checkbox
|
| 297 |
+
chn_S
|
| 298 |
+
chn_a
|
| 299 |
+
chn_k
|
| 300 |
+
chnclear
|
| 301 |
+
chnexport
|
| 302 |
+
chnget
|
| 303 |
+
chngeta
|
| 304 |
+
chngeti
|
| 305 |
+
chngetk
|
| 306 |
+
chngetks
|
| 307 |
+
chngets
|
| 308 |
+
chnmix
|
| 309 |
+
chnparams
|
| 310 |
+
chnset
|
| 311 |
+
chnseta
|
| 312 |
+
chnseti
|
| 313 |
+
chnsetk
|
| 314 |
+
chnsetks
|
| 315 |
+
chnsets
|
| 316 |
+
chuap
|
| 317 |
+
clear
|
| 318 |
+
clfilt
|
| 319 |
+
clip
|
| 320 |
+
clockoff
|
| 321 |
+
clockon
|
| 322 |
+
cmp
|
| 323 |
+
cmplxprod
|
| 324 |
+
cntCreate
|
| 325 |
+
cntCycles
|
| 326 |
+
cntDelete
|
| 327 |
+
cntDelete_i
|
| 328 |
+
cntRead
|
| 329 |
+
cntReset
|
| 330 |
+
cntState
|
| 331 |
+
comb
|
| 332 |
+
combinv
|
| 333 |
+
compilecsd
|
| 334 |
+
compileorc
|
| 335 |
+
compilestr
|
| 336 |
+
compress
|
| 337 |
+
compress2
|
| 338 |
+
connect
|
| 339 |
+
control
|
| 340 |
+
convle
|
| 341 |
+
convolve
|
| 342 |
+
copya2ftab
|
| 343 |
+
copyf2array
|
| 344 |
+
cos
|
| 345 |
+
cosh
|
| 346 |
+
cosinv
|
| 347 |
+
cosseg
|
| 348 |
+
cossegb
|
| 349 |
+
cossegr
|
| 350 |
+
count
|
| 351 |
+
count_i
|
| 352 |
+
cps2pch
|
| 353 |
+
cpsmidi
|
| 354 |
+
cpsmidib
|
| 355 |
+
cpsmidinn
|
| 356 |
+
cpsoct
|
| 357 |
+
cpspch
|
| 358 |
+
cpstmid
|
| 359 |
+
cpstun
|
| 360 |
+
cpstuni
|
| 361 |
+
cpsxpch
|
| 362 |
+
cpumeter
|
| 363 |
+
cpuprc
|
| 364 |
+
cross2
|
| 365 |
+
crossfm
|
| 366 |
+
crossfmi
|
| 367 |
+
crossfmpm
|
| 368 |
+
crossfmpmi
|
| 369 |
+
crosspm
|
| 370 |
+
crosspmi
|
| 371 |
+
crunch
|
| 372 |
+
ctlchn
|
| 373 |
+
ctrl14
|
| 374 |
+
ctrl21
|
| 375 |
+
ctrl7
|
| 376 |
+
ctrlinit
|
| 377 |
+
ctrlpreset
|
| 378 |
+
ctrlprint
|
| 379 |
+
ctrlprintpresets
|
| 380 |
+
ctrlsave
|
| 381 |
+
ctrlselect
|
| 382 |
+
cuserrnd
|
| 383 |
+
dam
|
| 384 |
+
date
|
| 385 |
+
dates
|
| 386 |
+
db
|
| 387 |
+
dbamp
|
| 388 |
+
dbfsamp
|
| 389 |
+
dcblock
|
| 390 |
+
dcblock2
|
| 391 |
+
dconv
|
| 392 |
+
dct
|
| 393 |
+
dctinv
|
| 394 |
+
deinterleave
|
| 395 |
+
delay
|
| 396 |
+
delay1
|
| 397 |
+
delayk
|
| 398 |
+
delayr
|
| 399 |
+
delayw
|
| 400 |
+
deltap
|
| 401 |
+
deltap3
|
| 402 |
+
deltapi
|
| 403 |
+
deltapn
|
| 404 |
+
deltapx
|
| 405 |
+
deltapxw
|
| 406 |
+
denorm
|
| 407 |
+
diff
|
| 408 |
+
diode_ladder
|
| 409 |
+
directory
|
| 410 |
+
diskgrain
|
| 411 |
+
diskin
|
| 412 |
+
diskin2
|
| 413 |
+
dispfft
|
| 414 |
+
display
|
| 415 |
+
distort
|
| 416 |
+
distort1
|
| 417 |
+
divz
|
| 418 |
+
doppler
|
| 419 |
+
dot
|
| 420 |
+
downsamp
|
| 421 |
+
dripwater
|
| 422 |
+
dssiactivate
|
| 423 |
+
dssiaudio
|
| 424 |
+
dssictls
|
| 425 |
+
dssiinit
|
| 426 |
+
dssilist
|
| 427 |
+
dumpk
|
| 428 |
+
dumpk2
|
| 429 |
+
dumpk3
|
| 430 |
+
dumpk4
|
| 431 |
+
duserrnd
|
| 432 |
+
dust
|
| 433 |
+
dust2
|
| 434 |
+
elapsedcycles
|
| 435 |
+
elapsedtime
|
| 436 |
+
envlpx
|
| 437 |
+
envlpxr
|
| 438 |
+
ephasor
|
| 439 |
+
eqfil
|
| 440 |
+
evalstr
|
| 441 |
+
event
|
| 442 |
+
event_i
|
| 443 |
+
eventcycles
|
| 444 |
+
eventtime
|
| 445 |
+
exciter
|
| 446 |
+
exitnow
|
| 447 |
+
exp
|
| 448 |
+
expcurve
|
| 449 |
+
expon
|
| 450 |
+
exprand
|
| 451 |
+
exprandi
|
| 452 |
+
expseg
|
| 453 |
+
expsega
|
| 454 |
+
expsegb
|
| 455 |
+
expsegba
|
| 456 |
+
expsegr
|
| 457 |
+
fareylen
|
| 458 |
+
fareyleni
|
| 459 |
+
faustaudio
|
| 460 |
+
faustcompile
|
| 461 |
+
faustctl
|
| 462 |
+
faustdsp
|
| 463 |
+
faustgen
|
| 464 |
+
faustplay
|
| 465 |
+
fft
|
| 466 |
+
fftinv
|
| 467 |
+
ficlose
|
| 468 |
+
filebit
|
| 469 |
+
filelen
|
| 470 |
+
filenchnls
|
| 471 |
+
filepeak
|
| 472 |
+
filescal
|
| 473 |
+
filesr
|
| 474 |
+
filevalid
|
| 475 |
+
fillarray
|
| 476 |
+
filter2
|
| 477 |
+
fin
|
| 478 |
+
fini
|
| 479 |
+
fink
|
| 480 |
+
fiopen
|
| 481 |
+
flanger
|
| 482 |
+
flashtxt
|
| 483 |
+
flooper
|
| 484 |
+
flooper2
|
| 485 |
+
floor
|
| 486 |
+
fluidAllOut
|
| 487 |
+
fluidCCi
|
| 488 |
+
fluidCCk
|
| 489 |
+
fluidControl
|
| 490 |
+
fluidEngine
|
| 491 |
+
fluidInfo
|
| 492 |
+
fluidLoad
|
| 493 |
+
fluidNote
|
| 494 |
+
fluidOut
|
| 495 |
+
fluidProgramSelect
|
| 496 |
+
fluidSetInterpMethod
|
| 497 |
+
fmanal
|
| 498 |
+
fmax
|
| 499 |
+
fmb3
|
| 500 |
+
fmbell
|
| 501 |
+
fmin
|
| 502 |
+
fmmetal
|
| 503 |
+
fmod
|
| 504 |
+
fmpercfl
|
| 505 |
+
fmrhode
|
| 506 |
+
fmvoice
|
| 507 |
+
fmwurlie
|
| 508 |
+
fof
|
| 509 |
+
fof2
|
| 510 |
+
fofilter
|
| 511 |
+
fog
|
| 512 |
+
fold
|
| 513 |
+
follow
|
| 514 |
+
follow2
|
| 515 |
+
foscil
|
| 516 |
+
foscili
|
| 517 |
+
fout
|
| 518 |
+
fouti
|
| 519 |
+
foutir
|
| 520 |
+
foutk
|
| 521 |
+
fprintks
|
| 522 |
+
fprints
|
| 523 |
+
frac
|
| 524 |
+
fractalnoise
|
| 525 |
+
framebuffer
|
| 526 |
+
freeverb
|
| 527 |
+
ftaudio
|
| 528 |
+
ftchnls
|
| 529 |
+
ftconv
|
| 530 |
+
ftcps
|
| 531 |
+
ftexists
|
| 532 |
+
ftfree
|
| 533 |
+
ftgen
|
| 534 |
+
ftgenonce
|
| 535 |
+
ftgentmp
|
| 536 |
+
ftlen
|
| 537 |
+
ftload
|
| 538 |
+
ftloadk
|
| 539 |
+
ftlptim
|
| 540 |
+
ftmorf
|
| 541 |
+
ftom
|
| 542 |
+
ftprint
|
| 543 |
+
ftresize
|
| 544 |
+
ftresizei
|
| 545 |
+
ftsamplebank
|
| 546 |
+
ftsave
|
| 547 |
+
ftsavek
|
| 548 |
+
ftset
|
| 549 |
+
ftslice
|
| 550 |
+
ftslicei
|
| 551 |
+
ftsr
|
| 552 |
+
gain
|
| 553 |
+
gainslider
|
| 554 |
+
gauss
|
| 555 |
+
gaussi
|
| 556 |
+
gausstrig
|
| 557 |
+
gbuzz
|
| 558 |
+
genarray
|
| 559 |
+
genarray_i
|
| 560 |
+
gendy
|
| 561 |
+
gendyc
|
| 562 |
+
gendyx
|
| 563 |
+
getcfg
|
| 564 |
+
getcol
|
| 565 |
+
getftargs
|
| 566 |
+
getrow
|
| 567 |
+
getseed
|
| 568 |
+
gogobel
|
| 569 |
+
grain
|
| 570 |
+
grain2
|
| 571 |
+
grain3
|
| 572 |
+
granule
|
| 573 |
+
gtadsr
|
| 574 |
+
gtf
|
| 575 |
+
guiro
|
| 576 |
+
harmon
|
| 577 |
+
harmon2
|
| 578 |
+
harmon3
|
| 579 |
+
harmon4
|
| 580 |
+
hdf5read
|
| 581 |
+
hdf5write
|
| 582 |
+
hilbert
|
| 583 |
+
hilbert2
|
| 584 |
+
hrtfearly
|
| 585 |
+
hrtfmove
|
| 586 |
+
hrtfmove2
|
| 587 |
+
hrtfreverb
|
| 588 |
+
hrtfstat
|
| 589 |
+
hsboscil
|
| 590 |
+
hvs1
|
| 591 |
+
hvs2
|
| 592 |
+
hvs3
|
| 593 |
+
hypot
|
| 594 |
+
i
|
| 595 |
+
ihold
|
| 596 |
+
imagecreate
|
| 597 |
+
imagefree
|
| 598 |
+
imagegetpixel
|
| 599 |
+
imageload
|
| 600 |
+
imagesave
|
| 601 |
+
imagesetpixel
|
| 602 |
+
imagesize
|
| 603 |
+
in
|
| 604 |
+
in32
|
| 605 |
+
inch
|
| 606 |
+
inh
|
| 607 |
+
init
|
| 608 |
+
initc14
|
| 609 |
+
initc21
|
| 610 |
+
initc7
|
| 611 |
+
inleta
|
| 612 |
+
inletf
|
| 613 |
+
inletk
|
| 614 |
+
inletkid
|
| 615 |
+
inletv
|
| 616 |
+
ino
|
| 617 |
+
inq
|
| 618 |
+
inrg
|
| 619 |
+
ins
|
| 620 |
+
insglobal
|
| 621 |
+
insremot
|
| 622 |
+
int
|
| 623 |
+
integ
|
| 624 |
+
interleave
|
| 625 |
+
interp
|
| 626 |
+
invalue
|
| 627 |
+
inx
|
| 628 |
+
inz
|
| 629 |
+
jacktransport
|
| 630 |
+
jitter
|
| 631 |
+
jitter2
|
| 632 |
+
joystick
|
| 633 |
+
jspline
|
| 634 |
+
k
|
| 635 |
+
la_i_add_mc
|
| 636 |
+
la_i_add_mr
|
| 637 |
+
la_i_add_vc
|
| 638 |
+
la_i_add_vr
|
| 639 |
+
la_i_assign_mc
|
| 640 |
+
la_i_assign_mr
|
| 641 |
+
la_i_assign_t
|
| 642 |
+
la_i_assign_vc
|
| 643 |
+
la_i_assign_vr
|
| 644 |
+
la_i_conjugate_mc
|
| 645 |
+
la_i_conjugate_mr
|
| 646 |
+
la_i_conjugate_vc
|
| 647 |
+
la_i_conjugate_vr
|
| 648 |
+
la_i_distance_vc
|
| 649 |
+
la_i_distance_vr
|
| 650 |
+
la_i_divide_mc
|
| 651 |
+
la_i_divide_mr
|
| 652 |
+
la_i_divide_vc
|
| 653 |
+
la_i_divide_vr
|
| 654 |
+
la_i_dot_mc
|
| 655 |
+
la_i_dot_mc_vc
|
| 656 |
+
la_i_dot_mr
|
| 657 |
+
la_i_dot_mr_vr
|
| 658 |
+
la_i_dot_vc
|
| 659 |
+
la_i_dot_vr
|
| 660 |
+
la_i_get_mc
|
| 661 |
+
la_i_get_mr
|
| 662 |
+
la_i_get_vc
|
| 663 |
+
la_i_get_vr
|
| 664 |
+
la_i_invert_mc
|
| 665 |
+
la_i_invert_mr
|
| 666 |
+
la_i_lower_solve_mc
|
| 667 |
+
la_i_lower_solve_mr
|
| 668 |
+
la_i_lu_det_mc
|
| 669 |
+
la_i_lu_det_mr
|
| 670 |
+
la_i_lu_factor_mc
|
| 671 |
+
la_i_lu_factor_mr
|
| 672 |
+
la_i_lu_solve_mc
|
| 673 |
+
la_i_lu_solve_mr
|
| 674 |
+
la_i_mc_create
|
| 675 |
+
la_i_mc_set
|
| 676 |
+
la_i_mr_create
|
| 677 |
+
la_i_mr_set
|
| 678 |
+
la_i_multiply_mc
|
| 679 |
+
la_i_multiply_mr
|
| 680 |
+
la_i_multiply_vc
|
| 681 |
+
la_i_multiply_vr
|
| 682 |
+
la_i_norm1_mc
|
| 683 |
+
la_i_norm1_mr
|
| 684 |
+
la_i_norm1_vc
|
| 685 |
+
la_i_norm1_vr
|
| 686 |
+
la_i_norm_euclid_mc
|
| 687 |
+
la_i_norm_euclid_mr
|
| 688 |
+
la_i_norm_euclid_vc
|
| 689 |
+
la_i_norm_euclid_vr
|
| 690 |
+
la_i_norm_inf_mc
|
| 691 |
+
la_i_norm_inf_mr
|
| 692 |
+
la_i_norm_inf_vc
|
| 693 |
+
la_i_norm_inf_vr
|
| 694 |
+
la_i_norm_max_mc
|
| 695 |
+
la_i_norm_max_mr
|
| 696 |
+
la_i_print_mc
|
| 697 |
+
la_i_print_mr
|
| 698 |
+
la_i_print_vc
|
| 699 |
+
la_i_print_vr
|
| 700 |
+
la_i_qr_eigen_mc
|
| 701 |
+
la_i_qr_eigen_mr
|
| 702 |
+
la_i_qr_factor_mc
|
| 703 |
+
la_i_qr_factor_mr
|
| 704 |
+
la_i_qr_sym_eigen_mc
|
| 705 |
+
la_i_qr_sym_eigen_mr
|
| 706 |
+
la_i_random_mc
|
| 707 |
+
la_i_random_mr
|
| 708 |
+
la_i_random_vc
|
| 709 |
+
la_i_random_vr
|
| 710 |
+
la_i_size_mc
|
| 711 |
+
la_i_size_mr
|
| 712 |
+
la_i_size_vc
|
| 713 |
+
la_i_size_vr
|
| 714 |
+
la_i_subtract_mc
|
| 715 |
+
la_i_subtract_mr
|
| 716 |
+
la_i_subtract_vc
|
| 717 |
+
la_i_subtract_vr
|
| 718 |
+
la_i_t_assign
|
| 719 |
+
la_i_trace_mc
|
| 720 |
+
la_i_trace_mr
|
| 721 |
+
la_i_transpose_mc
|
| 722 |
+
la_i_transpose_mr
|
| 723 |
+
la_i_upper_solve_mc
|
| 724 |
+
la_i_upper_solve_mr
|
| 725 |
+
la_i_vc_create
|
| 726 |
+
la_i_vc_set
|
| 727 |
+
la_i_vr_create
|
| 728 |
+
la_i_vr_set
|
| 729 |
+
la_k_a_assign
|
| 730 |
+
la_k_add_mc
|
| 731 |
+
la_k_add_mr
|
| 732 |
+
la_k_add_vc
|
| 733 |
+
la_k_add_vr
|
| 734 |
+
la_k_assign_a
|
| 735 |
+
la_k_assign_f
|
| 736 |
+
la_k_assign_mc
|
| 737 |
+
la_k_assign_mr
|
| 738 |
+
la_k_assign_t
|
| 739 |
+
la_k_assign_vc
|
| 740 |
+
la_k_assign_vr
|
| 741 |
+
la_k_conjugate_mc
|
| 742 |
+
la_k_conjugate_mr
|
| 743 |
+
la_k_conjugate_vc
|
| 744 |
+
la_k_conjugate_vr
|
| 745 |
+
la_k_current_f
|
| 746 |
+
la_k_current_vr
|
| 747 |
+
la_k_distance_vc
|
| 748 |
+
la_k_distance_vr
|
| 749 |
+
la_k_divide_mc
|
| 750 |
+
la_k_divide_mr
|
| 751 |
+
la_k_divide_vc
|
| 752 |
+
la_k_divide_vr
|
| 753 |
+
la_k_dot_mc
|
| 754 |
+
la_k_dot_mc_vc
|
| 755 |
+
la_k_dot_mr
|
| 756 |
+
la_k_dot_mr_vr
|
| 757 |
+
la_k_dot_vc
|
| 758 |
+
la_k_dot_vr
|
| 759 |
+
la_k_f_assign
|
| 760 |
+
la_k_get_mc
|
| 761 |
+
la_k_get_mr
|
| 762 |
+
la_k_get_vc
|
| 763 |
+
la_k_get_vr
|
| 764 |
+
la_k_invert_mc
|
| 765 |
+
la_k_invert_mr
|
| 766 |
+
la_k_lower_solve_mc
|
| 767 |
+
la_k_lower_solve_mr
|
| 768 |
+
la_k_lu_det_mc
|
| 769 |
+
la_k_lu_det_mr
|
| 770 |
+
la_k_lu_factor_mc
|
| 771 |
+
la_k_lu_factor_mr
|
| 772 |
+
la_k_lu_solve_mc
|
| 773 |
+
la_k_lu_solve_mr
|
| 774 |
+
la_k_mc_set
|
| 775 |
+
la_k_mr_set
|
| 776 |
+
la_k_multiply_mc
|
| 777 |
+
la_k_multiply_mr
|
| 778 |
+
la_k_multiply_vc
|
| 779 |
+
la_k_multiply_vr
|
| 780 |
+
la_k_norm1_mc
|
| 781 |
+
la_k_norm1_mr
|
| 782 |
+
la_k_norm1_vc
|
| 783 |
+
la_k_norm1_vr
|
| 784 |
+
la_k_norm_euclid_mc
|
| 785 |
+
la_k_norm_euclid_mr
|
| 786 |
+
la_k_norm_euclid_vc
|
| 787 |
+
la_k_norm_euclid_vr
|
| 788 |
+
la_k_norm_inf_mc
|
| 789 |
+
la_k_norm_inf_mr
|
| 790 |
+
la_k_norm_inf_vc
|
| 791 |
+
la_k_norm_inf_vr
|
| 792 |
+
la_k_norm_max_mc
|
| 793 |
+
la_k_norm_max_mr
|
| 794 |
+
la_k_qr_eigen_mc
|
| 795 |
+
la_k_qr_eigen_mr
|
| 796 |
+
la_k_qr_factor_mc
|
| 797 |
+
la_k_qr_factor_mr
|
| 798 |
+
la_k_qr_sym_eigen_mc
|
| 799 |
+
la_k_qr_sym_eigen_mr
|
| 800 |
+
la_k_random_mc
|
| 801 |
+
la_k_random_mr
|
| 802 |
+
la_k_random_vc
|
| 803 |
+
la_k_random_vr
|
| 804 |
+
la_k_subtract_mc
|
| 805 |
+
la_k_subtract_mr
|
| 806 |
+
la_k_subtract_vc
|
| 807 |
+
la_k_subtract_vr
|
| 808 |
+
la_k_t_assign
|
| 809 |
+
la_k_trace_mc
|
| 810 |
+
la_k_trace_mr
|
| 811 |
+
la_k_upper_solve_mc
|
| 812 |
+
la_k_upper_solve_mr
|
| 813 |
+
la_k_vc_set
|
| 814 |
+
la_k_vr_set
|
| 815 |
+
lag
|
| 816 |
+
lagud
|
| 817 |
+
lastcycle
|
| 818 |
+
lenarray
|
| 819 |
+
lfo
|
| 820 |
+
lfsr
|
| 821 |
+
limit
|
| 822 |
+
limit1
|
| 823 |
+
lincos
|
| 824 |
+
line
|
| 825 |
+
linen
|
| 826 |
+
linenr
|
| 827 |
+
lineto
|
| 828 |
+
link_beat_force
|
| 829 |
+
link_beat_get
|
| 830 |
+
link_beat_request
|
| 831 |
+
link_create
|
| 832 |
+
link_enable
|
| 833 |
+
link_is_enabled
|
| 834 |
+
link_metro
|
| 835 |
+
link_peers
|
| 836 |
+
link_tempo_get
|
| 837 |
+
link_tempo_set
|
| 838 |
+
linlin
|
| 839 |
+
linrand
|
| 840 |
+
linseg
|
| 841 |
+
linsegb
|
| 842 |
+
linsegr
|
| 843 |
+
liveconv
|
| 844 |
+
locsend
|
| 845 |
+
locsig
|
| 846 |
+
log
|
| 847 |
+
log10
|
| 848 |
+
log2
|
| 849 |
+
logbtwo
|
| 850 |
+
logcurve
|
| 851 |
+
loopseg
|
| 852 |
+
loopsegp
|
| 853 |
+
looptseg
|
| 854 |
+
loopxseg
|
| 855 |
+
lorenz
|
| 856 |
+
loscil
|
| 857 |
+
loscil3
|
| 858 |
+
loscil3phs
|
| 859 |
+
loscilphs
|
| 860 |
+
loscilx
|
| 861 |
+
lowpass2
|
| 862 |
+
lowres
|
| 863 |
+
lowresx
|
| 864 |
+
lpcanal
|
| 865 |
+
lpcfilter
|
| 866 |
+
lpf18
|
| 867 |
+
lpform
|
| 868 |
+
lpfreson
|
| 869 |
+
lphasor
|
| 870 |
+
lpinterp
|
| 871 |
+
lposcil
|
| 872 |
+
lposcil3
|
| 873 |
+
lposcila
|
| 874 |
+
lposcilsa
|
| 875 |
+
lposcilsa2
|
| 876 |
+
lpread
|
| 877 |
+
lpreson
|
| 878 |
+
lpshold
|
| 879 |
+
lpsholdp
|
| 880 |
+
lpslot
|
| 881 |
+
lufs
|
| 882 |
+
mac
|
| 883 |
+
maca
|
| 884 |
+
madsr
|
| 885 |
+
mags
|
| 886 |
+
mandel
|
| 887 |
+
mandol
|
| 888 |
+
maparray
|
| 889 |
+
maparray_i
|
| 890 |
+
marimba
|
| 891 |
+
massign
|
| 892 |
+
max
|
| 893 |
+
max_k
|
| 894 |
+
maxabs
|
| 895 |
+
maxabsaccum
|
| 896 |
+
maxaccum
|
| 897 |
+
maxalloc
|
| 898 |
+
maxarray
|
| 899 |
+
mclock
|
| 900 |
+
mdelay
|
| 901 |
+
median
|
| 902 |
+
mediank
|
| 903 |
+
metro
|
| 904 |
+
metro2
|
| 905 |
+
metrobpm
|
| 906 |
+
mfb
|
| 907 |
+
midglobal
|
| 908 |
+
midiarp
|
| 909 |
+
midic14
|
| 910 |
+
midic21
|
| 911 |
+
midic7
|
| 912 |
+
midichannelaftertouch
|
| 913 |
+
midichn
|
| 914 |
+
midicontrolchange
|
| 915 |
+
midictrl
|
| 916 |
+
mididefault
|
| 917 |
+
midifilestatus
|
| 918 |
+
midiin
|
| 919 |
+
midinoteoff
|
| 920 |
+
midinoteoncps
|
| 921 |
+
midinoteonkey
|
| 922 |
+
midinoteonoct
|
| 923 |
+
midinoteonpch
|
| 924 |
+
midion
|
| 925 |
+
midion2
|
| 926 |
+
midiout
|
| 927 |
+
midiout_i
|
| 928 |
+
midipgm
|
| 929 |
+
midipitchbend
|
| 930 |
+
midipolyaftertouch
|
| 931 |
+
midiprogramchange
|
| 932 |
+
miditempo
|
| 933 |
+
midremot
|
| 934 |
+
min
|
| 935 |
+
minabs
|
| 936 |
+
minabsaccum
|
| 937 |
+
minaccum
|
| 938 |
+
minarray
|
| 939 |
+
mincer
|
| 940 |
+
mirror
|
| 941 |
+
mode
|
| 942 |
+
modmatrix
|
| 943 |
+
monitor
|
| 944 |
+
moog
|
| 945 |
+
moogladder
|
| 946 |
+
moogladder2
|
| 947 |
+
moogvcf
|
| 948 |
+
moogvcf2
|
| 949 |
+
moscil
|
| 950 |
+
mp3bitrate
|
| 951 |
+
mp3in
|
| 952 |
+
mp3len
|
| 953 |
+
mp3nchnls
|
| 954 |
+
mp3out
|
| 955 |
+
mp3scal
|
| 956 |
+
mp3sr
|
| 957 |
+
mpulse
|
| 958 |
+
mrtmsg
|
| 959 |
+
ms2st
|
| 960 |
+
mtof
|
| 961 |
+
mton
|
| 962 |
+
multitap
|
| 963 |
+
mute
|
| 964 |
+
mvchpf
|
| 965 |
+
mvclpf1
|
| 966 |
+
mvclpf2
|
| 967 |
+
mvclpf3
|
| 968 |
+
mvclpf4
|
| 969 |
+
mvmfilter
|
| 970 |
+
mxadsr
|
| 971 |
+
nchnls_hw
|
| 972 |
+
nestedap
|
| 973 |
+
nlalp
|
| 974 |
+
nlfilt
|
| 975 |
+
nlfilt2
|
| 976 |
+
noise
|
| 977 |
+
noteoff
|
| 978 |
+
noteon
|
| 979 |
+
noteondur
|
| 980 |
+
noteondur2
|
| 981 |
+
notnum
|
| 982 |
+
nreverb
|
| 983 |
+
nrpn
|
| 984 |
+
nsamp
|
| 985 |
+
nstance
|
| 986 |
+
nstrnum
|
| 987 |
+
nstrstr
|
| 988 |
+
ntof
|
| 989 |
+
ntom
|
| 990 |
+
ntrpol
|
| 991 |
+
nxtpow2
|
| 992 |
+
octave
|
| 993 |
+
octcps
|
| 994 |
+
octmidi
|
| 995 |
+
octmidib
|
| 996 |
+
octmidinn
|
| 997 |
+
octpch
|
| 998 |
+
olabuffer
|
| 999 |
+
oscbnk
|
| 1000 |
+
oscil
|
| 1001 |
+
oscil1
|
| 1002 |
+
oscil1i
|
| 1003 |
+
oscil3
|
| 1004 |
+
oscili
|
| 1005 |
+
oscilikt
|
| 1006 |
+
osciliktp
|
| 1007 |
+
oscilikts
|
| 1008 |
+
osciln
|
| 1009 |
+
oscils
|
| 1010 |
+
oscilx
|
| 1011 |
+
out
|
| 1012 |
+
out32
|
| 1013 |
+
outall
|
| 1014 |
+
outc
|
| 1015 |
+
outch
|
| 1016 |
+
outh
|
| 1017 |
+
outiat
|
| 1018 |
+
outic
|
| 1019 |
+
outic14
|
| 1020 |
+
outipat
|
| 1021 |
+
outipb
|
| 1022 |
+
outipc
|
| 1023 |
+
outkat
|
| 1024 |
+
outkc
|
| 1025 |
+
outkc14
|
| 1026 |
+
outkpat
|
| 1027 |
+
outkpb
|
| 1028 |
+
outkpc
|
| 1029 |
+
outleta
|
| 1030 |
+
outletf
|
| 1031 |
+
outletk
|
| 1032 |
+
outletkid
|
| 1033 |
+
outletv
|
| 1034 |
+
outo
|
| 1035 |
+
outq
|
| 1036 |
+
outq1
|
| 1037 |
+
outq2
|
| 1038 |
+
outq3
|
| 1039 |
+
outq4
|
| 1040 |
+
outrg
|
| 1041 |
+
outs
|
| 1042 |
+
outs1
|
| 1043 |
+
outs2
|
| 1044 |
+
outvalue
|
| 1045 |
+
outx
|
| 1046 |
+
outz
|
| 1047 |
+
p
|
| 1048 |
+
p5gconnect
|
| 1049 |
+
p5gdata
|
| 1050 |
+
pan
|
| 1051 |
+
pan2
|
| 1052 |
+
pareq
|
| 1053 |
+
part2txt
|
| 1054 |
+
partials
|
| 1055 |
+
partikkel
|
| 1056 |
+
partikkelget
|
| 1057 |
+
partikkelset
|
| 1058 |
+
partikkelsync
|
| 1059 |
+
passign
|
| 1060 |
+
paulstretch
|
| 1061 |
+
pcauchy
|
| 1062 |
+
pchbend
|
| 1063 |
+
pchmidi
|
| 1064 |
+
pchmidib
|
| 1065 |
+
pchmidinn
|
| 1066 |
+
pchoct
|
| 1067 |
+
pchtom
|
| 1068 |
+
pconvolve
|
| 1069 |
+
pcount
|
| 1070 |
+
pdclip
|
| 1071 |
+
pdhalf
|
| 1072 |
+
pdhalfy
|
| 1073 |
+
peak
|
| 1074 |
+
pgmassign
|
| 1075 |
+
pgmchn
|
| 1076 |
+
phaser1
|
| 1077 |
+
phaser2
|
| 1078 |
+
phasor
|
| 1079 |
+
phasorbnk
|
| 1080 |
+
phs
|
| 1081 |
+
pindex
|
| 1082 |
+
pinker
|
| 1083 |
+
pinkish
|
| 1084 |
+
pitch
|
| 1085 |
+
pitchac
|
| 1086 |
+
pitchamdf
|
| 1087 |
+
planet
|
| 1088 |
+
platerev
|
| 1089 |
+
plltrack
|
| 1090 |
+
pluck
|
| 1091 |
+
poisson
|
| 1092 |
+
pol2rect
|
| 1093 |
+
polyaft
|
| 1094 |
+
polynomial
|
| 1095 |
+
port
|
| 1096 |
+
portk
|
| 1097 |
+
poscil
|
| 1098 |
+
poscil3
|
| 1099 |
+
pow
|
| 1100 |
+
powershape
|
| 1101 |
+
powoftwo
|
| 1102 |
+
pows
|
| 1103 |
+
prealloc
|
| 1104 |
+
prepiano
|
| 1105 |
+
print
|
| 1106 |
+
print_type
|
| 1107 |
+
printarray
|
| 1108 |
+
printf
|
| 1109 |
+
printf_i
|
| 1110 |
+
printk
|
| 1111 |
+
printk2
|
| 1112 |
+
printks
|
| 1113 |
+
printks2
|
| 1114 |
+
println
|
| 1115 |
+
prints
|
| 1116 |
+
printsk
|
| 1117 |
+
product
|
| 1118 |
+
pset
|
| 1119 |
+
ptablew
|
| 1120 |
+
ptrack
|
| 1121 |
+
puts
|
| 1122 |
+
pvadd
|
| 1123 |
+
pvbufread
|
| 1124 |
+
pvcross
|
| 1125 |
+
pvinterp
|
| 1126 |
+
pvoc
|
| 1127 |
+
pvread
|
| 1128 |
+
pvs2array
|
| 1129 |
+
pvs2tab
|
| 1130 |
+
pvsadsyn
|
| 1131 |
+
pvsanal
|
| 1132 |
+
pvsarp
|
| 1133 |
+
pvsbandp
|
| 1134 |
+
pvsbandr
|
| 1135 |
+
pvsbandwidth
|
| 1136 |
+
pvsbin
|
| 1137 |
+
pvsblur
|
| 1138 |
+
pvsbuffer
|
| 1139 |
+
pvsbufread
|
| 1140 |
+
pvsbufread2
|
| 1141 |
+
pvscale
|
| 1142 |
+
pvscent
|
| 1143 |
+
pvsceps
|
| 1144 |
+
pvscfs
|
| 1145 |
+
pvscross
|
| 1146 |
+
pvsdemix
|
| 1147 |
+
pvsdiskin
|
| 1148 |
+
pvsdisp
|
| 1149 |
+
pvsenvftw
|
| 1150 |
+
pvsfilter
|
| 1151 |
+
pvsfread
|
| 1152 |
+
pvsfreeze
|
| 1153 |
+
pvsfromarray
|
| 1154 |
+
pvsftr
|
| 1155 |
+
pvsftw
|
| 1156 |
+
pvsfwrite
|
| 1157 |
+
pvsgain
|
| 1158 |
+
pvsgendy
|
| 1159 |
+
pvshift
|
| 1160 |
+
pvsifd
|
| 1161 |
+
pvsin
|
| 1162 |
+
pvsinfo
|
| 1163 |
+
pvsinit
|
| 1164 |
+
pvslock
|
| 1165 |
+
pvslpc
|
| 1166 |
+
pvsmaska
|
| 1167 |
+
pvsmix
|
| 1168 |
+
pvsmooth
|
| 1169 |
+
pvsmorph
|
| 1170 |
+
pvsosc
|
| 1171 |
+
pvsout
|
| 1172 |
+
pvspitch
|
| 1173 |
+
pvstanal
|
| 1174 |
+
pvstencil
|
| 1175 |
+
pvstrace
|
| 1176 |
+
pvsvoc
|
| 1177 |
+
pvswarp
|
| 1178 |
+
pvsynth
|
| 1179 |
+
pwd
|
| 1180 |
+
pyassign
|
| 1181 |
+
pyassigni
|
| 1182 |
+
pyassignt
|
| 1183 |
+
pycall
|
| 1184 |
+
pycall1
|
| 1185 |
+
pycall1i
|
| 1186 |
+
pycall1t
|
| 1187 |
+
pycall2
|
| 1188 |
+
pycall2i
|
| 1189 |
+
pycall2t
|
| 1190 |
+
pycall3
|
| 1191 |
+
pycall3i
|
| 1192 |
+
pycall3t
|
| 1193 |
+
pycall4
|
| 1194 |
+
pycall4i
|
| 1195 |
+
pycall4t
|
| 1196 |
+
pycall5
|
| 1197 |
+
pycall5i
|
| 1198 |
+
pycall5t
|
| 1199 |
+
pycall6
|
| 1200 |
+
pycall6i
|
| 1201 |
+
pycall6t
|
| 1202 |
+
pycall7
|
| 1203 |
+
pycall7i
|
| 1204 |
+
pycall7t
|
| 1205 |
+
pycall8
|
| 1206 |
+
pycall8i
|
| 1207 |
+
pycall8t
|
| 1208 |
+
pycalli
|
| 1209 |
+
pycalln
|
| 1210 |
+
pycallni
|
| 1211 |
+
pycallt
|
| 1212 |
+
pyeval
|
| 1213 |
+
pyevali
|
| 1214 |
+
pyevalt
|
| 1215 |
+
pyexec
|
| 1216 |
+
pyexeci
|
| 1217 |
+
pyexect
|
| 1218 |
+
pyinit
|
| 1219 |
+
pylassign
|
| 1220 |
+
pylassigni
|
| 1221 |
+
pylassignt
|
| 1222 |
+
pylcall
|
| 1223 |
+
pylcall1
|
| 1224 |
+
pylcall1i
|
| 1225 |
+
pylcall1t
|
| 1226 |
+
pylcall2
|
| 1227 |
+
pylcall2i
|
| 1228 |
+
pylcall2t
|
| 1229 |
+
pylcall3
|
| 1230 |
+
pylcall3i
|
| 1231 |
+
pylcall3t
|
| 1232 |
+
pylcall4
|
| 1233 |
+
pylcall4i
|
| 1234 |
+
pylcall4t
|
| 1235 |
+
pylcall5
|
| 1236 |
+
pylcall5i
|
| 1237 |
+
pylcall5t
|
| 1238 |
+
pylcall6
|
| 1239 |
+
pylcall6i
|
| 1240 |
+
pylcall6t
|
| 1241 |
+
pylcall7
|
| 1242 |
+
pylcall7i
|
| 1243 |
+
pylcall7t
|
| 1244 |
+
pylcall8
|
| 1245 |
+
pylcall8i
|
| 1246 |
+
pylcall8t
|
| 1247 |
+
pylcalli
|
| 1248 |
+
pylcalln
|
| 1249 |
+
pylcallni
|
| 1250 |
+
pylcallt
|
| 1251 |
+
pyleval
|
| 1252 |
+
pylevali
|
| 1253 |
+
pylevalt
|
| 1254 |
+
pylexec
|
| 1255 |
+
pylexeci
|
| 1256 |
+
pylexect
|
| 1257 |
+
pylrun
|
| 1258 |
+
pylruni
|
| 1259 |
+
pylrunt
|
| 1260 |
+
pyrun
|
| 1261 |
+
pyruni
|
| 1262 |
+
pyrunt
|
| 1263 |
+
qinf
|
| 1264 |
+
qnan
|
| 1265 |
+
r2c
|
| 1266 |
+
rand
|
| 1267 |
+
randc
|
| 1268 |
+
randh
|
| 1269 |
+
randi
|
| 1270 |
+
random
|
| 1271 |
+
randomh
|
| 1272 |
+
randomi
|
| 1273 |
+
rbjeq
|
| 1274 |
+
readclock
|
| 1275 |
+
readf
|
| 1276 |
+
readfi
|
| 1277 |
+
readk
|
| 1278 |
+
readk2
|
| 1279 |
+
readk3
|
| 1280 |
+
readk4
|
| 1281 |
+
readks
|
| 1282 |
+
readscore
|
| 1283 |
+
readscratch
|
| 1284 |
+
rect2pol
|
| 1285 |
+
release
|
| 1286 |
+
remoteport
|
| 1287 |
+
remove
|
| 1288 |
+
repluck
|
| 1289 |
+
reshapearray
|
| 1290 |
+
reson
|
| 1291 |
+
resonbnk
|
| 1292 |
+
resonk
|
| 1293 |
+
resonr
|
| 1294 |
+
resonx
|
| 1295 |
+
resonxk
|
| 1296 |
+
resony
|
| 1297 |
+
resonz
|
| 1298 |
+
resyn
|
| 1299 |
+
reverb
|
| 1300 |
+
reverb2
|
| 1301 |
+
reverbsc
|
| 1302 |
+
rewindscore
|
| 1303 |
+
rezzy
|
| 1304 |
+
rfft
|
| 1305 |
+
rifft
|
| 1306 |
+
rms
|
| 1307 |
+
rnd
|
| 1308 |
+
rnd31
|
| 1309 |
+
rndseed
|
| 1310 |
+
round
|
| 1311 |
+
rspline
|
| 1312 |
+
rtclock
|
| 1313 |
+
s16b14
|
| 1314 |
+
s32b14
|
| 1315 |
+
samphold
|
| 1316 |
+
sandpaper
|
| 1317 |
+
sc_lag
|
| 1318 |
+
sc_lagud
|
| 1319 |
+
sc_phasor
|
| 1320 |
+
sc_trig
|
| 1321 |
+
scale
|
| 1322 |
+
scale2
|
| 1323 |
+
scalearray
|
| 1324 |
+
scanhammer
|
| 1325 |
+
scanmap
|
| 1326 |
+
scans
|
| 1327 |
+
scansmap
|
| 1328 |
+
scantable
|
| 1329 |
+
scanu
|
| 1330 |
+
scanu2
|
| 1331 |
+
schedkwhen
|
| 1332 |
+
schedkwhennamed
|
| 1333 |
+
schedule
|
| 1334 |
+
schedulek
|
| 1335 |
+
schedwhen
|
| 1336 |
+
scoreline
|
| 1337 |
+
scoreline_i
|
| 1338 |
+
seed
|
| 1339 |
+
sekere
|
| 1340 |
+
select
|
| 1341 |
+
semitone
|
| 1342 |
+
sense
|
| 1343 |
+
sensekey
|
| 1344 |
+
seqtime
|
| 1345 |
+
seqtime2
|
| 1346 |
+
sequ
|
| 1347 |
+
sequstate
|
| 1348 |
+
serialBegin
|
| 1349 |
+
serialEnd
|
| 1350 |
+
serialFlush
|
| 1351 |
+
serialPrint
|
| 1352 |
+
serialRead
|
| 1353 |
+
serialWrite
|
| 1354 |
+
serialWrite_i
|
| 1355 |
+
setcol
|
| 1356 |
+
setctrl
|
| 1357 |
+
setksmps
|
| 1358 |
+
setrow
|
| 1359 |
+
setscorepos
|
| 1360 |
+
sfilist
|
| 1361 |
+
sfinstr
|
| 1362 |
+
sfinstr3
|
| 1363 |
+
sfinstr3m
|
| 1364 |
+
sfinstrm
|
| 1365 |
+
sfload
|
| 1366 |
+
sflooper
|
| 1367 |
+
sfpassign
|
| 1368 |
+
sfplay
|
| 1369 |
+
sfplay3
|
| 1370 |
+
sfplay3m
|
| 1371 |
+
sfplaym
|
| 1372 |
+
sfplist
|
| 1373 |
+
sfpreset
|
| 1374 |
+
shaker
|
| 1375 |
+
shiftin
|
| 1376 |
+
shiftout
|
| 1377 |
+
signum
|
| 1378 |
+
sin
|
| 1379 |
+
sinh
|
| 1380 |
+
sininv
|
| 1381 |
+
sinsyn
|
| 1382 |
+
skf
|
| 1383 |
+
sleighbells
|
| 1384 |
+
slicearray
|
| 1385 |
+
slicearray_i
|
| 1386 |
+
slider16
|
| 1387 |
+
slider16f
|
| 1388 |
+
slider16table
|
| 1389 |
+
slider16tablef
|
| 1390 |
+
slider32
|
| 1391 |
+
slider32f
|
| 1392 |
+
slider32table
|
| 1393 |
+
slider32tablef
|
| 1394 |
+
slider64
|
| 1395 |
+
slider64f
|
| 1396 |
+
slider64table
|
| 1397 |
+
slider64tablef
|
| 1398 |
+
slider8
|
| 1399 |
+
slider8f
|
| 1400 |
+
slider8table
|
| 1401 |
+
slider8tablef
|
| 1402 |
+
sliderKawai
|
| 1403 |
+
sndloop
|
| 1404 |
+
sndwarp
|
| 1405 |
+
sndwarpst
|
| 1406 |
+
sockrecv
|
| 1407 |
+
sockrecvs
|
| 1408 |
+
socksend
|
| 1409 |
+
socksends
|
| 1410 |
+
sorta
|
| 1411 |
+
sortd
|
| 1412 |
+
soundin
|
| 1413 |
+
space
|
| 1414 |
+
spat3d
|
| 1415 |
+
spat3di
|
| 1416 |
+
spat3dt
|
| 1417 |
+
spdist
|
| 1418 |
+
spf
|
| 1419 |
+
splitrig
|
| 1420 |
+
sprintf
|
| 1421 |
+
sprintfk
|
| 1422 |
+
spsend
|
| 1423 |
+
sqrt
|
| 1424 |
+
squinewave
|
| 1425 |
+
st2ms
|
| 1426 |
+
statevar
|
| 1427 |
+
sterrain
|
| 1428 |
+
stix
|
| 1429 |
+
strcat
|
| 1430 |
+
strcatk
|
| 1431 |
+
strchar
|
| 1432 |
+
strchark
|
| 1433 |
+
strcmp
|
| 1434 |
+
strcmpk
|
| 1435 |
+
strcpy
|
| 1436 |
+
strcpyk
|
| 1437 |
+
strecv
|
| 1438 |
+
streson
|
| 1439 |
+
strfromurl
|
| 1440 |
+
strget
|
| 1441 |
+
strindex
|
| 1442 |
+
strindexk
|
| 1443 |
+
string2array
|
| 1444 |
+
strlen
|
| 1445 |
+
strlenk
|
| 1446 |
+
strlower
|
| 1447 |
+
strlowerk
|
| 1448 |
+
strrindex
|
| 1449 |
+
strrindexk
|
| 1450 |
+
strset
|
| 1451 |
+
strstrip
|
| 1452 |
+
strsub
|
| 1453 |
+
strsubk
|
| 1454 |
+
strtod
|
| 1455 |
+
strtodk
|
| 1456 |
+
strtol
|
| 1457 |
+
strtolk
|
| 1458 |
+
strupper
|
| 1459 |
+
strupperk
|
| 1460 |
+
stsend
|
| 1461 |
+
subinstr
|
| 1462 |
+
subinstrinit
|
| 1463 |
+
sum
|
| 1464 |
+
sumarray
|
| 1465 |
+
svfilter
|
| 1466 |
+
svn
|
| 1467 |
+
syncgrain
|
| 1468 |
+
syncloop
|
| 1469 |
+
syncphasor
|
| 1470 |
+
system
|
| 1471 |
+
system_i
|
| 1472 |
+
tab
|
| 1473 |
+
tab2array
|
| 1474 |
+
tab2pvs
|
| 1475 |
+
tab_i
|
| 1476 |
+
tabifd
|
| 1477 |
+
table
|
| 1478 |
+
table3
|
| 1479 |
+
table3kt
|
| 1480 |
+
tablecopy
|
| 1481 |
+
tablefilter
|
| 1482 |
+
tablefilteri
|
| 1483 |
+
tablegpw
|
| 1484 |
+
tablei
|
| 1485 |
+
tableicopy
|
| 1486 |
+
tableigpw
|
| 1487 |
+
tableikt
|
| 1488 |
+
tableimix
|
| 1489 |
+
tablekt
|
| 1490 |
+
tablemix
|
| 1491 |
+
tableng
|
| 1492 |
+
tablera
|
| 1493 |
+
tableseg
|
| 1494 |
+
tableshuffle
|
| 1495 |
+
tableshufflei
|
| 1496 |
+
tablew
|
| 1497 |
+
tablewa
|
| 1498 |
+
tablewkt
|
| 1499 |
+
tablexkt
|
| 1500 |
+
tablexseg
|
| 1501 |
+
tabmorph
|
| 1502 |
+
tabmorpha
|
| 1503 |
+
tabmorphak
|
| 1504 |
+
tabmorphi
|
| 1505 |
+
tabplay
|
| 1506 |
+
tabrec
|
| 1507 |
+
tabsum
|
| 1508 |
+
tabw
|
| 1509 |
+
tabw_i
|
| 1510 |
+
tambourine
|
| 1511 |
+
tan
|
| 1512 |
+
tanh
|
| 1513 |
+
taninv
|
| 1514 |
+
taninv2
|
| 1515 |
+
tbvcf
|
| 1516 |
+
tempest
|
| 1517 |
+
tempo
|
| 1518 |
+
temposcal
|
| 1519 |
+
tempoval
|
| 1520 |
+
timedseq
|
| 1521 |
+
timeinstk
|
| 1522 |
+
timeinsts
|
| 1523 |
+
timek
|
| 1524 |
+
times
|
| 1525 |
+
tival
|
| 1526 |
+
tlineto
|
| 1527 |
+
tone
|
| 1528 |
+
tonek
|
| 1529 |
+
tonex
|
| 1530 |
+
tradsyn
|
| 1531 |
+
trandom
|
| 1532 |
+
transeg
|
| 1533 |
+
transegb
|
| 1534 |
+
transegr
|
| 1535 |
+
trcross
|
| 1536 |
+
trfilter
|
| 1537 |
+
trhighest
|
| 1538 |
+
trigExpseg
|
| 1539 |
+
trigLinseg
|
| 1540 |
+
trigexpseg
|
| 1541 |
+
trigger
|
| 1542 |
+
trighold
|
| 1543 |
+
triglinseg
|
| 1544 |
+
trigphasor
|
| 1545 |
+
trigseq
|
| 1546 |
+
trim
|
| 1547 |
+
trim_i
|
| 1548 |
+
trirand
|
| 1549 |
+
trlowest
|
| 1550 |
+
trmix
|
| 1551 |
+
trscale
|
| 1552 |
+
trshift
|
| 1553 |
+
trsplit
|
| 1554 |
+
turnoff
|
| 1555 |
+
turnoff2
|
| 1556 |
+
turnoff2_i
|
| 1557 |
+
turnoff3
|
| 1558 |
+
turnon
|
| 1559 |
+
tvconv
|
| 1560 |
+
unirand
|
| 1561 |
+
unwrap
|
| 1562 |
+
upsamp
|
| 1563 |
+
urandom
|
| 1564 |
+
urd
|
| 1565 |
+
vactrol
|
| 1566 |
+
vadd
|
| 1567 |
+
vadd_i
|
| 1568 |
+
vaddv
|
| 1569 |
+
vaddv_i
|
| 1570 |
+
vaget
|
| 1571 |
+
valpass
|
| 1572 |
+
vaset
|
| 1573 |
+
vbap
|
| 1574 |
+
vbapg
|
| 1575 |
+
vbapgmove
|
| 1576 |
+
vbaplsinit
|
| 1577 |
+
vbapmove
|
| 1578 |
+
vbapz
|
| 1579 |
+
vbapzmove
|
| 1580 |
+
vcella
|
| 1581 |
+
vclpf
|
| 1582 |
+
vco
|
| 1583 |
+
vco2
|
| 1584 |
+
vco2ft
|
| 1585 |
+
vco2ift
|
| 1586 |
+
vco2init
|
| 1587 |
+
vcomb
|
| 1588 |
+
vcopy
|
| 1589 |
+
vcopy_i
|
| 1590 |
+
vdel_k
|
| 1591 |
+
vdelay
|
| 1592 |
+
vdelay3
|
| 1593 |
+
vdelayk
|
| 1594 |
+
vdelayx
|
| 1595 |
+
vdelayxq
|
| 1596 |
+
vdelayxs
|
| 1597 |
+
vdelayxw
|
| 1598 |
+
vdelayxwq
|
| 1599 |
+
vdelayxws
|
| 1600 |
+
vdivv
|
| 1601 |
+
vdivv_i
|
| 1602 |
+
vecdelay
|
| 1603 |
+
veloc
|
| 1604 |
+
vexp
|
| 1605 |
+
vexp_i
|
| 1606 |
+
vexpseg
|
| 1607 |
+
vexpv
|
| 1608 |
+
vexpv_i
|
| 1609 |
+
vibes
|
| 1610 |
+
vibr
|
| 1611 |
+
vibrato
|
| 1612 |
+
vincr
|
| 1613 |
+
vlimit
|
| 1614 |
+
vlinseg
|
| 1615 |
+
vlowres
|
| 1616 |
+
vmap
|
| 1617 |
+
vmirror
|
| 1618 |
+
vmult
|
| 1619 |
+
vmult_i
|
| 1620 |
+
vmultv
|
| 1621 |
+
vmultv_i
|
| 1622 |
+
voice
|
| 1623 |
+
vosim
|
| 1624 |
+
vphaseseg
|
| 1625 |
+
vport
|
| 1626 |
+
vpow
|
| 1627 |
+
vpow_i
|
| 1628 |
+
vpowv
|
| 1629 |
+
vpowv_i
|
| 1630 |
+
vps
|
| 1631 |
+
vpvoc
|
| 1632 |
+
vrandh
|
| 1633 |
+
vrandi
|
| 1634 |
+
vsubv
|
| 1635 |
+
vsubv_i
|
| 1636 |
+
vtaba
|
| 1637 |
+
vtabi
|
| 1638 |
+
vtabk
|
| 1639 |
+
vtable1k
|
| 1640 |
+
vtablea
|
| 1641 |
+
vtablei
|
| 1642 |
+
vtablek
|
| 1643 |
+
vtablewa
|
| 1644 |
+
vtablewi
|
| 1645 |
+
vtablewk
|
| 1646 |
+
vtabwa
|
| 1647 |
+
vtabwi
|
| 1648 |
+
vtabwk
|
| 1649 |
+
vwrap
|
| 1650 |
+
waveset
|
| 1651 |
+
websocket
|
| 1652 |
+
weibull
|
| 1653 |
+
wgbow
|
| 1654 |
+
wgbowedbar
|
| 1655 |
+
wgbrass
|
| 1656 |
+
wgclar
|
| 1657 |
+
wgflute
|
| 1658 |
+
wgpluck
|
| 1659 |
+
wgpluck2
|
| 1660 |
+
wguide1
|
| 1661 |
+
wguide2
|
| 1662 |
+
wiiconnect
|
| 1663 |
+
wiidata
|
| 1664 |
+
wiirange
|
| 1665 |
+
wiisend
|
| 1666 |
+
window
|
| 1667 |
+
wrap
|
| 1668 |
+
writescratch
|
| 1669 |
+
wterrain
|
| 1670 |
+
wterrain2
|
| 1671 |
+
xadsr
|
| 1672 |
+
xin
|
| 1673 |
+
xout
|
| 1674 |
+
xtratim
|
| 1675 |
+
xyscale
|
| 1676 |
+
zacl
|
| 1677 |
+
zakinit
|
| 1678 |
+
zamod
|
| 1679 |
+
zar
|
| 1680 |
+
zarg
|
| 1681 |
+
zaw
|
| 1682 |
+
zawm
|
| 1683 |
+
zdf_1pole
|
| 1684 |
+
zdf_1pole_mode
|
| 1685 |
+
zdf_2pole
|
| 1686 |
+
zdf_2pole_mode
|
| 1687 |
+
zdf_ladder
|
| 1688 |
+
zfilter2
|
| 1689 |
+
zir
|
| 1690 |
+
ziw
|
| 1691 |
+
ziwm
|
| 1692 |
+
zkcl
|
| 1693 |
+
zkmod
|
| 1694 |
+
zkr
|
| 1695 |
+
zkw
|
| 1696 |
+
zkwm
|
| 1697 |
+
'''.split())
|
| 1698 |
+
|
| 1699 |
+
DEPRECATED_OPCODES = set('''
|
| 1700 |
+
array
|
| 1701 |
+
bformdec
|
| 1702 |
+
bformenc
|
| 1703 |
+
copy2ftab
|
| 1704 |
+
copy2ttab
|
| 1705 |
+
hrtfer
|
| 1706 |
+
ktableseg
|
| 1707 |
+
lentab
|
| 1708 |
+
maxtab
|
| 1709 |
+
mintab
|
| 1710 |
+
pop
|
| 1711 |
+
pop_f
|
| 1712 |
+
ptable
|
| 1713 |
+
ptable3
|
| 1714 |
+
ptablei
|
| 1715 |
+
ptableiw
|
| 1716 |
+
push
|
| 1717 |
+
push_f
|
| 1718 |
+
scalet
|
| 1719 |
+
sndload
|
| 1720 |
+
soundout
|
| 1721 |
+
soundouts
|
| 1722 |
+
specaddm
|
| 1723 |
+
specdiff
|
| 1724 |
+
specdisp
|
| 1725 |
+
specfilt
|
| 1726 |
+
spechist
|
| 1727 |
+
specptrk
|
| 1728 |
+
specscal
|
| 1729 |
+
specsum
|
| 1730 |
+
spectrum
|
| 1731 |
+
stack
|
| 1732 |
+
sumtab
|
| 1733 |
+
tabgen
|
| 1734 |
+
tableiw
|
| 1735 |
+
tabmap
|
| 1736 |
+
tabmap_i
|
| 1737 |
+
tabslice
|
| 1738 |
+
tb0
|
| 1739 |
+
tb0_init
|
| 1740 |
+
tb1
|
| 1741 |
+
tb10
|
| 1742 |
+
tb10_init
|
| 1743 |
+
tb11
|
| 1744 |
+
tb11_init
|
| 1745 |
+
tb12
|
| 1746 |
+
tb12_init
|
| 1747 |
+
tb13
|
| 1748 |
+
tb13_init
|
| 1749 |
+
tb14
|
| 1750 |
+
tb14_init
|
| 1751 |
+
tb15
|
| 1752 |
+
tb15_init
|
| 1753 |
+
tb1_init
|
| 1754 |
+
tb2
|
| 1755 |
+
tb2_init
|
| 1756 |
+
tb3
|
| 1757 |
+
tb3_init
|
| 1758 |
+
tb4
|
| 1759 |
+
tb4_init
|
| 1760 |
+
tb5
|
| 1761 |
+
tb5_init
|
| 1762 |
+
tb6
|
| 1763 |
+
tb6_init
|
| 1764 |
+
tb7
|
| 1765 |
+
tb7_init
|
| 1766 |
+
tb8
|
| 1767 |
+
tb8_init
|
| 1768 |
+
tb9
|
| 1769 |
+
tb9_init
|
| 1770 |
+
vbap16
|
| 1771 |
+
vbap4
|
| 1772 |
+
vbap4move
|
| 1773 |
+
vbap8
|
| 1774 |
+
vbap8move
|
| 1775 |
+
xscanmap
|
| 1776 |
+
xscans
|
| 1777 |
+
xscansmap
|
| 1778 |
+
xscanu
|
| 1779 |
+
xyin
|
| 1780 |
+
'''.split())
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/_googlesql_builtins.py
ADDED
|
@@ -0,0 +1,918 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pygments.lexers._googlesql_builtins
|
| 3 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
Autogenerated data files for the GoogleSQL lexer.
|
| 6 |
+
|
| 7 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 8 |
+
:license: BSD, see LICENSE for details.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
constants = [
|
| 12 |
+
'FALSE',
|
| 13 |
+
'NULL',
|
| 14 |
+
'TRUE',
|
| 15 |
+
'UNKNOWN',
|
| 16 |
+
]
|
| 17 |
+
|
| 18 |
+
# Everything below this line is auto-generated from the GoogleSQL source code.
|
| 19 |
+
# ----------------------------------------------------------------------------
|
| 20 |
+
|
| 21 |
+
functionnames = [
|
| 22 |
+
'ABS',
|
| 23 |
+
'ACOS',
|
| 24 |
+
'ACOSH',
|
| 25 |
+
'AEAD.DECRYPT_BYTES',
|
| 26 |
+
'AEAD.DECRYPT_STRING',
|
| 27 |
+
'AEAD.ENCRYPT',
|
| 28 |
+
'AEAD.ENVELOPE_DECRYPT_BYTES',
|
| 29 |
+
'AEAD.ENVELOPE_DECRYPT_STRING',
|
| 30 |
+
'AEAD.ENVELOPE_ENCRYPT',
|
| 31 |
+
'ALL_DIFFERENT',
|
| 32 |
+
'ANON_AVG',
|
| 33 |
+
'ANON_COUNT',
|
| 34 |
+
'ANON_COUNT',
|
| 35 |
+
'ANON_PERCENTILE_CONT',
|
| 36 |
+
'ANON_QUANTILES',
|
| 37 |
+
'ANON_STDDEV_POP',
|
| 38 |
+
'ANON_SUM',
|
| 39 |
+
'ANON_VAR_POP',
|
| 40 |
+
'ANY_VALUE',
|
| 41 |
+
'APPROX_COSINE_DISTANCE',
|
| 42 |
+
'APPROX_COUNT_DISTINCT',
|
| 43 |
+
'APPROX_DOT_PRODUCT',
|
| 44 |
+
'APPROX_EUCLIDEAN_DISTANCE',
|
| 45 |
+
'APPROX_QUANTILES',
|
| 46 |
+
'APPROX_TOP_COUNT',
|
| 47 |
+
'APPROX_TOP_SUM',
|
| 48 |
+
'ARRAY[KEY()]',
|
| 49 |
+
'ARRAY[SAFE_KEY()]',
|
| 50 |
+
'ARRAY_AGG',
|
| 51 |
+
'ARRAY_AVG',
|
| 52 |
+
'ARRAY_CONCAT',
|
| 53 |
+
'ARRAY_CONCAT_AGG',
|
| 54 |
+
'ARRAY_FILTER',
|
| 55 |
+
'ARRAY_FIND',
|
| 56 |
+
'ARRAY_FIND_ALL',
|
| 57 |
+
'ARRAY_FIRST',
|
| 58 |
+
'ARRAY_FIRST_N',
|
| 59 |
+
'ARRAY_INCLUDES',
|
| 60 |
+
'ARRAY_INCLUDES_ALL',
|
| 61 |
+
'ARRAY_INCLUDES_ANY',
|
| 62 |
+
'ARRAY_IS_DISTINCT',
|
| 63 |
+
'ARRAY_LAST',
|
| 64 |
+
'ARRAY_LAST_N',
|
| 65 |
+
'ARRAY_LENGTH',
|
| 66 |
+
'ARRAY_MAX',
|
| 67 |
+
'ARRAY_MIN',
|
| 68 |
+
'ARRAY_OFFSET',
|
| 69 |
+
'ARRAY_OFFSETS',
|
| 70 |
+
'ARRAY_REMOVE_FIRST_N',
|
| 71 |
+
'ARRAY_REMOVE_LAST_N',
|
| 72 |
+
'ARRAY_REVERSE',
|
| 73 |
+
'ARRAY_SLICE',
|
| 74 |
+
'ARRAY_SUM',
|
| 75 |
+
'ARRAY_TO_STRING',
|
| 76 |
+
'ARRAY_TRANSFORM',
|
| 77 |
+
'ARRAY_ZIP',
|
| 78 |
+
'ASCII',
|
| 79 |
+
'ASIN',
|
| 80 |
+
'ASINH',
|
| 81 |
+
'ATAN',
|
| 82 |
+
'ATAN2',
|
| 83 |
+
'ATANH',
|
| 84 |
+
'AVG',
|
| 85 |
+
'BIT_AND',
|
| 86 |
+
'BIT_COUNT',
|
| 87 |
+
'BIT_OR',
|
| 88 |
+
'BIT_XOR',
|
| 89 |
+
'BOOL',
|
| 90 |
+
'BOOL_ARRAY',
|
| 91 |
+
'BYTE_LENGTH',
|
| 92 |
+
'CASE',
|
| 93 |
+
'CAST',
|
| 94 |
+
'CBRT',
|
| 95 |
+
'CEIL',
|
| 96 |
+
'CEILING',
|
| 97 |
+
'CHARACTER_LENGTH',
|
| 98 |
+
'CHAR_LENGTH',
|
| 99 |
+
'CHR',
|
| 100 |
+
'COALESCE',
|
| 101 |
+
'CODE_POINTS_TO_BYTES',
|
| 102 |
+
'CODE_POINTS_TO_STRING',
|
| 103 |
+
'COLLATE',
|
| 104 |
+
'CONCAT',
|
| 105 |
+
'CORR',
|
| 106 |
+
'COS',
|
| 107 |
+
'COSH',
|
| 108 |
+
'COSINE_DISTANCE',
|
| 109 |
+
'COT',
|
| 110 |
+
'COTH',
|
| 111 |
+
'COUNT',
|
| 112 |
+
'COUNT(*)',
|
| 113 |
+
'COUNTIF',
|
| 114 |
+
'COVAR_POP',
|
| 115 |
+
'COVAR_SAMP',
|
| 116 |
+
'CSC',
|
| 117 |
+
'CSCH',
|
| 118 |
+
'CUME_DIST',
|
| 119 |
+
'CURRENT_DATE',
|
| 120 |
+
'CURRENT_DATETIME',
|
| 121 |
+
'CURRENT_TIME',
|
| 122 |
+
'CURRENT_TIMESTAMP',
|
| 123 |
+
'D3A_COUNT.EXTRACT',
|
| 124 |
+
'D3A_COUNT.INIT',
|
| 125 |
+
'D3A_COUNT.MERGE',
|
| 126 |
+
'D3A_COUNT.MERGE_PARTIAL',
|
| 127 |
+
'D3A_COUNT.TO_HLL',
|
| 128 |
+
'DATE',
|
| 129 |
+
'DATETIME',
|
| 130 |
+
'DATETIME_ADD',
|
| 131 |
+
'DATETIME_BUCKET',
|
| 132 |
+
'DATETIME_DIFF',
|
| 133 |
+
'DATETIME_SUB',
|
| 134 |
+
'DATETIME_TRUNC',
|
| 135 |
+
'DATE_ADD',
|
| 136 |
+
'DATE_BUCKET',
|
| 137 |
+
'DATE_DIFF',
|
| 138 |
+
'DATE_FROM_UNIX_DATE',
|
| 139 |
+
'DATE_SUB',
|
| 140 |
+
'DATE_TRUNC',
|
| 141 |
+
'DENSE_RANK',
|
| 142 |
+
'DESTINATION_NODE_ID',
|
| 143 |
+
'DETERMINISTIC_DECRYPT_BYTES',
|
| 144 |
+
'DETERMINISTIC_DECRYPT_STRING',
|
| 145 |
+
'DETERMINISTIC_ENCRYPT',
|
| 146 |
+
'DIV',
|
| 147 |
+
'DOT_PRODUCT',
|
| 148 |
+
'EDGES',
|
| 149 |
+
'EDIT_DISTANCE',
|
| 150 |
+
'ELEMENTWISE_AVG',
|
| 151 |
+
'ELEMENTWISE_SUM',
|
| 152 |
+
'ELEMENT_DEFINITION_NAME',
|
| 153 |
+
'ELEMENT_ID',
|
| 154 |
+
'ENDS_WITH',
|
| 155 |
+
'ENUM_VALUE_DESCRIPTOR_PROTO',
|
| 156 |
+
'ERROR',
|
| 157 |
+
'EUCLIDEAN_DISTANCE',
|
| 158 |
+
'EXP',
|
| 159 |
+
'EXTRACT',
|
| 160 |
+
'EXTRACT_FOR_DP_APPROX_COUNT_DISTINCT',
|
| 161 |
+
'FARM_FINGERPRINT',
|
| 162 |
+
'FILTER_FIELDS',
|
| 163 |
+
'FIRST_VALUE',
|
| 164 |
+
'FLATTEN',
|
| 165 |
+
'FLOAT32',
|
| 166 |
+
'FLOAT32_ARRAY',
|
| 167 |
+
'FLOAT64',
|
| 168 |
+
'FLOAT64_ARRAY',
|
| 169 |
+
'FLOOR',
|
| 170 |
+
'FORMAT',
|
| 171 |
+
'FORMAT_DATE',
|
| 172 |
+
'FORMAT_DATETIME',
|
| 173 |
+
'FORMAT_TIME',
|
| 174 |
+
'FORMAT_TIMESTAMP',
|
| 175 |
+
'FROM_BASE32',
|
| 176 |
+
'FROM_BASE64',
|
| 177 |
+
'FROM_HEX',
|
| 178 |
+
'GENERATE_ARRAY',
|
| 179 |
+
'GENERATE_DATE_ARRAY',
|
| 180 |
+
'GENERATE_RANGE_ARRAY',
|
| 181 |
+
'GENERATE_TIMESTAMP_ARRAY',
|
| 182 |
+
'GENERATE_UUID',
|
| 183 |
+
'GREATEST',
|
| 184 |
+
'GROUPING',
|
| 185 |
+
'HLL_COUNT.EXTRACT',
|
| 186 |
+
'HLL_COUNT.INIT',
|
| 187 |
+
'HLL_COUNT.MERGE',
|
| 188 |
+
'HLL_COUNT.MERGE_PARTIAL',
|
| 189 |
+
'IEEE_DIVIDE',
|
| 190 |
+
'IF',
|
| 191 |
+
'IFERROR',
|
| 192 |
+
'IFNULL',
|
| 193 |
+
'IN UNNEST',
|
| 194 |
+
'INITCAP',
|
| 195 |
+
'INIT_FOR_DP_APPROX_COUNT_DISTINCT',
|
| 196 |
+
'INSTR',
|
| 197 |
+
'INT64',
|
| 198 |
+
'INT64_ARRAY',
|
| 199 |
+
'IS DESTINATION OF',
|
| 200 |
+
'IS DISTINCT FROM',
|
| 201 |
+
'IS NOT DISTINCT FROM',
|
| 202 |
+
'IS SOURCE OF',
|
| 203 |
+
'ISERROR',
|
| 204 |
+
'IS_ACYCLIC',
|
| 205 |
+
'IS_INF',
|
| 206 |
+
'IS_NAN',
|
| 207 |
+
'IS_SIMPLE',
|
| 208 |
+
'IS_TRAIL',
|
| 209 |
+
'JSON_ARRAY',
|
| 210 |
+
'JSON_ARRAY_APPEND',
|
| 211 |
+
'JSON_ARRAY_INSERT',
|
| 212 |
+
'JSON_CONTAINS',
|
| 213 |
+
'JSON_EXTRACT',
|
| 214 |
+
'JSON_EXTRACT_ARRAY',
|
| 215 |
+
'JSON_EXTRACT_SCALAR',
|
| 216 |
+
'JSON_EXTRACT_STRING_ARRAY',
|
| 217 |
+
'JSON_KEYS',
|
| 218 |
+
'JSON_OBJECT',
|
| 219 |
+
'JSON_QUERY',
|
| 220 |
+
'JSON_QUERY_ARRAY',
|
| 221 |
+
'JSON_REMOVE',
|
| 222 |
+
'JSON_SET',
|
| 223 |
+
'JSON_STRIP_NULLS',
|
| 224 |
+
'JSON_TYPE',
|
| 225 |
+
'JSON_VALUE',
|
| 226 |
+
'JSON_VALUE_ARRAY',
|
| 227 |
+
'JUSTIFY_DAYS',
|
| 228 |
+
'JUSTIFY_HOURS',
|
| 229 |
+
'JUSTIFY_INTERVAL',
|
| 230 |
+
'KEYS.ADD_KEY_FROM_RAW_BYTES',
|
| 231 |
+
'KEYS.KEYSET_CHAIN',
|
| 232 |
+
'KEYS.KEYSET_FROM_JSON',
|
| 233 |
+
'KEYS.KEYSET_LENGTH',
|
| 234 |
+
'KEYS.KEYSET_TO_JSON',
|
| 235 |
+
'KEYS.NEW_KEYSET',
|
| 236 |
+
'KEYS.NEW_WRAPPED_KEYSET',
|
| 237 |
+
'KEYS.REWRAP_KEYSET',
|
| 238 |
+
'KEYS.ROTATE_KEYSET',
|
| 239 |
+
'KEYS.ROTATE_WRAPPED_KEYSET',
|
| 240 |
+
'KLL_QUANTILES.EXTRACT_FLOAT64',
|
| 241 |
+
'KLL_QUANTILES.EXTRACT_INT64',
|
| 242 |
+
'KLL_QUANTILES.EXTRACT_POINT_FLOAT64',
|
| 243 |
+
'KLL_QUANTILES.EXTRACT_POINT_INT64',
|
| 244 |
+
'KLL_QUANTILES.INIT_FLOAT64',
|
| 245 |
+
'KLL_QUANTILES.INIT_INT64',
|
| 246 |
+
'KLL_QUANTILES.MERGE_FLOAT64',
|
| 247 |
+
'KLL_QUANTILES.MERGE_INT64',
|
| 248 |
+
'KLL_QUANTILES.MERGE_PARTIAL',
|
| 249 |
+
'KLL_QUANTILES.MERGE_POINT_FLOAT64',
|
| 250 |
+
'KLL_QUANTILES.MERGE_POINT_INT64',
|
| 251 |
+
'L1_NORM',
|
| 252 |
+
'L2_NORM',
|
| 253 |
+
'LABELS',
|
| 254 |
+
'LAG',
|
| 255 |
+
'LAST_DAY',
|
| 256 |
+
'LAST_VALUE',
|
| 257 |
+
'LAX_BOOL',
|
| 258 |
+
'LAX_BOOL_ARRAY',
|
| 259 |
+
'LAX_FLOAT32',
|
| 260 |
+
'LAX_FLOAT32_ARRAY',
|
| 261 |
+
'LAX_FLOAT64',
|
| 262 |
+
'LAX_FLOAT64_ARRAY',
|
| 263 |
+
'LAX_INT64',
|
| 264 |
+
'LAX_INT64_ARRAY',
|
| 265 |
+
'LAX_STRING',
|
| 266 |
+
'LAX_STRING_ARRAY',
|
| 267 |
+
'LEAD',
|
| 268 |
+
'LEAST',
|
| 269 |
+
'LEFT',
|
| 270 |
+
'LENGTH',
|
| 271 |
+
'LIKE ALL',
|
| 272 |
+
'LIKE ALL UNNEST',
|
| 273 |
+
'LIKE ANY',
|
| 274 |
+
'LIKE ANY UNNEST',
|
| 275 |
+
'LN',
|
| 276 |
+
'LOG',
|
| 277 |
+
'LOG10',
|
| 278 |
+
'LOGICAL_AND',
|
| 279 |
+
'LOGICAL_OR',
|
| 280 |
+
'LOWER',
|
| 281 |
+
'LPAD',
|
| 282 |
+
'LTRIM',
|
| 283 |
+
'MAKE_INTERVAL',
|
| 284 |
+
'MANHATTAN_DISTANCE',
|
| 285 |
+
'MAP_CARDINALITY',
|
| 286 |
+
'MAP_CONTAINS_KEY',
|
| 287 |
+
'MAP_DELETE',
|
| 288 |
+
'MAP_EMPTY',
|
| 289 |
+
'MAP_ENTRIES_SORTED',
|
| 290 |
+
'MAP_ENTRIES_UNSORTED',
|
| 291 |
+
'MAP_FILTER',
|
| 292 |
+
'MAP_FROM_ARRAY',
|
| 293 |
+
'MAP_GET',
|
| 294 |
+
'MAP_INSERT',
|
| 295 |
+
'MAP_INSERT_OR_REPLACE',
|
| 296 |
+
'MAP_KEYS_SORTED',
|
| 297 |
+
'MAP_KEYS_UNSORTED',
|
| 298 |
+
'MAP_REPLACE',
|
| 299 |
+
'MAP_VALUES_SORTED',
|
| 300 |
+
'MAP_VALUES_SORTED_BY_KEY',
|
| 301 |
+
'MAP_VALUES_UNSORTED',
|
| 302 |
+
'MAX',
|
| 303 |
+
'MD5',
|
| 304 |
+
'MERGE_PARTIAL_FOR_DP_APPROX_COUNT_DISTINCT',
|
| 305 |
+
'MIN',
|
| 306 |
+
'MOD',
|
| 307 |
+
'NET.HOST',
|
| 308 |
+
'NET.IPV4_FROM_INT64',
|
| 309 |
+
'NET.IPV4_TO_INT64',
|
| 310 |
+
'NET.IP_FROM_STRING',
|
| 311 |
+
'NET.IP_NET_MASK',
|
| 312 |
+
'NET.IP_TO_STRING',
|
| 313 |
+
'NET.IP_TRUNC',
|
| 314 |
+
'NET.PUBLIC_SUFFIX',
|
| 315 |
+
'NET.REG_DOMAIN',
|
| 316 |
+
'NET.SAFE_IP_FROM_STRING',
|
| 317 |
+
'NEW_UUID',
|
| 318 |
+
'NODES',
|
| 319 |
+
'NORMALIZE',
|
| 320 |
+
'NORMALIZE_AND_CASEFOLD',
|
| 321 |
+
'NOT LIKE ALL',
|
| 322 |
+
'NOT LIKE ALL UNNEST',
|
| 323 |
+
'NOT LIKE ANY',
|
| 324 |
+
'NOT LIKE ANY UNNEST',
|
| 325 |
+
'NTH_VALUE',
|
| 326 |
+
'NTILE',
|
| 327 |
+
'NULLIF',
|
| 328 |
+
'NULLIFERROR',
|
| 329 |
+
'NULLIFZERO',
|
| 330 |
+
'OCTET_LENGTH',
|
| 331 |
+
'OFFSET',
|
| 332 |
+
'ORDINAL',
|
| 333 |
+
'PARSE_BIGNUMERIC',
|
| 334 |
+
'PARSE_DATE',
|
| 335 |
+
'PARSE_DATETIME',
|
| 336 |
+
'PARSE_JSON',
|
| 337 |
+
'PARSE_NUMERIC',
|
| 338 |
+
'PARSE_TIME',
|
| 339 |
+
'PARSE_TIMESTAMP',
|
| 340 |
+
'PATH',
|
| 341 |
+
'PATH_FIRST',
|
| 342 |
+
'PATH_LAST',
|
| 343 |
+
'PATH_LENGTH',
|
| 344 |
+
'PERCENTILE_CONT',
|
| 345 |
+
'PERCENTILE_DISC',
|
| 346 |
+
'PERCENT_RANK',
|
| 347 |
+
'PI',
|
| 348 |
+
'PIVOT',
|
| 349 |
+
'PI_BIGNUMERIC',
|
| 350 |
+
'PI_NUMERIC',
|
| 351 |
+
'POW',
|
| 352 |
+
'POWER',
|
| 353 |
+
'PROPERTY_EXISTS',
|
| 354 |
+
'PROPERTY_NAMES',
|
| 355 |
+
'PROTO_MAP_CONTAINS_KEY',
|
| 356 |
+
'PROTO_MODIFY_MAP',
|
| 357 |
+
'RAND',
|
| 358 |
+
'RANGE',
|
| 359 |
+
'RANGE_BUCKET',
|
| 360 |
+
'RANGE_CONTAINS',
|
| 361 |
+
'RANGE_END',
|
| 362 |
+
'RANGE_INTERSECT',
|
| 363 |
+
'RANGE_IS_END_UNBOUNDED',
|
| 364 |
+
'RANGE_IS_START_UNBOUNDED',
|
| 365 |
+
'RANGE_OVERLAPS',
|
| 366 |
+
'RANGE_START',
|
| 367 |
+
'RANK',
|
| 368 |
+
'REGEXP_CONTAINS',
|
| 369 |
+
'REGEXP_EXTRACT',
|
| 370 |
+
'REGEXP_EXTRACT_ALL',
|
| 371 |
+
'REGEXP_INSTR',
|
| 372 |
+
'REGEXP_REPLACE',
|
| 373 |
+
'REGEXP_SUBSTR',
|
| 374 |
+
'REPEAT',
|
| 375 |
+
'REPLACE',
|
| 376 |
+
'REVERSE',
|
| 377 |
+
'RIGHT',
|
| 378 |
+
'ROUND',
|
| 379 |
+
'ROW_NUMBER',
|
| 380 |
+
'RPAD',
|
| 381 |
+
'RTRIM',
|
| 382 |
+
'S2_CELLIDFROMPOINT',
|
| 383 |
+
'S2_COVERINGCELLIDS',
|
| 384 |
+
'SAFE_ADD',
|
| 385 |
+
'SAFE_CONVERT_BYTES_TO_STRING',
|
| 386 |
+
'SAFE_DIVIDE',
|
| 387 |
+
'SAFE_MULTIPLY',
|
| 388 |
+
'SAFE_NEGATE',
|
| 389 |
+
'SAFE_OFFSET',
|
| 390 |
+
'SAFE_ORDINAL',
|
| 391 |
+
'SAFE_SUBTRACT',
|
| 392 |
+
'SAFE_TO_JSON',
|
| 393 |
+
'SAME',
|
| 394 |
+
'SEC',
|
| 395 |
+
'SECH',
|
| 396 |
+
'SESSION_USER',
|
| 397 |
+
'SHA1',
|
| 398 |
+
'SHA256',
|
| 399 |
+
'SHA512',
|
| 400 |
+
'SIGN',
|
| 401 |
+
'SIN',
|
| 402 |
+
'SINH',
|
| 403 |
+
'SOUNDEX',
|
| 404 |
+
'SOURCE_NODE_ID',
|
| 405 |
+
'SPLIT',
|
| 406 |
+
'SPLIT_SUBSTR',
|
| 407 |
+
'SQRT',
|
| 408 |
+
'STARTS_WITH',
|
| 409 |
+
'STDDEV',
|
| 410 |
+
'STDDEV_POP',
|
| 411 |
+
'STDDEV_SAMP',
|
| 412 |
+
'STRING',
|
| 413 |
+
'STRING_AGG',
|
| 414 |
+
'STRING_ARRAY',
|
| 415 |
+
'STRPOS',
|
| 416 |
+
'ST_ANGLE',
|
| 417 |
+
'ST_AREA',
|
| 418 |
+
'ST_ASBINARY',
|
| 419 |
+
'ST_ASGEOJSON',
|
| 420 |
+
'ST_ASKML',
|
| 421 |
+
'ST_ASTEXT',
|
| 422 |
+
'ST_AZIMUTH',
|
| 423 |
+
'ST_BOUNDARY',
|
| 424 |
+
'ST_BOUNDINGBOX',
|
| 425 |
+
'ST_BUFFER',
|
| 426 |
+
'ST_BUFFERWITHTOLERANCE',
|
| 427 |
+
'ST_CENTROID',
|
| 428 |
+
'ST_CENTROID_AGG',
|
| 429 |
+
'ST_CLOSESTPOINT',
|
| 430 |
+
'ST_CLUSTERDBSCAN',
|
| 431 |
+
'ST_CONTAINS',
|
| 432 |
+
'ST_CONVEXHULL',
|
| 433 |
+
'ST_COVEREDBY',
|
| 434 |
+
'ST_COVERS',
|
| 435 |
+
'ST_DIFFERENCE',
|
| 436 |
+
'ST_DIMENSION',
|
| 437 |
+
'ST_DISJOINT',
|
| 438 |
+
'ST_DISTANCE',
|
| 439 |
+
'ST_DUMP',
|
| 440 |
+
'ST_DUMPPOINTS',
|
| 441 |
+
'ST_DWITHIN',
|
| 442 |
+
'ST_ENDPOINT',
|
| 443 |
+
'ST_EQUALS',
|
| 444 |
+
'ST_EXTENT',
|
| 445 |
+
'ST_EXTERIORRING',
|
| 446 |
+
'ST_GEOGFROM',
|
| 447 |
+
'ST_GEOGFROMGEOJSON',
|
| 448 |
+
'ST_GEOGFROMKML',
|
| 449 |
+
'ST_GEOGFROMTEXT',
|
| 450 |
+
'ST_GEOGFROMWKB',
|
| 451 |
+
'ST_GEOGPOINT',
|
| 452 |
+
'ST_GEOGPOINTFROMGEOHASH',
|
| 453 |
+
'ST_GEOHASH',
|
| 454 |
+
'ST_GEOMETRYTYPE',
|
| 455 |
+
'ST_HAUSDORFFDISTANCE',
|
| 456 |
+
'ST_HAUSDORFFDWITHIN',
|
| 457 |
+
'ST_INTERIORRINGS',
|
| 458 |
+
'ST_INTERSECTION',
|
| 459 |
+
'ST_INTERSECTS',
|
| 460 |
+
'ST_INTERSECTSBOX',
|
| 461 |
+
'ST_ISCLOSED',
|
| 462 |
+
'ST_ISCOLLECTION',
|
| 463 |
+
'ST_ISEMPTY',
|
| 464 |
+
'ST_ISRING',
|
| 465 |
+
'ST_LENGTH',
|
| 466 |
+
'ST_LINEINTERPOLATEPOINT',
|
| 467 |
+
'ST_LINELOCATEPOINT',
|
| 468 |
+
'ST_LINESUBSTRING',
|
| 469 |
+
'ST_MAKELINE',
|
| 470 |
+
'ST_MAKEPOLYGON',
|
| 471 |
+
'ST_MAKEPOLYGONORIENTED',
|
| 472 |
+
'ST_MAXDISTANCE',
|
| 473 |
+
'ST_NEAREST_NEIGHBORS',
|
| 474 |
+
'ST_NPOINTS',
|
| 475 |
+
'ST_NUMGEOMETRIES',
|
| 476 |
+
'ST_NUMPOINTS',
|
| 477 |
+
'ST_PERIMETER',
|
| 478 |
+
'ST_POINTN',
|
| 479 |
+
'ST_SIMPLIFY',
|
| 480 |
+
'ST_SNAPTOGRID',
|
| 481 |
+
'ST_STARTPOINT',
|
| 482 |
+
'ST_TOUCHES',
|
| 483 |
+
'ST_UNARYUNION',
|
| 484 |
+
'ST_UNION',
|
| 485 |
+
'ST_UNION_AGG',
|
| 486 |
+
'ST_WITHIN',
|
| 487 |
+
'ST_X',
|
| 488 |
+
'ST_Y',
|
| 489 |
+
'SUBSTR',
|
| 490 |
+
'SUBSTRING',
|
| 491 |
+
'SUM',
|
| 492 |
+
'TAN',
|
| 493 |
+
'TANH',
|
| 494 |
+
'TIME',
|
| 495 |
+
'TIMESTAMP',
|
| 496 |
+
'TIMESTAMP_ADD',
|
| 497 |
+
'TIMESTAMP_BUCKET',
|
| 498 |
+
'TIMESTAMP_DIFF',
|
| 499 |
+
'TIMESTAMP_FROM_UNIX_MICROS',
|
| 500 |
+
'TIMESTAMP_FROM_UNIX_MILLIS',
|
| 501 |
+
'TIMESTAMP_FROM_UNIX_SECONDS',
|
| 502 |
+
'TIMESTAMP_MICROS',
|
| 503 |
+
'TIMESTAMP_MILLIS',
|
| 504 |
+
'TIMESTAMP_SECONDS',
|
| 505 |
+
'TIMESTAMP_SUB',
|
| 506 |
+
'TIMESTAMP_TRUNC',
|
| 507 |
+
'TIME_ADD',
|
| 508 |
+
'TIME_DIFF',
|
| 509 |
+
'TIME_SUB',
|
| 510 |
+
'TIME_TRUNC',
|
| 511 |
+
'TO_BASE32',
|
| 512 |
+
'TO_BASE64',
|
| 513 |
+
'TO_CODE_POINTS',
|
| 514 |
+
'TO_HEX',
|
| 515 |
+
'TO_JSON',
|
| 516 |
+
'TO_JSON_STRING',
|
| 517 |
+
'TRANSLATE',
|
| 518 |
+
'TRIM',
|
| 519 |
+
'TRUNC',
|
| 520 |
+
'TYPEOF',
|
| 521 |
+
'UNICODE',
|
| 522 |
+
'UNIX_DATE',
|
| 523 |
+
'UNIX_MICROS',
|
| 524 |
+
'UNIX_MILLIS',
|
| 525 |
+
'UNIX_SECONDS',
|
| 526 |
+
'UNNEST',
|
| 527 |
+
'UNPIVOT',
|
| 528 |
+
'UPPER',
|
| 529 |
+
'VARIANCE',
|
| 530 |
+
'VAR_POP',
|
| 531 |
+
'VAR_SAMP',
|
| 532 |
+
'ZEROIFNULL',
|
| 533 |
+
]
|
| 534 |
+
|
| 535 |
+
keywords = [
|
| 536 |
+
'ABORT',
|
| 537 |
+
'ACCESS',
|
| 538 |
+
'ACTION',
|
| 539 |
+
'ACYCLIC',
|
| 540 |
+
'ADD',
|
| 541 |
+
'AFTER',
|
| 542 |
+
'AGGREGATE',
|
| 543 |
+
'ALL',
|
| 544 |
+
'ALTER',
|
| 545 |
+
'ALWAYS',
|
| 546 |
+
'ANALYZE',
|
| 547 |
+
'AND',
|
| 548 |
+
'ANY',
|
| 549 |
+
'APPROX',
|
| 550 |
+
'ARE',
|
| 551 |
+
'AS',
|
| 552 |
+
'ASC',
|
| 553 |
+
'ASCENDING',
|
| 554 |
+
'ASSERT',
|
| 555 |
+
'ASSERT_ROWS_MODIFIED',
|
| 556 |
+
'AT',
|
| 557 |
+
'BATCH',
|
| 558 |
+
'BEGIN',
|
| 559 |
+
'BETWEEN',
|
| 560 |
+
'BIGDECIMAL',
|
| 561 |
+
'BREAK',
|
| 562 |
+
'BY',
|
| 563 |
+
'CALL',
|
| 564 |
+
'CASCADE',
|
| 565 |
+
'CASE',
|
| 566 |
+
'CAST',
|
| 567 |
+
'CHECK',
|
| 568 |
+
'CLAMPED',
|
| 569 |
+
'CLONE',
|
| 570 |
+
'CLUSTER',
|
| 571 |
+
'COLLATE',
|
| 572 |
+
'COLUMN',
|
| 573 |
+
'COLUMNS',
|
| 574 |
+
'COMMIT',
|
| 575 |
+
'CONFLICT',
|
| 576 |
+
'CONNECTION',
|
| 577 |
+
'CONSTANT',
|
| 578 |
+
'CONSTRAINT',
|
| 579 |
+
'CONTAINS',
|
| 580 |
+
'CONTINUE',
|
| 581 |
+
'COPY',
|
| 582 |
+
'CORRESPONDING',
|
| 583 |
+
'CREATE',
|
| 584 |
+
'CROSS',
|
| 585 |
+
'CUBE',
|
| 586 |
+
'CURRENT',
|
| 587 |
+
'CYCLE',
|
| 588 |
+
'DATA',
|
| 589 |
+
'DATABASE',
|
| 590 |
+
'DAY',
|
| 591 |
+
'DAYOFWEEK',
|
| 592 |
+
'DAYOFYEAR',
|
| 593 |
+
'DECIMAL',
|
| 594 |
+
'DECLARE',
|
| 595 |
+
'DEFAULT',
|
| 596 |
+
'DEFINE',
|
| 597 |
+
'DEFINER',
|
| 598 |
+
'DELETE',
|
| 599 |
+
'DELETION',
|
| 600 |
+
'DEPTH',
|
| 601 |
+
'DESC',
|
| 602 |
+
'DESCENDING',
|
| 603 |
+
'DESCRIBE',
|
| 604 |
+
'DESCRIPTOR',
|
| 605 |
+
'DESTINATION',
|
| 606 |
+
'DETERMINISTIC',
|
| 607 |
+
'DISTINCT',
|
| 608 |
+
'DO',
|
| 609 |
+
'DROP',
|
| 610 |
+
'EDGE',
|
| 611 |
+
'ELSE',
|
| 612 |
+
'ELSEIF',
|
| 613 |
+
'END',
|
| 614 |
+
'ENFORCED',
|
| 615 |
+
'ERROR',
|
| 616 |
+
'ESCAPE',
|
| 617 |
+
'EXCEPT',
|
| 618 |
+
'EXCEPTION',
|
| 619 |
+
'EXCLUDE',
|
| 620 |
+
'EXECUTE',
|
| 621 |
+
'EXISTS',
|
| 622 |
+
'EXPLAIN',
|
| 623 |
+
'EXPORT',
|
| 624 |
+
'EXTEND',
|
| 625 |
+
'EXTERNAL',
|
| 626 |
+
'EXTRACT',
|
| 627 |
+
'FALSE',
|
| 628 |
+
'FETCH',
|
| 629 |
+
'FIELD',
|
| 630 |
+
'FILES',
|
| 631 |
+
'FILL',
|
| 632 |
+
'FILTER',
|
| 633 |
+
'FIRST',
|
| 634 |
+
'FOLLOWING',
|
| 635 |
+
'FOR',
|
| 636 |
+
'FOREIGN',
|
| 637 |
+
'FORK',
|
| 638 |
+
'FORMAT',
|
| 639 |
+
'FRIDAY',
|
| 640 |
+
'FROM',
|
| 641 |
+
'FULL',
|
| 642 |
+
'FUNCTION',
|
| 643 |
+
'GENERATED',
|
| 644 |
+
'GRANT',
|
| 645 |
+
'GRAPH',
|
| 646 |
+
'GRAPH_TABLE',
|
| 647 |
+
'GROUP',
|
| 648 |
+
'GROUPING',
|
| 649 |
+
'GROUPS',
|
| 650 |
+
'GROUP_ROWS',
|
| 651 |
+
'HAS',
|
| 652 |
+
'HASH',
|
| 653 |
+
'HAVING',
|
| 654 |
+
'HIDDEN',
|
| 655 |
+
'HOUR',
|
| 656 |
+
'IDENTITY',
|
| 657 |
+
'IF',
|
| 658 |
+
'IGNORE',
|
| 659 |
+
'IMMEDIATE',
|
| 660 |
+
'IMMUTABLE',
|
| 661 |
+
'IMPORT',
|
| 662 |
+
'IN',
|
| 663 |
+
'INCLUDE',
|
| 664 |
+
'INCREMENT',
|
| 665 |
+
'INDEX',
|
| 666 |
+
'INNER',
|
| 667 |
+
'INOUT',
|
| 668 |
+
'INPUT',
|
| 669 |
+
'INSERT',
|
| 670 |
+
'INTERLEAVE',
|
| 671 |
+
'INTERSECT',
|
| 672 |
+
'INTO',
|
| 673 |
+
'INVOKER',
|
| 674 |
+
'IS',
|
| 675 |
+
'ISOLATION',
|
| 676 |
+
'ISOWEEK ',
|
| 677 |
+
'ISOYEAR',
|
| 678 |
+
'ITERATE',
|
| 679 |
+
'JOIN',
|
| 680 |
+
'KEY',
|
| 681 |
+
'LABEL',
|
| 682 |
+
'LABELED',
|
| 683 |
+
'LANGUAGE',
|
| 684 |
+
'LAST',
|
| 685 |
+
'LATERAL',
|
| 686 |
+
'LEAVE',
|
| 687 |
+
'LEFT',
|
| 688 |
+
'LET',
|
| 689 |
+
'LEVEL',
|
| 690 |
+
'LIKE',
|
| 691 |
+
'LIMIT',
|
| 692 |
+
'LOAD',
|
| 693 |
+
'LOG',
|
| 694 |
+
'LOOKUP',
|
| 695 |
+
'LOOP',
|
| 696 |
+
'MACRO',
|
| 697 |
+
'MATCH',
|
| 698 |
+
'MATCHED',
|
| 699 |
+
'MATCH_RECOGNIZE',
|
| 700 |
+
'MATERIALIZED',
|
| 701 |
+
'MAX',
|
| 702 |
+
'MAXVALUE',
|
| 703 |
+
'MEASURES',
|
| 704 |
+
'MERGE',
|
| 705 |
+
'MESSAGE',
|
| 706 |
+
'METADATA',
|
| 707 |
+
'MICROSECOND',
|
| 708 |
+
'MILLISECOND',
|
| 709 |
+
'MIN',
|
| 710 |
+
'MINUTE',
|
| 711 |
+
'MINVALUE',
|
| 712 |
+
'MODEL',
|
| 713 |
+
'MODULE',
|
| 714 |
+
'MONDAY',
|
| 715 |
+
'MONTH',
|
| 716 |
+
'NAME',
|
| 717 |
+
'NANOSECOND',
|
| 718 |
+
'NATURAL',
|
| 719 |
+
'NEW',
|
| 720 |
+
'NEXT',
|
| 721 |
+
'NO',
|
| 722 |
+
'NODE',
|
| 723 |
+
'NOT',
|
| 724 |
+
'NOTHING',
|
| 725 |
+
'NULL',
|
| 726 |
+
'NULLS',
|
| 727 |
+
'NULL_FILTERED',
|
| 728 |
+
'OF',
|
| 729 |
+
'OFFSET',
|
| 730 |
+
'ON',
|
| 731 |
+
'ONEOF_CASE',
|
| 732 |
+
'ONLY',
|
| 733 |
+
'OPTIONAL',
|
| 734 |
+
'OPTIONS',
|
| 735 |
+
'OR',
|
| 736 |
+
'ORDER',
|
| 737 |
+
'OUT',
|
| 738 |
+
'OUTER',
|
| 739 |
+
'OUTPUT',
|
| 740 |
+
'OVER',
|
| 741 |
+
'OVERWRITE',
|
| 742 |
+
'PARENT',
|
| 743 |
+
'PARTITION',
|
| 744 |
+
'PARTITIONS',
|
| 745 |
+
'PAST',
|
| 746 |
+
'PATH',
|
| 747 |
+
'PATHS',
|
| 748 |
+
'PATTERN',
|
| 749 |
+
'PERCENT',
|
| 750 |
+
'PIVOT',
|
| 751 |
+
'POLICIES',
|
| 752 |
+
'POLICY',
|
| 753 |
+
'PRECEDING',
|
| 754 |
+
'PRIMARY',
|
| 755 |
+
'PRIVATE',
|
| 756 |
+
'PRIVILEGE',
|
| 757 |
+
'PRIVILEGES',
|
| 758 |
+
'PROCEDURE',
|
| 759 |
+
'PROJECT',
|
| 760 |
+
'PROPERTIES',
|
| 761 |
+
'PROPERTY',
|
| 762 |
+
'PUBLIC',
|
| 763 |
+
'QUALIFY',
|
| 764 |
+
'QUARTER',
|
| 765 |
+
'RAISE',
|
| 766 |
+
'RAW',
|
| 767 |
+
'READ',
|
| 768 |
+
'RECURSIVE',
|
| 769 |
+
'REFERENCES',
|
| 770 |
+
'REMOTE',
|
| 771 |
+
'REMOVE',
|
| 772 |
+
'RENAME',
|
| 773 |
+
'REPEAT',
|
| 774 |
+
'REPEATABLE',
|
| 775 |
+
'REPLACE',
|
| 776 |
+
'REPLACE_FIELDS',
|
| 777 |
+
'REPLICA',
|
| 778 |
+
'REPORT',
|
| 779 |
+
'RESPECT',
|
| 780 |
+
'RESTRICT',
|
| 781 |
+
'RESTRICTION',
|
| 782 |
+
'RETURN',
|
| 783 |
+
'RETURNS',
|
| 784 |
+
'REVOKE',
|
| 785 |
+
'RIGHT',
|
| 786 |
+
'ROLLBACK',
|
| 787 |
+
'ROLLUP',
|
| 788 |
+
'ROW',
|
| 789 |
+
'ROWS',
|
| 790 |
+
'RUN',
|
| 791 |
+
'SAFE_CAST',
|
| 792 |
+
'SATURDAY',
|
| 793 |
+
'SCHEMA',
|
| 794 |
+
'SEARCH',
|
| 795 |
+
'SECOND ',
|
| 796 |
+
'SECURITY',
|
| 797 |
+
'SELECT',
|
| 798 |
+
'SEQUENCE',
|
| 799 |
+
'SET',
|
| 800 |
+
'SETS',
|
| 801 |
+
'SHORTEST',
|
| 802 |
+
'SHOW',
|
| 803 |
+
'SIMPLE',
|
| 804 |
+
'SKIP',
|
| 805 |
+
'SNAPSHOT',
|
| 806 |
+
'SOME',
|
| 807 |
+
'SOURCE',
|
| 808 |
+
'SQL',
|
| 809 |
+
'STABLE',
|
| 810 |
+
'START',
|
| 811 |
+
'STATIC_DESCRIBE',
|
| 812 |
+
'STORED',
|
| 813 |
+
'STORING',
|
| 814 |
+
'STRICT',
|
| 815 |
+
'SUNDAY',
|
| 816 |
+
'SYSTEM',
|
| 817 |
+
'SYSTEM_TIME',
|
| 818 |
+
'TABLE',
|
| 819 |
+
'TABLES',
|
| 820 |
+
'TABLESAMPLE',
|
| 821 |
+
'TARGET',
|
| 822 |
+
'TEMP',
|
| 823 |
+
'TEMPORARY',
|
| 824 |
+
'THEN',
|
| 825 |
+
'THURSDAY',
|
| 826 |
+
'TO',
|
| 827 |
+
'TRAIL',
|
| 828 |
+
'TRANSACTION',
|
| 829 |
+
'TRANSFORM',
|
| 830 |
+
'TREAT',
|
| 831 |
+
'TRUE',
|
| 832 |
+
'TRUNCATE',
|
| 833 |
+
'TUESDAY',
|
| 834 |
+
'TYPE',
|
| 835 |
+
'UNBOUNDED',
|
| 836 |
+
'UNDROP',
|
| 837 |
+
'UNION',
|
| 838 |
+
'UNIQUE',
|
| 839 |
+
'UNKNOWN',
|
| 840 |
+
'UNNEST',
|
| 841 |
+
'UNPIVOT',
|
| 842 |
+
'UNTIL',
|
| 843 |
+
'UPDATE',
|
| 844 |
+
'USING',
|
| 845 |
+
'VALUE',
|
| 846 |
+
'VALUES',
|
| 847 |
+
'VECTOR',
|
| 848 |
+
'VIEW',
|
| 849 |
+
'VIEWS',
|
| 850 |
+
'VOLATILE',
|
| 851 |
+
'WALK',
|
| 852 |
+
'WEDNESDAY',
|
| 853 |
+
'WEEK',
|
| 854 |
+
'WEIGHT',
|
| 855 |
+
'WHEN',
|
| 856 |
+
'WHERE',
|
| 857 |
+
'WHILE',
|
| 858 |
+
'WINDOW',
|
| 859 |
+
'WITH',
|
| 860 |
+
'WITHIN',
|
| 861 |
+
'WRITE',
|
| 862 |
+
'YEAR',
|
| 863 |
+
'ZONE',
|
| 864 |
+
]
|
| 865 |
+
|
| 866 |
+
operators = [
|
| 867 |
+
'!=',
|
| 868 |
+
'&',
|
| 869 |
+
'*',
|
| 870 |
+
'+',
|
| 871 |
+
'-',
|
| 872 |
+
'/',
|
| 873 |
+
'<',
|
| 874 |
+
'<<',
|
| 875 |
+
'<=',
|
| 876 |
+
'=',
|
| 877 |
+
'>',
|
| 878 |
+
'>=',
|
| 879 |
+
'>>',
|
| 880 |
+
'^',
|
| 881 |
+
'|',
|
| 882 |
+
'||',
|
| 883 |
+
'~',
|
| 884 |
+
]
|
| 885 |
+
|
| 886 |
+
types = [
|
| 887 |
+
'ARRAY',
|
| 888 |
+
'BIGNUMERIC',
|
| 889 |
+
'BOOL',
|
| 890 |
+
'BYTES',
|
| 891 |
+
'DATE',
|
| 892 |
+
'DATETIME',
|
| 893 |
+
'DOUBLE',
|
| 894 |
+
'ENUM',
|
| 895 |
+
'EXTENDED',
|
| 896 |
+
'FLOAT',
|
| 897 |
+
'GEOGRAPHY',
|
| 898 |
+
'GRAPH_ELEMENT',
|
| 899 |
+
'GRAPH_PATH',
|
| 900 |
+
'INT32',
|
| 901 |
+
'INT64',
|
| 902 |
+
'INTERVAL',
|
| 903 |
+
'JSON',
|
| 904 |
+
'MAP',
|
| 905 |
+
'MEASURE',
|
| 906 |
+
'NUMERIC',
|
| 907 |
+
'PROTO',
|
| 908 |
+
'RANGE',
|
| 909 |
+
'STRING',
|
| 910 |
+
'STRUCT',
|
| 911 |
+
'TIME',
|
| 912 |
+
'TIMESTAMP',
|
| 913 |
+
'TIMESTAMP_PICOS',
|
| 914 |
+
'TOKENLIST',
|
| 915 |
+
'UINT32',
|
| 916 |
+
'UINT64',
|
| 917 |
+
'UUID',
|
| 918 |
+
]
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/_lilypond_builtins.py
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/_mysql_builtins.py
ADDED
|
@@ -0,0 +1,1335 @@
|
|
|
|
|
|
|
|
|
|
|
|
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ORS.
|
| 10 |
+
:license: BSD, see LICENSE for details.
|
| 11 |
+
"""
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
MYSQL_CONSTANTS = (
|
| 15 |
+
'false',
|
| 16 |
+
'null',
|
| 17 |
+
'true',
|
| 18 |
+
'unknown',
|
| 19 |
+
)
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
# At this time, no easily-parsed, definitive list of data types
|
| 23 |
+
# has been found in the MySQL source code or documentation. (The
|
| 24 |
+
# `sql/sql_yacc.yy` file is definitive but is difficult to parse.)
|
| 25 |
+
# Therefore these types are currently maintained manually.
|
| 26 |
+
#
|
| 27 |
+
# Some words in this list -- like "long", "national", "precision",
|
| 28 |
+
# and "varying" -- appear to only occur in combination with other
|
| 29 |
+
# data type keywords. Therefore they are included as separate words
|
| 30 |
+
# even though they do not naturally occur in syntax separately.
|
| 31 |
+
#
|
| 32 |
+
# This list is also used to strip data types out of the list of
|
| 33 |
+
# MySQL keywords, which is automatically updated later in the file.
|
| 34 |
+
#
|
| 35 |
+
MYSQL_DATATYPES = (
|
| 36 |
+
# Numeric data types
|
| 37 |
+
'bigint',
|
| 38 |
+
'bit',
|
| 39 |
+
'bool',
|
| 40 |
+
'boolean',
|
| 41 |
+
'dec',
|
| 42 |
+
'decimal',
|
| 43 |
+
'double',
|
| 44 |
+
'fixed',
|
| 45 |
+
'float',
|
| 46 |
+
'float4',
|
| 47 |
+
'float8',
|
| 48 |
+
'int',
|
| 49 |
+
'int1',
|
| 50 |
+
'int2',
|
| 51 |
+
'int3',
|
| 52 |
+
'int4',
|
| 53 |
+
'int8',
|
| 54 |
+
'integer',
|
| 55 |
+
'mediumint',
|
| 56 |
+
'middleint',
|
| 57 |
+
'numeric',
|
| 58 |
+
'precision',
|
| 59 |
+
'real',
|
| 60 |
+
'serial',
|
| 61 |
+
'smallint',
|
| 62 |
+
'tinyint',
|
| 63 |
+
|
| 64 |
+
# Date and time data types
|
| 65 |
+
'date',
|
| 66 |
+
'datetime',
|
| 67 |
+
'time',
|
| 68 |
+
'timestamp',
|
| 69 |
+
'year',
|
| 70 |
+
|
| 71 |
+
# String data types
|
| 72 |
+
'binary',
|
| 73 |
+
'blob',
|
| 74 |
+
'char',
|
| 75 |
+
'enum',
|
| 76 |
+
'long',
|
| 77 |
+
'longblob',
|
| 78 |
+
'longtext',
|
| 79 |
+
'mediumblob',
|
| 80 |
+
'mediumtext',
|
| 81 |
+
'national',
|
| 82 |
+
'nchar',
|
| 83 |
+
'nvarchar',
|
| 84 |
+
'set',
|
| 85 |
+
'text',
|
| 86 |
+
'tinyblob',
|
| 87 |
+
'tinytext',
|
| 88 |
+
'varbinary',
|
| 89 |
+
'varchar',
|
| 90 |
+
'varcharacter',
|
| 91 |
+
'varying',
|
| 92 |
+
|
| 93 |
+
# Spatial data types
|
| 94 |
+
'geometry',
|
| 95 |
+
'geometrycollection',
|
| 96 |
+
'linestring',
|
| 97 |
+
'multilinestring',
|
| 98 |
+
'multipoint',
|
| 99 |
+
'multipolygon',
|
| 100 |
+
'point',
|
| 101 |
+
'polygon',
|
| 102 |
+
|
| 103 |
+
# JSON data types
|
| 104 |
+
'json',
|
| 105 |
+
)
|
| 106 |
+
|
| 107 |
+
# Everything below this line is auto-generated from the MySQL source code.
|
| 108 |
+
# Run this file in Python and it will update itself.
|
| 109 |
+
# -----------------------------------------------------------------------------
|
| 110 |
+
|
| 111 |
+
MYSQL_FUNCTIONS = (
|
| 112 |
+
'abs',
|
| 113 |
+
'acos',
|
| 114 |
+
'adddate',
|
| 115 |
+
'addtime',
|
| 116 |
+
'aes_decrypt',
|
| 117 |
+
'aes_encrypt',
|
| 118 |
+
'any_value',
|
| 119 |
+
'asin',
|
| 120 |
+
'atan',
|
| 121 |
+
'atan2',
|
| 122 |
+
'benchmark',
|
| 123 |
+
'bin',
|
| 124 |
+
'bin_to_uuid',
|
| 125 |
+
'bit_and',
|
| 126 |
+
'bit_count',
|
| 127 |
+
'bit_length',
|
| 128 |
+
'bit_or',
|
| 129 |
+
'bit_xor',
|
| 130 |
+
'can_access_column',
|
| 131 |
+
'can_access_database',
|
| 132 |
+
'can_access_event',
|
| 133 |
+
'can_access_resource_group',
|
| 134 |
+
'can_access_routine',
|
| 135 |
+
'can_access_table',
|
| 136 |
+
'can_access_trigger',
|
| 137 |
+
'can_access_user',
|
| 138 |
+
'can_access_view',
|
| 139 |
+
'cast',
|
| 140 |
+
'ceil',
|
| 141 |
+
'ceiling',
|
| 142 |
+
'char_length',
|
| 143 |
+
'character_length',
|
| 144 |
+
'coercibility',
|
| 145 |
+
'compress',
|
| 146 |
+
'concat',
|
| 147 |
+
'concat_ws',
|
| 148 |
+
'connection_id',
|
| 149 |
+
'conv',
|
| 150 |
+
'convert_cpu_id_mask',
|
| 151 |
+
'convert_interval_to_user_interval',
|
| 152 |
+
'convert_tz',
|
| 153 |
+
'cos',
|
| 154 |
+
'cot',
|
| 155 |
+
'count',
|
| 156 |
+
'crc32',
|
| 157 |
+
'curdate',
|
| 158 |
+
'current_role',
|
| 159 |
+
'curtime',
|
| 160 |
+
'date_add',
|
| 161 |
+
'date_format',
|
| 162 |
+
'date_sub',
|
| 163 |
+
'datediff',
|
| 164 |
+
'dayname',
|
| 165 |
+
'dayofmonth',
|
| 166 |
+
'dayofweek',
|
| 167 |
+
'dayofyear',
|
| 168 |
+
'degrees',
|
| 169 |
+
'elt',
|
| 170 |
+
'exp',
|
| 171 |
+
'export_set',
|
| 172 |
+
'extract',
|
| 173 |
+
'extractvalue',
|
| 174 |
+
'field',
|
| 175 |
+
'find_in_set',
|
| 176 |
+
'floor',
|
| 177 |
+
'format_bytes',
|
| 178 |
+
'format_pico_time',
|
| 179 |
+
'found_rows',
|
| 180 |
+
'from_base64',
|
| 181 |
+
'from_days',
|
| 182 |
+
'from_unixtime',
|
| 183 |
+
'get_dd_column_privileges',
|
| 184 |
+
'get_dd_create_options',
|
| 185 |
+
'get_dd_index_private_data',
|
| 186 |
+
'get_dd_index_sub_part_length',
|
| 187 |
+
'get_dd_property_key_value',
|
| 188 |
+
'get_dd_schema_options',
|
| 189 |
+
'get_dd_tablespace_private_data',
|
| 190 |
+
'get_lock',
|
| 191 |
+
'greatest',
|
| 192 |
+
'group_concat',
|
| 193 |
+
'gtid_subset',
|
| 194 |
+
'gtid_subtract',
|
| 195 |
+
'hex',
|
| 196 |
+
'icu_version',
|
| 197 |
+
'ifnull',
|
| 198 |
+
'inet6_aton',
|
| 199 |
+
'inet6_ntoa',
|
| 200 |
+
'inet_aton',
|
| 201 |
+
'inet_ntoa',
|
| 202 |
+
'instr',
|
| 203 |
+
'internal_auto_increment',
|
| 204 |
+
'internal_avg_row_length',
|
| 205 |
+
'internal_check_time',
|
| 206 |
+
'internal_checksum',
|
| 207 |
+
'internal_data_free',
|
| 208 |
+
'internal_data_length',
|
| 209 |
+
'internal_dd_char_length',
|
| 210 |
+
'internal_get_comment_or_error',
|
| 211 |
+
'internal_get_dd_column_extra',
|
| 212 |
+
'internal_get_enabled_role_json',
|
| 213 |
+
'internal_get_hostname',
|
| 214 |
+
'internal_get_mandatory_roles_json',
|
| 215 |
+
'internal_get_partition_nodegroup',
|
| 216 |
+
'internal_get_username',
|
| 217 |
+
'internal_get_view_warning_or_error',
|
| 218 |
+
'internal_index_column_cardinality',
|
| 219 |
+
'internal_index_length',
|
| 220 |
+
'internal_is_enabled_role',
|
| 221 |
+
'internal_is_mandatory_role',
|
| 222 |
+
'internal_keys_disabled',
|
| 223 |
+
'internal_max_data_length',
|
| 224 |
+
'internal_table_rows',
|
| 225 |
+
'internal_tablespace_autoextend_size',
|
| 226 |
+
'internal_tablespace_data_free',
|
| 227 |
+
'internal_tablespace_extent_size',
|
| 228 |
+
'internal_tablespace_extra',
|
| 229 |
+
'internal_tablespace_free_extents',
|
| 230 |
+
'internal_tablespace_id',
|
| 231 |
+
'internal_tablespace_initial_size',
|
| 232 |
+
'internal_tablespace_logfile_group_name',
|
| 233 |
+
'internal_tablespace_logfile_group_number',
|
| 234 |
+
'internal_tablespace_maximum_size',
|
| 235 |
+
'internal_tablespace_row_format',
|
| 236 |
+
'internal_tablespace_status',
|
| 237 |
+
'internal_tablespace_total_extents',
|
| 238 |
+
'internal_tablespace_type',
|
| 239 |
+
'internal_tablespace_version',
|
| 240 |
+
'internal_update_time',
|
| 241 |
+
'is_free_lock',
|
| 242 |
+
'is_ipv4',
|
| 243 |
+
'is_ipv4_compat',
|
| 244 |
+
'is_ipv4_mapped',
|
| 245 |
+
'is_ipv6',
|
| 246 |
+
'is_used_lock',
|
| 247 |
+
'is_uuid',
|
| 248 |
+
'is_visible_dd_object',
|
| 249 |
+
'isnull',
|
| 250 |
+
'json_array',
|
| 251 |
+
'json_array_append',
|
| 252 |
+
'json_array_insert',
|
| 253 |
+
'json_arrayagg',
|
| 254 |
+
'json_contains',
|
| 255 |
+
'json_contains_path',
|
| 256 |
+
'json_depth',
|
| 257 |
+
'json_extract',
|
| 258 |
+
'json_insert',
|
| 259 |
+
'json_keys',
|
| 260 |
+
'json_length',
|
| 261 |
+
'json_merge',
|
| 262 |
+
'json_merge_patch',
|
| 263 |
+
'json_merge_preserve',
|
| 264 |
+
'json_object',
|
| 265 |
+
'json_objectagg',
|
| 266 |
+
'json_overlaps',
|
| 267 |
+
'json_pretty',
|
| 268 |
+
'json_quote',
|
| 269 |
+
'json_remove',
|
| 270 |
+
'json_replace',
|
| 271 |
+
'json_schema_valid',
|
| 272 |
+
'json_schema_validation_report',
|
| 273 |
+
'json_search',
|
| 274 |
+
'json_set',
|
| 275 |
+
'json_storage_free',
|
| 276 |
+
'json_storage_size',
|
| 277 |
+
'json_type',
|
| 278 |
+
'json_unquote',
|
| 279 |
+
'json_valid',
|
| 280 |
+
'last_day',
|
| 281 |
+
'last_insert_id',
|
| 282 |
+
'lcase',
|
| 283 |
+
'least',
|
| 284 |
+
'length',
|
| 285 |
+
'like_range_max',
|
| 286 |
+
'like_range_min',
|
| 287 |
+
'ln',
|
| 288 |
+
'load_file',
|
| 289 |
+
'locate',
|
| 290 |
+
'log',
|
| 291 |
+
'log10',
|
| 292 |
+
'log2',
|
| 293 |
+
'lower',
|
| 294 |
+
'lpad',
|
| 295 |
+
'ltrim',
|
| 296 |
+
'make_set',
|
| 297 |
+
'makedate',
|
| 298 |
+
'maketime',
|
| 299 |
+
'master_pos_wait',
|
| 300 |
+
'max',
|
| 301 |
+
'mbrcontains',
|
| 302 |
+
'mbrcoveredby',
|
| 303 |
+
'mbrcovers',
|
| 304 |
+
'mbrdisjoint',
|
| 305 |
+
'mbrequals',
|
| 306 |
+
'mbrintersects',
|
| 307 |
+
'mbroverlaps',
|
| 308 |
+
'mbrtouches',
|
| 309 |
+
'mbrwithin',
|
| 310 |
+
'md5',
|
| 311 |
+
'mid',
|
| 312 |
+
'min',
|
| 313 |
+
'monthname',
|
| 314 |
+
'name_const',
|
| 315 |
+
'now',
|
| 316 |
+
'nullif',
|
| 317 |
+
'oct',
|
| 318 |
+
'octet_length',
|
| 319 |
+
'ord',
|
| 320 |
+
'period_add',
|
| 321 |
+
'period_diff',
|
| 322 |
+
'pi',
|
| 323 |
+
'position',
|
| 324 |
+
'pow',
|
| 325 |
+
'power',
|
| 326 |
+
'ps_current_thread_id',
|
| 327 |
+
'ps_thread_id',
|
| 328 |
+
'quote',
|
| 329 |
+
'radians',
|
| 330 |
+
'rand',
|
| 331 |
+
'random_bytes',
|
| 332 |
+
'regexp_instr',
|
| 333 |
+
'regexp_like',
|
| 334 |
+
'regexp_replace',
|
| 335 |
+
'regexp_substr',
|
| 336 |
+
'release_all_locks',
|
| 337 |
+
'release_lock',
|
| 338 |
+
'remove_dd_property_key',
|
| 339 |
+
'reverse',
|
| 340 |
+
'roles_graphml',
|
| 341 |
+
'round',
|
| 342 |
+
'rpad',
|
| 343 |
+
'rtrim',
|
| 344 |
+
'sec_to_time',
|
| 345 |
+
'session_user',
|
| 346 |
+
'sha',
|
| 347 |
+
'sha1',
|
| 348 |
+
'sha2',
|
| 349 |
+
'sign',
|
| 350 |
+
'sin',
|
| 351 |
+
'sleep',
|
| 352 |
+
'soundex',
|
| 353 |
+
'source_pos_wait',
|
| 354 |
+
'space',
|
| 355 |
+
'sqrt',
|
| 356 |
+
'st_area',
|
| 357 |
+
'st_asbinary',
|
| 358 |
+
'st_asgeojson',
|
| 359 |
+
'st_astext',
|
| 360 |
+
'st_aswkb',
|
| 361 |
+
'st_aswkt',
|
| 362 |
+
'st_buffer',
|
| 363 |
+
'st_buffer_strategy',
|
| 364 |
+
'st_centroid',
|
| 365 |
+
'st_collect',
|
| 366 |
+
'st_contains',
|
| 367 |
+
'st_convexhull',
|
| 368 |
+
'st_crosses',
|
| 369 |
+
'st_difference',
|
| 370 |
+
'st_dimension',
|
| 371 |
+
'st_disjoint',
|
| 372 |
+
'st_distance',
|
| 373 |
+
'st_distance_sphere',
|
| 374 |
+
'st_endpoint',
|
| 375 |
+
'st_envelope',
|
| 376 |
+
'st_equals',
|
| 377 |
+
'st_exteriorring',
|
| 378 |
+
'st_frechetdistance',
|
| 379 |
+
'st_geohash',
|
| 380 |
+
'st_geomcollfromtext',
|
| 381 |
+
'st_geomcollfromtxt',
|
| 382 |
+
'st_geomcollfromwkb',
|
| 383 |
+
'st_geometrycollectionfromtext',
|
| 384 |
+
'st_geometrycollectionfromwkb',
|
| 385 |
+
'st_geometryfromtext',
|
| 386 |
+
'st_geometryfromwkb',
|
| 387 |
+
'st_geometryn',
|
| 388 |
+
'st_geometrytype',
|
| 389 |
+
'st_geomfromgeojson',
|
| 390 |
+
'st_geomfromtext',
|
| 391 |
+
'st_geomfromwkb',
|
| 392 |
+
'st_hausdorffdistance',
|
| 393 |
+
'st_interiorringn',
|
| 394 |
+
'st_intersection',
|
| 395 |
+
'st_intersects',
|
| 396 |
+
'st_isclosed',
|
| 397 |
+
'st_isempty',
|
| 398 |
+
'st_issimple',
|
| 399 |
+
'st_isvalid',
|
| 400 |
+
'st_latfromgeohash',
|
| 401 |
+
'st_latitude',
|
| 402 |
+
'st_length',
|
| 403 |
+
'st_linefromtext',
|
| 404 |
+
'st_linefromwkb',
|
| 405 |
+
'st_lineinterpolatepoint',
|
| 406 |
+
'st_lineinterpolatepoints',
|
| 407 |
+
'st_linestringfromtext',
|
| 408 |
+
'st_linestringfromwkb',
|
| 409 |
+
'st_longfromgeohash',
|
| 410 |
+
'st_longitude',
|
| 411 |
+
'st_makeenvelope',
|
| 412 |
+
'st_mlinefromtext',
|
| 413 |
+
'st_mlinefromwkb',
|
| 414 |
+
'st_mpointfromtext',
|
| 415 |
+
'st_mpointfromwkb',
|
| 416 |
+
'st_mpolyfromtext',
|
| 417 |
+
'st_mpolyfromwkb',
|
| 418 |
+
'st_multilinestringfromtext',
|
| 419 |
+
'st_multilinestringfromwkb',
|
| 420 |
+
'st_multipointfromtext',
|
| 421 |
+
'st_multipointfromwkb',
|
| 422 |
+
'st_multipolygonfromtext',
|
| 423 |
+
'st_multipolygonfromwkb',
|
| 424 |
+
'st_numgeometries',
|
| 425 |
+
'st_numinteriorring',
|
| 426 |
+
'st_numinteriorrings',
|
| 427 |
+
'st_numpoints',
|
| 428 |
+
'st_overlaps',
|
| 429 |
+
'st_pointatdistance',
|
| 430 |
+
'st_pointfromgeohash',
|
| 431 |
+
'st_pointfromtext',
|
| 432 |
+
'st_pointfromwkb',
|
| 433 |
+
'st_pointn',
|
| 434 |
+
'st_polyfromtext',
|
| 435 |
+
'st_polyfromwkb',
|
| 436 |
+
'st_polygonfromtext',
|
| 437 |
+
'st_polygonfromwkb',
|
| 438 |
+
'st_simplify',
|
| 439 |
+
'st_srid',
|
| 440 |
+
'st_startpoint',
|
| 441 |
+
'st_swapxy',
|
| 442 |
+
'st_symdifference',
|
| 443 |
+
'st_touches',
|
| 444 |
+
'st_transform',
|
| 445 |
+
'st_union',
|
| 446 |
+
'st_validate',
|
| 447 |
+
'st_within',
|
| 448 |
+
'st_x',
|
| 449 |
+
'st_y',
|
| 450 |
+
'statement_digest',
|
| 451 |
+
'statement_digest_text',
|
| 452 |
+
'std',
|
| 453 |
+
'stddev',
|
| 454 |
+
'stddev_pop',
|
| 455 |
+
'stddev_samp',
|
| 456 |
+
'str_to_date',
|
| 457 |
+
'strcmp',
|
| 458 |
+
'subdate',
|
| 459 |
+
'substr',
|
| 460 |
+
'substring',
|
| 461 |
+
'substring_index',
|
| 462 |
+
'subtime',
|
| 463 |
+
'sum',
|
| 464 |
+
'sysdate',
|
| 465 |
+
'system_user',
|
| 466 |
+
'tan',
|
| 467 |
+
'time_format',
|
| 468 |
+
'time_to_sec',
|
| 469 |
+
'timediff',
|
| 470 |
+
'to_base64',
|
| 471 |
+
'to_days',
|
| 472 |
+
'to_seconds',
|
| 473 |
+
'trim',
|
| 474 |
+
'ucase',
|
| 475 |
+
'uncompress',
|
| 476 |
+
'uncompressed_length',
|
| 477 |
+
'unhex',
|
| 478 |
+
'unix_timestamp',
|
| 479 |
+
'updatexml',
|
| 480 |
+
'upper',
|
| 481 |
+
'uuid',
|
| 482 |
+
'uuid_short',
|
| 483 |
+
'uuid_to_bin',
|
| 484 |
+
'validate_password_strength',
|
| 485 |
+
'var_pop',
|
| 486 |
+
'var_samp',
|
| 487 |
+
'variance',
|
| 488 |
+
'version',
|
| 489 |
+
'wait_for_executed_gtid_set',
|
| 490 |
+
'wait_until_sql_thread_after_gtids',
|
| 491 |
+
'weekday',
|
| 492 |
+
'weekofyear',
|
| 493 |
+
'yearweek',
|
| 494 |
+
)
|
| 495 |
+
|
| 496 |
+
|
| 497 |
+
MYSQL_OPTIMIZER_HINTS = (
|
| 498 |
+
'bka',
|
| 499 |
+
'bnl',
|
| 500 |
+
'derived_condition_pushdown',
|
| 501 |
+
'dupsweedout',
|
| 502 |
+
'firstmatch',
|
| 503 |
+
'group_index',
|
| 504 |
+
'hash_join',
|
| 505 |
+
'index',
|
| 506 |
+
'index_merge',
|
| 507 |
+
'intoexists',
|
| 508 |
+
'join_fixed_order',
|
| 509 |
+
'join_index',
|
| 510 |
+
'join_order',
|
| 511 |
+
'join_prefix',
|
| 512 |
+
'join_suffix',
|
| 513 |
+
'loosescan',
|
| 514 |
+
'materialization',
|
| 515 |
+
'max_execution_time',
|
| 516 |
+
'merge',
|
| 517 |
+
'mrr',
|
| 518 |
+
'no_bka',
|
| 519 |
+
'no_bnl',
|
| 520 |
+
'no_derived_condition_pushdown',
|
| 521 |
+
'no_group_index',
|
| 522 |
+
'no_hash_join',
|
| 523 |
+
'no_icp',
|
| 524 |
+
'no_index',
|
| 525 |
+
'no_index_merge',
|
| 526 |
+
'no_join_index',
|
| 527 |
+
'no_merge',
|
| 528 |
+
'no_mrr',
|
| 529 |
+
'no_order_index',
|
| 530 |
+
'no_range_optimization',
|
| 531 |
+
'no_semijoin',
|
| 532 |
+
'no_skip_scan',
|
| 533 |
+
'order_index',
|
| 534 |
+
'qb_name',
|
| 535 |
+
'resource_group',
|
| 536 |
+
'semijoin',
|
| 537 |
+
'set_var',
|
| 538 |
+
'skip_scan',
|
| 539 |
+
'subquery',
|
| 540 |
+
)
|
| 541 |
+
|
| 542 |
+
|
| 543 |
+
MYSQL_KEYWORDS = (
|
| 544 |
+
'accessible',
|
| 545 |
+
'account',
|
| 546 |
+
'action',
|
| 547 |
+
'active',
|
| 548 |
+
'add',
|
| 549 |
+
'admin',
|
| 550 |
+
'after',
|
| 551 |
+
'against',
|
| 552 |
+
'aggregate',
|
| 553 |
+
'algorithm',
|
| 554 |
+
'all',
|
| 555 |
+
'alter',
|
| 556 |
+
'always',
|
| 557 |
+
'analyze',
|
| 558 |
+
'and',
|
| 559 |
+
'any',
|
| 560 |
+
'array',
|
| 561 |
+
'as',
|
| 562 |
+
'asc',
|
| 563 |
+
'ascii',
|
| 564 |
+
'asensitive',
|
| 565 |
+
'assign_gtids_to_anonymous_transactions',
|
| 566 |
+
'at',
|
| 567 |
+
'attribute',
|
| 568 |
+
'authentication',
|
| 569 |
+
'auto_increment',
|
| 570 |
+
'autoextend_size',
|
| 571 |
+
'avg',
|
| 572 |
+
'avg_row_length',
|
| 573 |
+
'backup',
|
| 574 |
+
'before',
|
| 575 |
+
'begin',
|
| 576 |
+
'between',
|
| 577 |
+
'binlog',
|
| 578 |
+
'block',
|
| 579 |
+
'both',
|
| 580 |
+
'btree',
|
| 581 |
+
'buckets',
|
| 582 |
+
'by',
|
| 583 |
+
'byte',
|
| 584 |
+
'cache',
|
| 585 |
+
'call',
|
| 586 |
+
'cascade',
|
| 587 |
+
'cascaded',
|
| 588 |
+
'case',
|
| 589 |
+
'catalog_name',
|
| 590 |
+
'chain',
|
| 591 |
+
'challenge_response',
|
| 592 |
+
'change',
|
| 593 |
+
'changed',
|
| 594 |
+
'channel',
|
| 595 |
+
'character',
|
| 596 |
+
'charset',
|
| 597 |
+
'check',
|
| 598 |
+
'checksum',
|
| 599 |
+
'cipher',
|
| 600 |
+
'class_origin',
|
| 601 |
+
'client',
|
| 602 |
+
'clone',
|
| 603 |
+
'close',
|
| 604 |
+
'coalesce',
|
| 605 |
+
'code',
|
| 606 |
+
'collate',
|
| 607 |
+
'collation',
|
| 608 |
+
'column',
|
| 609 |
+
'column_format',
|
| 610 |
+
'column_name',
|
| 611 |
+
'columns',
|
| 612 |
+
'comment',
|
| 613 |
+
'commit',
|
| 614 |
+
'committed',
|
| 615 |
+
'compact',
|
| 616 |
+
'completion',
|
| 617 |
+
'component',
|
| 618 |
+
'compressed',
|
| 619 |
+
'compression',
|
| 620 |
+
'concurrent',
|
| 621 |
+
'condition',
|
| 622 |
+
'connection',
|
| 623 |
+
'consistent',
|
| 624 |
+
'constraint',
|
| 625 |
+
'constraint_catalog',
|
| 626 |
+
'constraint_name',
|
| 627 |
+
'constraint_schema',
|
| 628 |
+
'contains',
|
| 629 |
+
'context',
|
| 630 |
+
'continue',
|
| 631 |
+
'convert',
|
| 632 |
+
'cpu',
|
| 633 |
+
'create',
|
| 634 |
+
'cross',
|
| 635 |
+
'cube',
|
| 636 |
+
'cume_dist',
|
| 637 |
+
'current',
|
| 638 |
+
'current_date',
|
| 639 |
+
'current_time',
|
| 640 |
+
'current_timestamp',
|
| 641 |
+
'current_user',
|
| 642 |
+
'cursor',
|
| 643 |
+
'cursor_name',
|
| 644 |
+
'data',
|
| 645 |
+
'database',
|
| 646 |
+
'databases',
|
| 647 |
+
'datafile',
|
| 648 |
+
'day',
|
| 649 |
+
'day_hour',
|
| 650 |
+
'day_microsecond',
|
| 651 |
+
'day_minute',
|
| 652 |
+
'day_second',
|
| 653 |
+
'deallocate',
|
| 654 |
+
'declare',
|
| 655 |
+
'default',
|
| 656 |
+
'default_auth',
|
| 657 |
+
'definer',
|
| 658 |
+
'definition',
|
| 659 |
+
'delay_key_write',
|
| 660 |
+
'delayed',
|
| 661 |
+
'delete',
|
| 662 |
+
'dense_rank',
|
| 663 |
+
'desc',
|
| 664 |
+
'describe',
|
| 665 |
+
'description',
|
| 666 |
+
'deterministic',
|
| 667 |
+
'diagnostics',
|
| 668 |
+
'directory',
|
| 669 |
+
'disable',
|
| 670 |
+
'discard',
|
| 671 |
+
'disk',
|
| 672 |
+
'distinct',
|
| 673 |
+
'distinctrow',
|
| 674 |
+
'div',
|
| 675 |
+
'do',
|
| 676 |
+
'drop',
|
| 677 |
+
'dual',
|
| 678 |
+
'dumpfile',
|
| 679 |
+
'duplicate',
|
| 680 |
+
'dynamic',
|
| 681 |
+
'each',
|
| 682 |
+
'else',
|
| 683 |
+
'elseif',
|
| 684 |
+
'empty',
|
| 685 |
+
'enable',
|
| 686 |
+
'enclosed',
|
| 687 |
+
'encryption',
|
| 688 |
+
'end',
|
| 689 |
+
'ends',
|
| 690 |
+
'enforced',
|
| 691 |
+
'engine',
|
| 692 |
+
'engine_attribute',
|
| 693 |
+
'engines',
|
| 694 |
+
'error',
|
| 695 |
+
'errors',
|
| 696 |
+
'escape',
|
| 697 |
+
'escaped',
|
| 698 |
+
'event',
|
| 699 |
+
'events',
|
| 700 |
+
'every',
|
| 701 |
+
'except',
|
| 702 |
+
'exchange',
|
| 703 |
+
'exclude',
|
| 704 |
+
'execute',
|
| 705 |
+
'exists',
|
| 706 |
+
'exit',
|
| 707 |
+
'expansion',
|
| 708 |
+
'expire',
|
| 709 |
+
'explain',
|
| 710 |
+
'export',
|
| 711 |
+
'extended',
|
| 712 |
+
'extent_size',
|
| 713 |
+
'factor',
|
| 714 |
+
'failed_login_attempts',
|
| 715 |
+
'false',
|
| 716 |
+
'fast',
|
| 717 |
+
'faults',
|
| 718 |
+
'fetch',
|
| 719 |
+
'fields',
|
| 720 |
+
'file',
|
| 721 |
+
'file_block_size',
|
| 722 |
+
'filter',
|
| 723 |
+
'finish',
|
| 724 |
+
'first',
|
| 725 |
+
'first_value',
|
| 726 |
+
'flush',
|
| 727 |
+
'following',
|
| 728 |
+
'follows',
|
| 729 |
+
'for',
|
| 730 |
+
'force',
|
| 731 |
+
'foreign',
|
| 732 |
+
'format',
|
| 733 |
+
'found',
|
| 734 |
+
'from',
|
| 735 |
+
'full',
|
| 736 |
+
'fulltext',
|
| 737 |
+
'function',
|
| 738 |
+
'general',
|
| 739 |
+
'generated',
|
| 740 |
+
'geomcollection',
|
| 741 |
+
'get',
|
| 742 |
+
'get_format',
|
| 743 |
+
'get_master_public_key',
|
| 744 |
+
'get_source_public_key',
|
| 745 |
+
'global',
|
| 746 |
+
'grant',
|
| 747 |
+
'grants',
|
| 748 |
+
'group',
|
| 749 |
+
'group_replication',
|
| 750 |
+
'grouping',
|
| 751 |
+
'groups',
|
| 752 |
+
'gtid_only',
|
| 753 |
+
'handler',
|
| 754 |
+
'hash',
|
| 755 |
+
'having',
|
| 756 |
+
'help',
|
| 757 |
+
'high_priority',
|
| 758 |
+
'histogram',
|
| 759 |
+
'history',
|
| 760 |
+
'host',
|
| 761 |
+
'hosts',
|
| 762 |
+
'hour',
|
| 763 |
+
'hour_microsecond',
|
| 764 |
+
'hour_minute',
|
| 765 |
+
'hour_second',
|
| 766 |
+
'identified',
|
| 767 |
+
'if',
|
| 768 |
+
'ignore',
|
| 769 |
+
'ignore_server_ids',
|
| 770 |
+
'import',
|
| 771 |
+
'in',
|
| 772 |
+
'inactive',
|
| 773 |
+
'index',
|
| 774 |
+
'indexes',
|
| 775 |
+
'infile',
|
| 776 |
+
'initial',
|
| 777 |
+
'initial_size',
|
| 778 |
+
'initiate',
|
| 779 |
+
'inner',
|
| 780 |
+
'inout',
|
| 781 |
+
'insensitive',
|
| 782 |
+
'insert',
|
| 783 |
+
'insert_method',
|
| 784 |
+
'install',
|
| 785 |
+
'instance',
|
| 786 |
+
'interval',
|
| 787 |
+
'into',
|
| 788 |
+
'invisible',
|
| 789 |
+
'invoker',
|
| 790 |
+
'io',
|
| 791 |
+
'io_after_gtids',
|
| 792 |
+
'io_before_gtids',
|
| 793 |
+
'io_thread',
|
| 794 |
+
'ipc',
|
| 795 |
+
'is',
|
| 796 |
+
'isolation',
|
| 797 |
+
'issuer',
|
| 798 |
+
'iterate',
|
| 799 |
+
'join',
|
| 800 |
+
'json_table',
|
| 801 |
+
'json_value',
|
| 802 |
+
'key',
|
| 803 |
+
'key_block_size',
|
| 804 |
+
'keyring',
|
| 805 |
+
'keys',
|
| 806 |
+
'kill',
|
| 807 |
+
'lag',
|
| 808 |
+
'language',
|
| 809 |
+
'last',
|
| 810 |
+
'last_value',
|
| 811 |
+
'lateral',
|
| 812 |
+
'lead',
|
| 813 |
+
'leading',
|
| 814 |
+
'leave',
|
| 815 |
+
'leaves',
|
| 816 |
+
'left',
|
| 817 |
+
'less',
|
| 818 |
+
'level',
|
| 819 |
+
'like',
|
| 820 |
+
'limit',
|
| 821 |
+
'linear',
|
| 822 |
+
'lines',
|
| 823 |
+
'list',
|
| 824 |
+
'load',
|
| 825 |
+
'local',
|
| 826 |
+
'localtime',
|
| 827 |
+
'localtimestamp',
|
| 828 |
+
'lock',
|
| 829 |
+
'locked',
|
| 830 |
+
'locks',
|
| 831 |
+
'logfile',
|
| 832 |
+
'logs',
|
| 833 |
+
'loop',
|
| 834 |
+
'low_priority',
|
| 835 |
+
'master',
|
| 836 |
+
'master_auto_position',
|
| 837 |
+
'master_bind',
|
| 838 |
+
'master_compression_algorithms',
|
| 839 |
+
'master_connect_retry',
|
| 840 |
+
'master_delay',
|
| 841 |
+
'master_heartbeat_period',
|
| 842 |
+
'master_host',
|
| 843 |
+
'master_log_file',
|
| 844 |
+
'master_log_pos',
|
| 845 |
+
'master_password',
|
| 846 |
+
'master_port',
|
| 847 |
+
'master_public_key_path',
|
| 848 |
+
'master_retry_count',
|
| 849 |
+
'master_ssl',
|
| 850 |
+
'master_ssl_ca',
|
| 851 |
+
'master_ssl_capath',
|
| 852 |
+
'master_ssl_cert',
|
| 853 |
+
'master_ssl_cipher',
|
| 854 |
+
'master_ssl_crl',
|
| 855 |
+
'master_ssl_crlpath',
|
| 856 |
+
'master_ssl_key',
|
| 857 |
+
'master_ssl_verify_server_cert',
|
| 858 |
+
'master_tls_ciphersuites',
|
| 859 |
+
'master_tls_version',
|
| 860 |
+
'master_user',
|
| 861 |
+
'master_zstd_compression_level',
|
| 862 |
+
'match',
|
| 863 |
+
'max_connections_per_hour',
|
| 864 |
+
'max_queries_per_hour',
|
| 865 |
+
'max_rows',
|
| 866 |
+
'max_size',
|
| 867 |
+
'max_updates_per_hour',
|
| 868 |
+
'max_user_connections',
|
| 869 |
+
'maxvalue',
|
| 870 |
+
'medium',
|
| 871 |
+
'member',
|
| 872 |
+
'memory',
|
| 873 |
+
'merge',
|
| 874 |
+
'message_text',
|
| 875 |
+
'microsecond',
|
| 876 |
+
'migrate',
|
| 877 |
+
'min_rows',
|
| 878 |
+
'minute',
|
| 879 |
+
'minute_microsecond',
|
| 880 |
+
'minute_second',
|
| 881 |
+
'mod',
|
| 882 |
+
'mode',
|
| 883 |
+
'modifies',
|
| 884 |
+
'modify',
|
| 885 |
+
'month',
|
| 886 |
+
'mutex',
|
| 887 |
+
'mysql_errno',
|
| 888 |
+
'name',
|
| 889 |
+
'names',
|
| 890 |
+
'natural',
|
| 891 |
+
'ndb',
|
| 892 |
+
'ndbcluster',
|
| 893 |
+
'nested',
|
| 894 |
+
'network_namespace',
|
| 895 |
+
'never',
|
| 896 |
+
'new',
|
| 897 |
+
'next',
|
| 898 |
+
'no',
|
| 899 |
+
'no_wait',
|
| 900 |
+
'no_write_to_binlog',
|
| 901 |
+
'nodegroup',
|
| 902 |
+
'none',
|
| 903 |
+
'not',
|
| 904 |
+
'nowait',
|
| 905 |
+
'nth_value',
|
| 906 |
+
'ntile',
|
| 907 |
+
'null',
|
| 908 |
+
'nulls',
|
| 909 |
+
'number',
|
| 910 |
+
'of',
|
| 911 |
+
'off',
|
| 912 |
+
'offset',
|
| 913 |
+
'oj',
|
| 914 |
+
'old',
|
| 915 |
+
'on',
|
| 916 |
+
'one',
|
| 917 |
+
'only',
|
| 918 |
+
'open',
|
| 919 |
+
'optimize',
|
| 920 |
+
'optimizer_costs',
|
| 921 |
+
'option',
|
| 922 |
+
'optional',
|
| 923 |
+
'optionally',
|
| 924 |
+
'options',
|
| 925 |
+
'or',
|
| 926 |
+
'order',
|
| 927 |
+
'ordinality',
|
| 928 |
+
'organization',
|
| 929 |
+
'others',
|
| 930 |
+
'out',
|
| 931 |
+
'outer',
|
| 932 |
+
'outfile',
|
| 933 |
+
'over',
|
| 934 |
+
'owner',
|
| 935 |
+
'pack_keys',
|
| 936 |
+
'page',
|
| 937 |
+
'parser',
|
| 938 |
+
'partial',
|
| 939 |
+
'partition',
|
| 940 |
+
'partitioning',
|
| 941 |
+
'partitions',
|
| 942 |
+
'password',
|
| 943 |
+
'password_lock_time',
|
| 944 |
+
'path',
|
| 945 |
+
'percent_rank',
|
| 946 |
+
'persist',
|
| 947 |
+
'persist_only',
|
| 948 |
+
'phase',
|
| 949 |
+
'plugin',
|
| 950 |
+
'plugin_dir',
|
| 951 |
+
'plugins',
|
| 952 |
+
'port',
|
| 953 |
+
'precedes',
|
| 954 |
+
'preceding',
|
| 955 |
+
'prepare',
|
| 956 |
+
'preserve',
|
| 957 |
+
'prev',
|
| 958 |
+
'primary',
|
| 959 |
+
'privilege_checks_user',
|
| 960 |
+
'privileges',
|
| 961 |
+
'procedure',
|
| 962 |
+
'process',
|
| 963 |
+
'processlist',
|
| 964 |
+
'profile',
|
| 965 |
+
'profiles',
|
| 966 |
+
'proxy',
|
| 967 |
+
'purge',
|
| 968 |
+
'quarter',
|
| 969 |
+
'query',
|
| 970 |
+
'quick',
|
| 971 |
+
'random',
|
| 972 |
+
'range',
|
| 973 |
+
'rank',
|
| 974 |
+
'read',
|
| 975 |
+
'read_only',
|
| 976 |
+
'read_write',
|
| 977 |
+
'reads',
|
| 978 |
+
'rebuild',
|
| 979 |
+
'recover',
|
| 980 |
+
'recursive',
|
| 981 |
+
'redo_buffer_size',
|
| 982 |
+
'redundant',
|
| 983 |
+
'reference',
|
| 984 |
+
'references',
|
| 985 |
+
'regexp',
|
| 986 |
+
'registration',
|
| 987 |
+
'relay',
|
| 988 |
+
'relay_log_file',
|
| 989 |
+
'relay_log_pos',
|
| 990 |
+
'relay_thread',
|
| 991 |
+
'relaylog',
|
| 992 |
+
'release',
|
| 993 |
+
'reload',
|
| 994 |
+
'remove',
|
| 995 |
+
'rename',
|
| 996 |
+
'reorganize',
|
| 997 |
+
'repair',
|
| 998 |
+
'repeat',
|
| 999 |
+
'repeatable',
|
| 1000 |
+
'replace',
|
| 1001 |
+
'replica',
|
| 1002 |
+
'replicas',
|
| 1003 |
+
'replicate_do_db',
|
| 1004 |
+
'replicate_do_table',
|
| 1005 |
+
'replicate_ignore_db',
|
| 1006 |
+
'replicate_ignore_table',
|
| 1007 |
+
'replicate_rewrite_db',
|
| 1008 |
+
'replicate_wild_do_table',
|
| 1009 |
+
'replicate_wild_ignore_table',
|
| 1010 |
+
'replication',
|
| 1011 |
+
'require',
|
| 1012 |
+
'require_row_format',
|
| 1013 |
+
'require_table_primary_key_check',
|
| 1014 |
+
'reset',
|
| 1015 |
+
'resignal',
|
| 1016 |
+
'resource',
|
| 1017 |
+
'respect',
|
| 1018 |
+
'restart',
|
| 1019 |
+
'restore',
|
| 1020 |
+
'restrict',
|
| 1021 |
+
'resume',
|
| 1022 |
+
'retain',
|
| 1023 |
+
'return',
|
| 1024 |
+
'returned_sqlstate',
|
| 1025 |
+
'returning',
|
| 1026 |
+
'returns',
|
| 1027 |
+
'reuse',
|
| 1028 |
+
'reverse',
|
| 1029 |
+
'revoke',
|
| 1030 |
+
'right',
|
| 1031 |
+
'rlike',
|
| 1032 |
+
'role',
|
| 1033 |
+
'rollback',
|
| 1034 |
+
'rollup',
|
| 1035 |
+
'rotate',
|
| 1036 |
+
'routine',
|
| 1037 |
+
'row',
|
| 1038 |
+
'row_count',
|
| 1039 |
+
'row_format',
|
| 1040 |
+
'row_number',
|
| 1041 |
+
'rows',
|
| 1042 |
+
'rtree',
|
| 1043 |
+
'savepoint',
|
| 1044 |
+
'schedule',
|
| 1045 |
+
'schema',
|
| 1046 |
+
'schema_name',
|
| 1047 |
+
'schemas',
|
| 1048 |
+
'second',
|
| 1049 |
+
'second_microsecond',
|
| 1050 |
+
'secondary',
|
| 1051 |
+
'secondary_engine',
|
| 1052 |
+
'secondary_engine_attribute',
|
| 1053 |
+
'secondary_load',
|
| 1054 |
+
'secondary_unload',
|
| 1055 |
+
'security',
|
| 1056 |
+
'select',
|
| 1057 |
+
'sensitive',
|
| 1058 |
+
'separator',
|
| 1059 |
+
'serializable',
|
| 1060 |
+
'server',
|
| 1061 |
+
'session',
|
| 1062 |
+
'share',
|
| 1063 |
+
'show',
|
| 1064 |
+
'shutdown',
|
| 1065 |
+
'signal',
|
| 1066 |
+
'signed',
|
| 1067 |
+
'simple',
|
| 1068 |
+
'skip',
|
| 1069 |
+
'slave',
|
| 1070 |
+
'slow',
|
| 1071 |
+
'snapshot',
|
| 1072 |
+
'socket',
|
| 1073 |
+
'some',
|
| 1074 |
+
'soname',
|
| 1075 |
+
'sounds',
|
| 1076 |
+
'source',
|
| 1077 |
+
'source_auto_position',
|
| 1078 |
+
'source_bind',
|
| 1079 |
+
'source_compression_algorithms',
|
| 1080 |
+
'source_connect_retry',
|
| 1081 |
+
'source_connection_auto_failover',
|
| 1082 |
+
'source_delay',
|
| 1083 |
+
'source_heartbeat_period',
|
| 1084 |
+
'source_host',
|
| 1085 |
+
'source_log_file',
|
| 1086 |
+
'source_log_pos',
|
| 1087 |
+
'source_password',
|
| 1088 |
+
'source_port',
|
| 1089 |
+
'source_public_key_path',
|
| 1090 |
+
'source_retry_count',
|
| 1091 |
+
'source_ssl',
|
| 1092 |
+
'source_ssl_ca',
|
| 1093 |
+
'source_ssl_capath',
|
| 1094 |
+
'source_ssl_cert',
|
| 1095 |
+
'source_ssl_cipher',
|
| 1096 |
+
'source_ssl_crl',
|
| 1097 |
+
'source_ssl_crlpath',
|
| 1098 |
+
'source_ssl_key',
|
| 1099 |
+
'source_ssl_verify_server_cert',
|
| 1100 |
+
'source_tls_ciphersuites',
|
| 1101 |
+
'source_tls_version',
|
| 1102 |
+
'source_user',
|
| 1103 |
+
'source_zstd_compression_level',
|
| 1104 |
+
'spatial',
|
| 1105 |
+
'specific',
|
| 1106 |
+
'sql',
|
| 1107 |
+
'sql_after_gtids',
|
| 1108 |
+
'sql_after_mts_gaps',
|
| 1109 |
+
'sql_before_gtids',
|
| 1110 |
+
'sql_big_result',
|
| 1111 |
+
'sql_buffer_result',
|
| 1112 |
+
'sql_calc_found_rows',
|
| 1113 |
+
'sql_no_cache',
|
| 1114 |
+
'sql_small_result',
|
| 1115 |
+
'sql_thread',
|
| 1116 |
+
'sql_tsi_day',
|
| 1117 |
+
'sql_tsi_hour',
|
| 1118 |
+
'sql_tsi_minute',
|
| 1119 |
+
'sql_tsi_month',
|
| 1120 |
+
'sql_tsi_quarter',
|
| 1121 |
+
'sql_tsi_second',
|
| 1122 |
+
'sql_tsi_week',
|
| 1123 |
+
'sql_tsi_year',
|
| 1124 |
+
'sqlexception',
|
| 1125 |
+
'sqlstate',
|
| 1126 |
+
'sqlwarning',
|
| 1127 |
+
'srid',
|
| 1128 |
+
'ssl',
|
| 1129 |
+
'stacked',
|
| 1130 |
+
'start',
|
| 1131 |
+
'starting',
|
| 1132 |
+
'starts',
|
| 1133 |
+
'stats_auto_recalc',
|
| 1134 |
+
'stats_persistent',
|
| 1135 |
+
'stats_sample_pages',
|
| 1136 |
+
'status',
|
| 1137 |
+
'stop',
|
| 1138 |
+
'storage',
|
| 1139 |
+
'stored',
|
| 1140 |
+
'straight_join',
|
| 1141 |
+
'stream',
|
| 1142 |
+
'string',
|
| 1143 |
+
'subclass_origin',
|
| 1144 |
+
'subject',
|
| 1145 |
+
'subpartition',
|
| 1146 |
+
'subpartitions',
|
| 1147 |
+
'super',
|
| 1148 |
+
'suspend',
|
| 1149 |
+
'swaps',
|
| 1150 |
+
'switches',
|
| 1151 |
+
'system',
|
| 1152 |
+
'table',
|
| 1153 |
+
'table_checksum',
|
| 1154 |
+
'table_name',
|
| 1155 |
+
'tables',
|
| 1156 |
+
'tablespace',
|
| 1157 |
+
'temporary',
|
| 1158 |
+
'temptable',
|
| 1159 |
+
'terminated',
|
| 1160 |
+
'than',
|
| 1161 |
+
'then',
|
| 1162 |
+
'thread_priority',
|
| 1163 |
+
'ties',
|
| 1164 |
+
'timestampadd',
|
| 1165 |
+
'timestampdiff',
|
| 1166 |
+
'tls',
|
| 1167 |
+
'to',
|
| 1168 |
+
'trailing',
|
| 1169 |
+
'transaction',
|
| 1170 |
+
'trigger',
|
| 1171 |
+
'triggers',
|
| 1172 |
+
'true',
|
| 1173 |
+
'truncate',
|
| 1174 |
+
'type',
|
| 1175 |
+
'types',
|
| 1176 |
+
'unbounded',
|
| 1177 |
+
'uncommitted',
|
| 1178 |
+
'undefined',
|
| 1179 |
+
'undo',
|
| 1180 |
+
'undo_buffer_size',
|
| 1181 |
+
'undofile',
|
| 1182 |
+
'unicode',
|
| 1183 |
+
'uninstall',
|
| 1184 |
+
'union',
|
| 1185 |
+
'unique',
|
| 1186 |
+
'unknown',
|
| 1187 |
+
'unlock',
|
| 1188 |
+
'unregister',
|
| 1189 |
+
'unsigned',
|
| 1190 |
+
'until',
|
| 1191 |
+
'update',
|
| 1192 |
+
'upgrade',
|
| 1193 |
+
'usage',
|
| 1194 |
+
'use',
|
| 1195 |
+
'use_frm',
|
| 1196 |
+
'user',
|
| 1197 |
+
'user_resources',
|
| 1198 |
+
'using',
|
| 1199 |
+
'utc_date',
|
| 1200 |
+
'utc_time',
|
| 1201 |
+
'utc_timestamp',
|
| 1202 |
+
'validation',
|
| 1203 |
+
'value',
|
| 1204 |
+
'values',
|
| 1205 |
+
'variables',
|
| 1206 |
+
'vcpu',
|
| 1207 |
+
'view',
|
| 1208 |
+
'virtual',
|
| 1209 |
+
'visible',
|
| 1210 |
+
'wait',
|
| 1211 |
+
'warnings',
|
| 1212 |
+
'week',
|
| 1213 |
+
'weight_string',
|
| 1214 |
+
'when',
|
| 1215 |
+
'where',
|
| 1216 |
+
'while',
|
| 1217 |
+
'window',
|
| 1218 |
+
'with',
|
| 1219 |
+
'without',
|
| 1220 |
+
'work',
|
| 1221 |
+
'wrapper',
|
| 1222 |
+
'write',
|
| 1223 |
+
'x509',
|
| 1224 |
+
'xa',
|
| 1225 |
+
'xid',
|
| 1226 |
+
'xml',
|
| 1227 |
+
'xor',
|
| 1228 |
+
'year_month',
|
| 1229 |
+
'zerofill',
|
| 1230 |
+
'zone',
|
| 1231 |
+
)
|
| 1232 |
+
|
| 1233 |
+
|
| 1234 |
+
if __name__ == '__main__': # pragma: no cover
|
| 1235 |
+
import re
|
| 1236 |
+
from urllib.request import urlopen
|
| 1237 |
+
|
| 1238 |
+
from pygments.util import format_lines
|
| 1239 |
+
|
| 1240 |
+
# MySQL source code
|
| 1241 |
+
SOURCE_URL = 'https://github.com/mysql/mysql-server/raw/8.0'
|
| 1242 |
+
LEX_URL = SOURCE_URL + '/sql/lex.h'
|
| 1243 |
+
ITEM_CREATE_URL = SOURCE_URL + '/sql/item_create.cc'
|
| 1244 |
+
|
| 1245 |
+
|
| 1246 |
+
def update_myself():
|
| 1247 |
+
# Pull content from lex.h.
|
| 1248 |
+
lex_file = urlopen(LEX_URL).read().decode('utf8', errors='ignore')
|
| 1249 |
+
keywords = parse_lex_keywords(lex_file)
|
| 1250 |
+
functions = parse_lex_functions(lex_file)
|
| 1251 |
+
optimizer_hints = parse_lex_optimizer_hints(lex_file)
|
| 1252 |
+
|
| 1253 |
+
# Parse content in item_create.cc.
|
| 1254 |
+
item_create_file = urlopen(ITEM_CREATE_URL).read().decode('utf8', errors='ignore')
|
| 1255 |
+
functions.update(parse_item_create_functions(item_create_file))
|
| 1256 |
+
|
| 1257 |
+
# Remove data types from the set of keywords.
|
| 1258 |
+
keywords -= set(MYSQL_DATATYPES)
|
| 1259 |
+
|
| 1260 |
+
update_content('MYSQL_FUNCTIONS', tuple(sorted(functions)))
|
| 1261 |
+
update_content('MYSQL_KEYWORDS', tuple(sorted(keywords)))
|
| 1262 |
+
update_content('MYSQL_OPTIMIZER_HINTS', tuple(sorted(optimizer_hints)))
|
| 1263 |
+
|
| 1264 |
+
|
| 1265 |
+
def parse_lex_keywords(f):
|
| 1266 |
+
"""Parse keywords in lex.h."""
|
| 1267 |
+
|
| 1268 |
+
results = set()
|
| 1269 |
+
for m in re.finditer(r'{SYM(?:_HK)?\("(?P<keyword>[a-z0-9_]+)",', f, flags=re.I):
|
| 1270 |
+
results.add(m.group('keyword').lower())
|
| 1271 |
+
|
| 1272 |
+
if not results:
|
| 1273 |
+
raise ValueError('No keywords found')
|
| 1274 |
+
|
| 1275 |
+
return results
|
| 1276 |
+
|
| 1277 |
+
|
| 1278 |
+
def parse_lex_optimizer_hints(f):
|
| 1279 |
+
"""Parse optimizer hints in lex.h."""
|
| 1280 |
+
|
| 1281 |
+
results = set()
|
| 1282 |
+
for m in re.finditer(r'{SYM_H\("(?P<keyword>[a-z0-9_]+)",', f, flags=re.I):
|
| 1283 |
+
results.add(m.group('keyword').lower())
|
| 1284 |
+
|
| 1285 |
+
if not results:
|
| 1286 |
+
raise ValueError('No optimizer hints found')
|
| 1287 |
+
|
| 1288 |
+
return results
|
| 1289 |
+
|
| 1290 |
+
|
| 1291 |
+
def parse_lex_functions(f):
|
| 1292 |
+
"""Parse MySQL function names from lex.h."""
|
| 1293 |
+
|
| 1294 |
+
results = set()
|
| 1295 |
+
for m in re.finditer(r'{SYM_FN?\("(?P<function>[a-z0-9_]+)",', f, flags=re.I):
|
| 1296 |
+
results.add(m.group('function').lower())
|
| 1297 |
+
|
| 1298 |
+
if not results:
|
| 1299 |
+
raise ValueError('No lex functions found')
|
| 1300 |
+
|
| 1301 |
+
return results
|
| 1302 |
+
|
| 1303 |
+
|
| 1304 |
+
def parse_item_create_functions(f):
|
| 1305 |
+
"""Parse MySQL function names from item_create.cc."""
|
| 1306 |
+
|
| 1307 |
+
results = set()
|
| 1308 |
+
for m in re.finditer(r'{"(?P<function>[^"]+?)",\s*SQL_F[^(]+?\(', f, flags=re.I):
|
| 1309 |
+
results.add(m.group('function').lower())
|
| 1310 |
+
|
| 1311 |
+
if not results:
|
| 1312 |
+
raise ValueError('No item_create functions found')
|
| 1313 |
+
|
| 1314 |
+
return results
|
| 1315 |
+
|
| 1316 |
+
|
| 1317 |
+
def update_content(field_name, content):
|
| 1318 |
+
"""Overwrite this file with content parsed from MySQL's source code."""
|
| 1319 |
+
|
| 1320 |
+
with open(__file__, encoding="utf-8") as f:
|
| 1321 |
+
data = f.read()
|
| 1322 |
+
|
| 1323 |
+
# Line to start/end inserting
|
| 1324 |
+
re_match = re.compile(rf'^{field_name}\s*=\s*\($.*?^\s*\)$', re.M | re.S)
|
| 1325 |
+
m = re_match.search(data)
|
| 1326 |
+
if not m:
|
| 1327 |
+
raise ValueError(f'Could not find an existing definition for {field_name}')
|
| 1328 |
+
|
| 1329 |
+
new_block = format_lines(field_name, content)
|
| 1330 |
+
data = data[:m.start()] + new_block + data[m.end():]
|
| 1331 |
+
|
| 1332 |
+
with open(__file__, 'w', encoding='utf-8', newline='\n') as f:
|
| 1333 |
+
f.write(data)
|
| 1334 |
+
|
| 1335 |
+
update_myself()
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/_postgres_buil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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pygments.lexers._postgres_builtins
|
| 3 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
Self-updating data files for PostgreSQL lexer.
|
| 6 |
+
|
| 7 |
+
Run with `python -I` to update itself.
|
| 8 |
+
|
| 9 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 10 |
+
:license: BSD, see LICENSE for details.
|
| 11 |
+
"""
|
| 12 |
+
|
| 13 |
+
# Autogenerated: please edit them if you like wasting your time.
|
| 14 |
+
|
| 15 |
+
KEYWORDS = (
|
| 16 |
+
'ABORT',
|
| 17 |
+
'ABSOLUTE',
|
| 18 |
+
'ACCESS',
|
| 19 |
+
'ACTION',
|
| 20 |
+
'ADD',
|
| 21 |
+
'ADMIN',
|
| 22 |
+
'AFTER',
|
| 23 |
+
'AGGREGATE',
|
| 24 |
+
'ALL',
|
| 25 |
+
'ALSO',
|
| 26 |
+
'ALTER',
|
| 27 |
+
'ALWAYS',
|
| 28 |
+
'ANALYSE',
|
| 29 |
+
'ANALYZE',
|
| 30 |
+
'AND',
|
| 31 |
+
'ANY',
|
| 32 |
+
'ARRAY',
|
| 33 |
+
'AS',
|
| 34 |
+
'ASC',
|
| 35 |
+
'ASENSITIVE',
|
| 36 |
+
'ASSERTION',
|
| 37 |
+
'ASSIGNMENT',
|
| 38 |
+
'ASYMMETRIC',
|
| 39 |
+
'AT',
|
| 40 |
+
'ATOMIC',
|
| 41 |
+
'ATTACH',
|
| 42 |
+
'ATTRIBUTE',
|
| 43 |
+
'AUTHORIZATION',
|
| 44 |
+
'BACKWARD',
|
| 45 |
+
'BEFORE',
|
| 46 |
+
'BEGIN',
|
| 47 |
+
'BETWEEN',
|
| 48 |
+
'BIGINT',
|
| 49 |
+
'BINARY',
|
| 50 |
+
'BIT',
|
| 51 |
+
'BOOLEAN',
|
| 52 |
+
'BOTH',
|
| 53 |
+
'BREADTH',
|
| 54 |
+
'BY',
|
| 55 |
+
'CACHE',
|
| 56 |
+
'CALL',
|
| 57 |
+
'CALLED',
|
| 58 |
+
'CASCADE',
|
| 59 |
+
'CASCADED',
|
| 60 |
+
'CASE',
|
| 61 |
+
'CAST',
|
| 62 |
+
'CATALOG',
|
| 63 |
+
'CHAIN',
|
| 64 |
+
'CHAR',
|
| 65 |
+
'CHARACTER',
|
| 66 |
+
'CHARACTERISTICS',
|
| 67 |
+
'CHECK',
|
| 68 |
+
'CHECKPOINT',
|
| 69 |
+
'CLASS',
|
| 70 |
+
'CLOSE',
|
| 71 |
+
'CLUSTER',
|
| 72 |
+
'COALESCE',
|
| 73 |
+
'COLLATE',
|
| 74 |
+
'COLLATION',
|
| 75 |
+
'COLUMN',
|
| 76 |
+
'COLUMNS',
|
| 77 |
+
'COMMENT',
|
| 78 |
+
'COMMENTS',
|
| 79 |
+
'COMMIT',
|
| 80 |
+
'COMMITTED',
|
| 81 |
+
'COMPRESSION',
|
| 82 |
+
'CONCURRENTLY',
|
| 83 |
+
'CONFIGURATION',
|
| 84 |
+
'CONFLICT',
|
| 85 |
+
'CONNECTION',
|
| 86 |
+
'CONSTRAINT',
|
| 87 |
+
'CONSTRAINTS',
|
| 88 |
+
'CONTENT',
|
| 89 |
+
'CONTINUE',
|
| 90 |
+
'CONVERSION',
|
| 91 |
+
'COPY',
|
| 92 |
+
'COST',
|
| 93 |
+
'CREATE',
|
| 94 |
+
'CROSS',
|
| 95 |
+
'CSV',
|
| 96 |
+
'CUBE',
|
| 97 |
+
'CURRENT',
|
| 98 |
+
'CURRENT_CATALOG',
|
| 99 |
+
'CURRENT_DATE',
|
| 100 |
+
'CURRENT_ROLE',
|
| 101 |
+
'CURRENT_SCHEMA',
|
| 102 |
+
'CURRENT_TIME',
|
| 103 |
+
'CURRENT_TIMESTAMP',
|
| 104 |
+
'CURRENT_USER',
|
| 105 |
+
'CURSOR',
|
| 106 |
+
'CYCLE',
|
| 107 |
+
'DATA',
|
| 108 |
+
'DATABASE',
|
| 109 |
+
'DAY',
|
| 110 |
+
'DEALLOCATE',
|
| 111 |
+
'DEC',
|
| 112 |
+
'DECIMAL',
|
| 113 |
+
'DECLARE',
|
| 114 |
+
'DEFAULT',
|
| 115 |
+
'DEFAULTS',
|
| 116 |
+
'DEFERRABLE',
|
| 117 |
+
'DEFERRED',
|
| 118 |
+
'DEFINER',
|
| 119 |
+
'DELETE',
|
| 120 |
+
'DELIMITER',
|
| 121 |
+
'DELIMITERS',
|
| 122 |
+
'DEPENDS',
|
| 123 |
+
'DEPTH',
|
| 124 |
+
'DESC',
|
| 125 |
+
'DETACH',
|
| 126 |
+
'DICTIONARY',
|
| 127 |
+
'DISABLE',
|
| 128 |
+
'DISCARD',
|
| 129 |
+
'DISTINCT',
|
| 130 |
+
'DO',
|
| 131 |
+
'DOCUMENT',
|
| 132 |
+
'DOMAIN',
|
| 133 |
+
'DOUBLE',
|
| 134 |
+
'DROP',
|
| 135 |
+
'EACH',
|
| 136 |
+
'ELSE',
|
| 137 |
+
'ENABLE',
|
| 138 |
+
'ENCODING',
|
| 139 |
+
'ENCRYPTED',
|
| 140 |
+
'END',
|
| 141 |
+
'ENUM',
|
| 142 |
+
'ESCAPE',
|
| 143 |
+
'EVENT',
|
| 144 |
+
'EXCEPT',
|
| 145 |
+
'EXCLUDE',
|
| 146 |
+
'EXCLUDING',
|
| 147 |
+
'EXCLUSIVE',
|
| 148 |
+
'EXECUTE',
|
| 149 |
+
'EXISTS',
|
| 150 |
+
'EXPLAIN',
|
| 151 |
+
'EXPRESSION',
|
| 152 |
+
'EXTENSION',
|
| 153 |
+
'EXTERNAL',
|
| 154 |
+
'EXTRACT',
|
| 155 |
+
'FALSE',
|
| 156 |
+
'FAMILY',
|
| 157 |
+
'FETCH',
|
| 158 |
+
'FILTER',
|
| 159 |
+
'FINALIZE',
|
| 160 |
+
'FIRST',
|
| 161 |
+
'FLOAT',
|
| 162 |
+
'FOLLOWING',
|
| 163 |
+
'FOR',
|
| 164 |
+
'FORCE',
|
| 165 |
+
'FOREIGN',
|
| 166 |
+
'FORWARD',
|
| 167 |
+
'FREEZE',
|
| 168 |
+
'FROM',
|
| 169 |
+
'FULL',
|
| 170 |
+
'FUNCTION',
|
| 171 |
+
'FUNCTIONS',
|
| 172 |
+
'GENERATED',
|
| 173 |
+
'GLOBAL',
|
| 174 |
+
'GRANT',
|
| 175 |
+
'GRANTED',
|
| 176 |
+
'GREATEST',
|
| 177 |
+
'GROUP',
|
| 178 |
+
'GROUPING',
|
| 179 |
+
'GROUPS',
|
| 180 |
+
'HANDLER',
|
| 181 |
+
'HAVING',
|
| 182 |
+
'HEADER',
|
| 183 |
+
'HOLD',
|
| 184 |
+
'HOUR',
|
| 185 |
+
'IDENTITY',
|
| 186 |
+
'IF',
|
| 187 |
+
'ILIKE',
|
| 188 |
+
'IMMEDIATE',
|
| 189 |
+
'IMMUTABLE',
|
| 190 |
+
'IMPLICIT',
|
| 191 |
+
'IMPORT',
|
| 192 |
+
'IN',
|
| 193 |
+
'INCLUDE',
|
| 194 |
+
'INCLUDING',
|
| 195 |
+
'INCREMENT',
|
| 196 |
+
'INDEX',
|
| 197 |
+
'INDEXES',
|
| 198 |
+
'INHERIT',
|
| 199 |
+
'INHERITS',
|
| 200 |
+
'INITIALLY',
|
| 201 |
+
'INLINE',
|
| 202 |
+
'INNER',
|
| 203 |
+
'INOUT',
|
| 204 |
+
'INPUT',
|
| 205 |
+
'INSENSITIVE',
|
| 206 |
+
'INSERT',
|
| 207 |
+
'INSTEAD',
|
| 208 |
+
'INT',
|
| 209 |
+
'INTEGER',
|
| 210 |
+
'INTERSECT',
|
| 211 |
+
'INTERVAL',
|
| 212 |
+
'INTO',
|
| 213 |
+
'INVOKER',
|
| 214 |
+
'IS',
|
| 215 |
+
'ISNULL',
|
| 216 |
+
'ISOLATION',
|
| 217 |
+
'JOIN',
|
| 218 |
+
'KEY',
|
| 219 |
+
'LABEL',
|
| 220 |
+
'LANGUAGE',
|
| 221 |
+
'LARGE',
|
| 222 |
+
'LAST',
|
| 223 |
+
'LATERAL',
|
| 224 |
+
'LEADING',
|
| 225 |
+
'LEAKPROOF',
|
| 226 |
+
'LEAST',
|
| 227 |
+
'LEFT',
|
| 228 |
+
'LEVEL',
|
| 229 |
+
'LIKE',
|
| 230 |
+
'LIMIT',
|
| 231 |
+
'LISTEN',
|
| 232 |
+
'LOAD',
|
| 233 |
+
'LOCAL',
|
| 234 |
+
'LOCALTIME',
|
| 235 |
+
'LOCALTIMESTAMP',
|
| 236 |
+
'LOCATION',
|
| 237 |
+
'LOCK',
|
| 238 |
+
'LOCKED',
|
| 239 |
+
'LOGGED',
|
| 240 |
+
'MAPPING',
|
| 241 |
+
'MATCH',
|
| 242 |
+
'MATERIALIZED',
|
| 243 |
+
'MAXVALUE',
|
| 244 |
+
'METHOD',
|
| 245 |
+
'MINUTE',
|
| 246 |
+
'MINVALUE',
|
| 247 |
+
'MODE',
|
| 248 |
+
'MONTH',
|
| 249 |
+
'MOVE',
|
| 250 |
+
'NAME',
|
| 251 |
+
'NAMES',
|
| 252 |
+
'NATIONAL',
|
| 253 |
+
'NATURAL',
|
| 254 |
+
'NCHAR',
|
| 255 |
+
'NEW',
|
| 256 |
+
'NEXT',
|
| 257 |
+
'NFC',
|
| 258 |
+
'NFD',
|
| 259 |
+
'NFKC',
|
| 260 |
+
'NFKD',
|
| 261 |
+
'NO',
|
| 262 |
+
'NONE',
|
| 263 |
+
'NORMALIZE',
|
| 264 |
+
'NORMALIZED',
|
| 265 |
+
'NOT',
|
| 266 |
+
'NOTHING',
|
| 267 |
+
'NOTIFY',
|
| 268 |
+
'NOTNULL',
|
| 269 |
+
'NOWAIT',
|
| 270 |
+
'NULL',
|
| 271 |
+
'NULLIF',
|
| 272 |
+
'NULLS',
|
| 273 |
+
'NUMERIC',
|
| 274 |
+
'OBJECT',
|
| 275 |
+
'OF',
|
| 276 |
+
'OFF',
|
| 277 |
+
'OFFSET',
|
| 278 |
+
'OIDS',
|
| 279 |
+
'OLD',
|
| 280 |
+
'ON',
|
| 281 |
+
'ONLY',
|
| 282 |
+
'OPERATOR',
|
| 283 |
+
'OPTION',
|
| 284 |
+
'OPTIONS',
|
| 285 |
+
'OR',
|
| 286 |
+
'ORDER',
|
| 287 |
+
'ORDINALITY',
|
| 288 |
+
'OTHERS',
|
| 289 |
+
'OUT',
|
| 290 |
+
'OUTER',
|
| 291 |
+
'OVER',
|
| 292 |
+
'OVERLAPS',
|
| 293 |
+
'OVERLAY',
|
| 294 |
+
'OVERRIDING',
|
| 295 |
+
'OWNED',
|
| 296 |
+
'OWNER',
|
| 297 |
+
'PARALLEL',
|
| 298 |
+
'PARSER',
|
| 299 |
+
'PARTIAL',
|
| 300 |
+
'PARTITION',
|
| 301 |
+
'PASSING',
|
| 302 |
+
'PASSWORD',
|
| 303 |
+
'PLACING',
|
| 304 |
+
'PLANS',
|
| 305 |
+
'POLICY',
|
| 306 |
+
'POSITION',
|
| 307 |
+
'PRECEDING',
|
| 308 |
+
'PRECISION',
|
| 309 |
+
'PREPARE',
|
| 310 |
+
'PREPARED',
|
| 311 |
+
'PRESERVE',
|
| 312 |
+
'PRIMARY',
|
| 313 |
+
'PRIOR',
|
| 314 |
+
'PRIVILEGES',
|
| 315 |
+
'PROCEDURAL',
|
| 316 |
+
'PROCEDURE',
|
| 317 |
+
'PROCEDURES',
|
| 318 |
+
'PROGRAM',
|
| 319 |
+
'PUBLICATION',
|
| 320 |
+
'QUOTE',
|
| 321 |
+
'RANGE',
|
| 322 |
+
'READ',
|
| 323 |
+
'REAL',
|
| 324 |
+
'REASSIGN',
|
| 325 |
+
'RECHECK',
|
| 326 |
+
'RECURSIVE',
|
| 327 |
+
'REF',
|
| 328 |
+
'REFERENCES',
|
| 329 |
+
'REFERENCING',
|
| 330 |
+
'REFRESH',
|
| 331 |
+
'REINDEX',
|
| 332 |
+
'RELATIVE',
|
| 333 |
+
'RELEASE',
|
| 334 |
+
'RENAME',
|
| 335 |
+
'REPEATABLE',
|
| 336 |
+
'REPLACE',
|
| 337 |
+
'REPLICA',
|
| 338 |
+
'RESET',
|
| 339 |
+
'RESTART',
|
| 340 |
+
'RESTRICT',
|
| 341 |
+
'RETURN',
|
| 342 |
+
'RETURNING',
|
| 343 |
+
'RETURNS',
|
| 344 |
+
'REVOKE',
|
| 345 |
+
'RIGHT',
|
| 346 |
+
'ROLE',
|
| 347 |
+
'ROLLBACK',
|
| 348 |
+
'ROLLUP',
|
| 349 |
+
'ROUTINE',
|
| 350 |
+
'ROUTINES',
|
| 351 |
+
'ROW',
|
| 352 |
+
'ROWS',
|
| 353 |
+
'RULE',
|
| 354 |
+
'SAVEPOINT',
|
| 355 |
+
'SCHEMA',
|
| 356 |
+
'SCHEMAS',
|
| 357 |
+
'SCROLL',
|
| 358 |
+
'SEARCH',
|
| 359 |
+
'SECOND',
|
| 360 |
+
'SECURITY',
|
| 361 |
+
'SELECT',
|
| 362 |
+
'SEQUENCE',
|
| 363 |
+
'SEQUENCES',
|
| 364 |
+
'SERIALIZABLE',
|
| 365 |
+
'SERVER',
|
| 366 |
+
'SESSION',
|
| 367 |
+
'SESSION_USER',
|
| 368 |
+
'SET',
|
| 369 |
+
'SETOF',
|
| 370 |
+
'SETS',
|
| 371 |
+
'SHARE',
|
| 372 |
+
'SHOW',
|
| 373 |
+
'SIMILAR',
|
| 374 |
+
'SIMPLE',
|
| 375 |
+
'SKIP',
|
| 376 |
+
'SMALLINT',
|
| 377 |
+
'SNAPSHOT',
|
| 378 |
+
'SOME',
|
| 379 |
+
'SQL',
|
| 380 |
+
'STABLE',
|
| 381 |
+
'STANDALONE',
|
| 382 |
+
'START',
|
| 383 |
+
'STATEMENT',
|
| 384 |
+
'STATISTICS',
|
| 385 |
+
'STDIN',
|
| 386 |
+
'STDOUT',
|
| 387 |
+
'STORAGE',
|
| 388 |
+
'STORED',
|
| 389 |
+
'STRICT',
|
| 390 |
+
'STRIP',
|
| 391 |
+
'SUBSCRIPTION',
|
| 392 |
+
'SUBSTRING',
|
| 393 |
+
'SUPPORT',
|
| 394 |
+
'SYMMETRIC',
|
| 395 |
+
'SYSID',
|
| 396 |
+
'SYSTEM',
|
| 397 |
+
'TABLE',
|
| 398 |
+
'TABLES',
|
| 399 |
+
'TABLESAMPLE',
|
| 400 |
+
'TABLESPACE',
|
| 401 |
+
'TEMP',
|
| 402 |
+
'TEMPLATE',
|
| 403 |
+
'TEMPORARY',
|
| 404 |
+
'TEXT',
|
| 405 |
+
'THEN',
|
| 406 |
+
'TIES',
|
| 407 |
+
'TIME',
|
| 408 |
+
'TIMESTAMP',
|
| 409 |
+
'TO',
|
| 410 |
+
'TRAILING',
|
| 411 |
+
'TRANSACTION',
|
| 412 |
+
'TRANSFORM',
|
| 413 |
+
'TREAT',
|
| 414 |
+
'TRIGGER',
|
| 415 |
+
'TRIM',
|
| 416 |
+
'TRUE',
|
| 417 |
+
'TRUNCATE',
|
| 418 |
+
'TRUSTED',
|
| 419 |
+
'TYPE',
|
| 420 |
+
'TYPES',
|
| 421 |
+
'UESCAPE',
|
| 422 |
+
'UNBOUNDED',
|
| 423 |
+
'UNCOMMITTED',
|
| 424 |
+
'UNENCRYPTED',
|
| 425 |
+
'UNION',
|
| 426 |
+
'UNIQUE',
|
| 427 |
+
'UNKNOWN',
|
| 428 |
+
'UNLISTEN',
|
| 429 |
+
'UNLOGGED',
|
| 430 |
+
'UNTIL',
|
| 431 |
+
'UPDATE',
|
| 432 |
+
'USER',
|
| 433 |
+
'USING',
|
| 434 |
+
'VACUUM',
|
| 435 |
+
'VALID',
|
| 436 |
+
'VALIDATE',
|
| 437 |
+
'VALIDATOR',
|
| 438 |
+
'VALUE',
|
| 439 |
+
'VALUES',
|
| 440 |
+
'VARCHAR',
|
| 441 |
+
'VARIADIC',
|
| 442 |
+
'VARYING',
|
| 443 |
+
'VERBOSE',
|
| 444 |
+
'VERSION',
|
| 445 |
+
'VIEW',
|
| 446 |
+
'VIEWS',
|
| 447 |
+
'VOLATILE',
|
| 448 |
+
'WHEN',
|
| 449 |
+
'WHERE',
|
| 450 |
+
'WHITESPACE',
|
| 451 |
+
'WINDOW',
|
| 452 |
+
'WITH',
|
| 453 |
+
'WITHIN',
|
| 454 |
+
'WITHOUT',
|
| 455 |
+
'WORK',
|
| 456 |
+
'WRAPPER',
|
| 457 |
+
'WRITE',
|
| 458 |
+
'XML',
|
| 459 |
+
'XMLATTRIBUTES',
|
| 460 |
+
'XMLCONCAT',
|
| 461 |
+
'XMLELEMENT',
|
| 462 |
+
'XMLEXISTS',
|
| 463 |
+
'XMLFOREST',
|
| 464 |
+
'XMLNAMESPACES',
|
| 465 |
+
'XMLPARSE',
|
| 466 |
+
'XMLPI',
|
| 467 |
+
'XMLROOT',
|
| 468 |
+
'XMLSERIALIZE',
|
| 469 |
+
'XMLTABLE',
|
| 470 |
+
'YEAR',
|
| 471 |
+
'YES',
|
| 472 |
+
'ZONE',
|
| 473 |
+
)
|
| 474 |
+
|
| 475 |
+
DATATYPES = (
|
| 476 |
+
'bigint',
|
| 477 |
+
'bigserial',
|
| 478 |
+
'bit',
|
| 479 |
+
'bit varying',
|
| 480 |
+
'bool',
|
| 481 |
+
'boolean',
|
| 482 |
+
'box',
|
| 483 |
+
'bytea',
|
| 484 |
+
'char',
|
| 485 |
+
'character',
|
| 486 |
+
'character varying',
|
| 487 |
+
'cidr',
|
| 488 |
+
'circle',
|
| 489 |
+
'date',
|
| 490 |
+
'decimal',
|
| 491 |
+
'double precision',
|
| 492 |
+
'float4',
|
| 493 |
+
'float8',
|
| 494 |
+
'inet',
|
| 495 |
+
'int',
|
| 496 |
+
'int2',
|
| 497 |
+
'int4',
|
| 498 |
+
'int8',
|
| 499 |
+
'integer',
|
| 500 |
+
'interval',
|
| 501 |
+
'json',
|
| 502 |
+
'jsonb',
|
| 503 |
+
'line',
|
| 504 |
+
'lseg',
|
| 505 |
+
'macaddr',
|
| 506 |
+
'macaddr8',
|
| 507 |
+
'money',
|
| 508 |
+
'numeric',
|
| 509 |
+
'path',
|
| 510 |
+
'pg_lsn',
|
| 511 |
+
'pg_snapshot',
|
| 512 |
+
'point',
|
| 513 |
+
'polygon',
|
| 514 |
+
'real',
|
| 515 |
+
'serial',
|
| 516 |
+
'serial2',
|
| 517 |
+
'serial4',
|
| 518 |
+
'serial8',
|
| 519 |
+
'smallint',
|
| 520 |
+
'smallserial',
|
| 521 |
+
'text',
|
| 522 |
+
'time',
|
| 523 |
+
'timestamp',
|
| 524 |
+
'timestamptz',
|
| 525 |
+
'timetz',
|
| 526 |
+
'tsquery',
|
| 527 |
+
'tsvector',
|
| 528 |
+
'txid_snapshot',
|
| 529 |
+
'uuid',
|
| 530 |
+
'varbit',
|
| 531 |
+
'varchar',
|
| 532 |
+
'with time zone',
|
| 533 |
+
'without time zone',
|
| 534 |
+
'xml',
|
| 535 |
+
)
|
| 536 |
+
|
| 537 |
+
PSEUDO_TYPES = (
|
| 538 |
+
'any',
|
| 539 |
+
'anyarray',
|
| 540 |
+
'anycompatible',
|
| 541 |
+
'anycompatiblearray',
|
| 542 |
+
'anycompatiblemultirange',
|
| 543 |
+
'anycompatiblenonarray',
|
| 544 |
+
'anycompatiblerange',
|
| 545 |
+
'anyelement',
|
| 546 |
+
'anyenum',
|
| 547 |
+
'anymultirange',
|
| 548 |
+
'anynonarray',
|
| 549 |
+
'anyrange',
|
| 550 |
+
'cstring',
|
| 551 |
+
'event_trigger',
|
| 552 |
+
'fdw_handler',
|
| 553 |
+
'index_am_handler',
|
| 554 |
+
'internal',
|
| 555 |
+
'language_handler',
|
| 556 |
+
'pg_ddl_command',
|
| 557 |
+
'record',
|
| 558 |
+
'table_am_handler',
|
| 559 |
+
'trigger',
|
| 560 |
+
'tsm_handler',
|
| 561 |
+
'unknown',
|
| 562 |
+
'void',
|
| 563 |
+
)
|
| 564 |
+
|
| 565 |
+
# Remove 'trigger' from types
|
| 566 |
+
PSEUDO_TYPES = tuple(sorted(set(PSEUDO_TYPES) - set(map(str.lower, KEYWORDS))))
|
| 567 |
+
|
| 568 |
+
PLPGSQL_KEYWORDS = (
|
| 569 |
+
'ALIAS', 'CONSTANT', 'DIAGNOSTICS', 'ELSIF', 'EXCEPTION', 'EXIT',
|
| 570 |
+
'FOREACH', 'GET', 'LOOP', 'NOTICE', 'OPEN', 'PERFORM', 'QUERY', 'RAISE',
|
| 571 |
+
'RETURN', 'REVERSE', 'SQLSTATE', 'WHILE',
|
| 572 |
+
)
|
| 573 |
+
|
| 574 |
+
# Most of these keywords are from ExplainNode function
|
| 575 |
+
# in src/backend/commands/explain.c
|
| 576 |
+
|
| 577 |
+
EXPLAIN_KEYWORDS = (
|
| 578 |
+
'Aggregate',
|
| 579 |
+
'Append',
|
| 580 |
+
'Bitmap Heap Scan',
|
| 581 |
+
'Bitmap Index Scan',
|
| 582 |
+
'BitmapAnd',
|
| 583 |
+
'BitmapOr',
|
| 584 |
+
'CTE Scan',
|
| 585 |
+
'Custom Scan',
|
| 586 |
+
'Delete',
|
| 587 |
+
'Foreign Scan',
|
| 588 |
+
'Function Scan',
|
| 589 |
+
'Gather Merge',
|
| 590 |
+
'Gather',
|
| 591 |
+
'Group',
|
| 592 |
+
'GroupAggregate',
|
| 593 |
+
'Hash Join',
|
| 594 |
+
'Hash',
|
| 595 |
+
'HashAggregate',
|
| 596 |
+
'Incremental Sort',
|
| 597 |
+
'Index Only Scan',
|
| 598 |
+
'Index Scan',
|
| 599 |
+
'Insert',
|
| 600 |
+
'Limit',
|
| 601 |
+
'LockRows',
|
| 602 |
+
'Materialize',
|
| 603 |
+
'Memoize',
|
| 604 |
+
'Merge Append',
|
| 605 |
+
'Merge Join',
|
| 606 |
+
'Merge',
|
| 607 |
+
'MixedAggregate',
|
| 608 |
+
'Named Tuplestore Scan',
|
| 609 |
+
'Nested Loop',
|
| 610 |
+
'ProjectSet',
|
| 611 |
+
'Recursive Union',
|
| 612 |
+
'Result',
|
| 613 |
+
'Sample Scan',
|
| 614 |
+
'Seq Scan',
|
| 615 |
+
'SetOp',
|
| 616 |
+
'Sort',
|
| 617 |
+
'SubPlan',
|
| 618 |
+
'Subquery Scan',
|
| 619 |
+
'Table Function Scan',
|
| 620 |
+
'Tid Range Scan',
|
| 621 |
+
'Tid Scan',
|
| 622 |
+
'Unique',
|
| 623 |
+
'Update',
|
| 624 |
+
'Values Scan',
|
| 625 |
+
'WindowAgg',
|
| 626 |
+
'WorkTable Scan',
|
| 627 |
+
)
|
| 628 |
+
|
| 629 |
+
|
| 630 |
+
if __name__ == '__main__': # pragma: no cover
|
| 631 |
+
import re
|
| 632 |
+
from urllib.request import urlopen
|
| 633 |
+
|
| 634 |
+
from pygments.util import format_lines
|
| 635 |
+
|
| 636 |
+
# One man's constant is another man's variable.
|
| 637 |
+
SOURCE_URL = 'https://github.com/postgres/postgres/raw/master'
|
| 638 |
+
KEYWORDS_URL = SOURCE_URL + '/src/include/parser/kwlist.h'
|
| 639 |
+
DATATYPES_URL = SOURCE_URL + '/doc/src/sgml/datatype.sgml'
|
| 640 |
+
|
| 641 |
+
def update_myself():
|
| 642 |
+
content = urlopen(DATATYPES_URL).read().decode('utf-8', errors='ignore')
|
| 643 |
+
data_file = list(content.splitlines())
|
| 644 |
+
datatypes = parse_datatypes(data_file)
|
| 645 |
+
pseudos = parse_pseudos(data_file)
|
| 646 |
+
|
| 647 |
+
content = urlopen(KEYWORDS_URL).read().decode('utf-8', errors='ignore')
|
| 648 |
+
keywords = parse_keywords(content)
|
| 649 |
+
|
| 650 |
+
update_consts(__file__, 'DATATYPES', datatypes)
|
| 651 |
+
update_consts(__file__, 'PSEUDO_TYPES', pseudos)
|
| 652 |
+
update_consts(__file__, 'KEYWORDS', keywords)
|
| 653 |
+
|
| 654 |
+
def parse_keywords(f):
|
| 655 |
+
kw = []
|
| 656 |
+
for m in re.finditer(r'PG_KEYWORD\("(.+?)"', f):
|
| 657 |
+
kw.append(m.group(1).upper())
|
| 658 |
+
|
| 659 |
+
if not kw:
|
| 660 |
+
raise ValueError('no keyword found')
|
| 661 |
+
|
| 662 |
+
kw.sort()
|
| 663 |
+
return kw
|
| 664 |
+
|
| 665 |
+
def parse_datatypes(f):
|
| 666 |
+
dt = set()
|
| 667 |
+
for line in f:
|
| 668 |
+
if '<sect1' in line:
|
| 669 |
+
break
|
| 670 |
+
if '<entry><type>' not in line:
|
| 671 |
+
continue
|
| 672 |
+
|
| 673 |
+
# Parse a string such as
|
| 674 |
+
# time [ (<replaceable>p</replaceable>) ] [ without time zone ]
|
| 675 |
+
# into types "time" and "without time zone"
|
| 676 |
+
|
| 677 |
+
# remove all the tags
|
| 678 |
+
line = re.sub("<replaceable>[^<]+</replaceable>", "", line)
|
| 679 |
+
line = re.sub("<[^>]+>", "", line)
|
| 680 |
+
|
| 681 |
+
# Drop the parts containing braces
|
| 682 |
+
for tmp in [t for tmp in line.split('[')
|
| 683 |
+
for t in tmp.split(']') if "(" not in t]:
|
| 684 |
+
for t in tmp.split(','):
|
| 685 |
+
t = t.strip()
|
| 686 |
+
if not t:
|
| 687 |
+
continue
|
| 688 |
+
dt.add(" ".join(t.split()))
|
| 689 |
+
|
| 690 |
+
dt = list(dt)
|
| 691 |
+
dt.sort()
|
| 692 |
+
return dt
|
| 693 |
+
|
| 694 |
+
def parse_pseudos(f):
|
| 695 |
+
dt = []
|
| 696 |
+
re_start = re.compile(r'\s*<table id="datatype-pseudotypes-table">')
|
| 697 |
+
re_entry = re.compile(r'\s*<entry><type>(.+?)</type></entry>')
|
| 698 |
+
re_end = re.compile(r'\s*</table>')
|
| 699 |
+
|
| 700 |
+
f = iter(f)
|
| 701 |
+
for line in f:
|
| 702 |
+
if re_start.match(line) is not None:
|
| 703 |
+
break
|
| 704 |
+
else:
|
| 705 |
+
raise ValueError('pseudo datatypes table not found')
|
| 706 |
+
|
| 707 |
+
for line in f:
|
| 708 |
+
m = re_entry.match(line)
|
| 709 |
+
if m is not None:
|
| 710 |
+
dt.append(m.group(1))
|
| 711 |
+
|
| 712 |
+
if re_end.match(line) is not None:
|
| 713 |
+
break
|
| 714 |
+
else:
|
| 715 |
+
raise ValueError('end of pseudo datatypes table not found')
|
| 716 |
+
|
| 717 |
+
if not dt:
|
| 718 |
+
raise ValueError('pseudo datatypes not found')
|
| 719 |
+
|
| 720 |
+
dt.sort()
|
| 721 |
+
return dt
|
| 722 |
+
|
| 723 |
+
def update_consts(filename, constname, content):
|
| 724 |
+
with open(filename, encoding='utf-8') as f:
|
| 725 |
+
data = f.read()
|
| 726 |
+
|
| 727 |
+
# Line to start/end inserting
|
| 728 |
+
re_match = re.compile(rf'^{constname}\s*=\s*\($.*?^\s*\)$', re.M | re.S)
|
| 729 |
+
m = re_match.search(data)
|
| 730 |
+
if not m:
|
| 731 |
+
raise ValueError(f'Could not find existing definition for {constname}')
|
| 732 |
+
|
| 733 |
+
new_block = format_lines(constname, content)
|
| 734 |
+
data = data[:m.start()] + new_block + data[m.end():]
|
| 735 |
+
|
| 736 |
+
with open(filename, 'w', encoding='utf-8', newline='\n') as f:
|
| 737 |
+
f.write(data)
|
| 738 |
+
|
| 739 |
+
update_myself()
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/_qlik_builtins.py
ADDED
|
@@ -0,0 +1,666 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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: BSD, see LICENSE for details.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
# operators
|
| 12 |
+
# see https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/Scripting/Operators/operators.htm
|
| 13 |
+
OPERATORS_LIST = {
|
| 14 |
+
"words": [
|
| 15 |
+
# Bit operators
|
| 16 |
+
"bitnot",
|
| 17 |
+
"bitand",
|
| 18 |
+
"bitor",
|
| 19 |
+
"bitxor",
|
| 20 |
+
# Logical operators
|
| 21 |
+
"and",
|
| 22 |
+
"or",
|
| 23 |
+
"not",
|
| 24 |
+
"xor",
|
| 25 |
+
# Relational operators
|
| 26 |
+
"precedes",
|
| 27 |
+
"follows",
|
| 28 |
+
# String operators
|
| 29 |
+
"like",
|
| 30 |
+
],
|
| 31 |
+
"symbols": [
|
| 32 |
+
# Bit operators
|
| 33 |
+
">>",
|
| 34 |
+
"<<",
|
| 35 |
+
# Logical operators
|
| 36 |
+
# Numeric operators
|
| 37 |
+
"+",
|
| 38 |
+
"-",
|
| 39 |
+
"/",
|
| 40 |
+
"*",
|
| 41 |
+
# Relational operators
|
| 42 |
+
"<",
|
| 43 |
+
"<=",
|
| 44 |
+
">",
|
| 45 |
+
">=",
|
| 46 |
+
"=",
|
| 47 |
+
"<>",
|
| 48 |
+
# String operators
|
| 49 |
+
"&",
|
| 50 |
+
],
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
# SCRIPT STATEMENTS
|
| 54 |
+
# see https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/Scripting/
|
| 55 |
+
STATEMENT_LIST = [
|
| 56 |
+
# control statements
|
| 57 |
+
"for",
|
| 58 |
+
"each",
|
| 59 |
+
"in",
|
| 60 |
+
"next",
|
| 61 |
+
"do",
|
| 62 |
+
"while",
|
| 63 |
+
"until",
|
| 64 |
+
"unless",
|
| 65 |
+
"loop",
|
| 66 |
+
"return",
|
| 67 |
+
"switch",
|
| 68 |
+
"case",
|
| 69 |
+
"default",
|
| 70 |
+
"if",
|
| 71 |
+
"else",
|
| 72 |
+
"endif",
|
| 73 |
+
"then",
|
| 74 |
+
"end",
|
| 75 |
+
"exit",
|
| 76 |
+
"script",
|
| 77 |
+
"switch",
|
| 78 |
+
# prefixes
|
| 79 |
+
"Add",
|
| 80 |
+
"Buffer",
|
| 81 |
+
"Concatenate",
|
| 82 |
+
"Crosstable",
|
| 83 |
+
"First",
|
| 84 |
+
"Generic",
|
| 85 |
+
"Hierarchy",
|
| 86 |
+
"HierarchyBelongsTo",
|
| 87 |
+
"Inner",
|
| 88 |
+
"IntervalMatch",
|
| 89 |
+
"Join",
|
| 90 |
+
"Keep",
|
| 91 |
+
"Left",
|
| 92 |
+
"Mapping",
|
| 93 |
+
"Merge",
|
| 94 |
+
"NoConcatenate",
|
| 95 |
+
"Outer",
|
| 96 |
+
"Partial reload",
|
| 97 |
+
"Replace",
|
| 98 |
+
"Right",
|
| 99 |
+
"Sample",
|
| 100 |
+
"Semantic",
|
| 101 |
+
"Unless",
|
| 102 |
+
"When",
|
| 103 |
+
# regular statements
|
| 104 |
+
"Alias", # alias ... as ...
|
| 105 |
+
"as",
|
| 106 |
+
"AutoNumber",
|
| 107 |
+
"Binary",
|
| 108 |
+
"Comment field", # comment fields ... using ...
|
| 109 |
+
"Comment fields", # comment field ... with ...
|
| 110 |
+
"using",
|
| 111 |
+
"with",
|
| 112 |
+
"Comment table", # comment table ... with ...
|
| 113 |
+
"Comment tables", # comment tables ... using ...
|
| 114 |
+
"Connect",
|
| 115 |
+
"ODBC", # ODBC CONNECT TO ...
|
| 116 |
+
"OLEBD", # OLEDB CONNECT TO ...
|
| 117 |
+
"CUSTOM", # CUSTOM CONNECT TO ...
|
| 118 |
+
"LIB", # LIB CONNECT TO ...
|
| 119 |
+
"Declare",
|
| 120 |
+
"Derive",
|
| 121 |
+
"From",
|
| 122 |
+
"explicit",
|
| 123 |
+
"implicit",
|
| 124 |
+
"Direct Query",
|
| 125 |
+
"dimension",
|
| 126 |
+
"measure",
|
| 127 |
+
"Directory",
|
| 128 |
+
"Disconnect",
|
| 129 |
+
"Drop field",
|
| 130 |
+
"Drop fields",
|
| 131 |
+
"Drop table",
|
| 132 |
+
"Drop tables",
|
| 133 |
+
"Execute",
|
| 134 |
+
"FlushLog",
|
| 135 |
+
"Force",
|
| 136 |
+
"capitalization",
|
| 137 |
+
"case upper",
|
| 138 |
+
"case lower",
|
| 139 |
+
"case mixed",
|
| 140 |
+
"Load",
|
| 141 |
+
"distinct",
|
| 142 |
+
"from",
|
| 143 |
+
"inline",
|
| 144 |
+
"resident",
|
| 145 |
+
"from_field",
|
| 146 |
+
"autogenerate",
|
| 147 |
+
"extension",
|
| 148 |
+
"where",
|
| 149 |
+
"group by",
|
| 150 |
+
"order by",
|
| 151 |
+
"asc",
|
| 152 |
+
"desc",
|
| 153 |
+
"Let",
|
| 154 |
+
"Loosen Table",
|
| 155 |
+
"Map",
|
| 156 |
+
"NullAsNull",
|
| 157 |
+
"NullAsValue",
|
| 158 |
+
"Qualify",
|
| 159 |
+
"Rem",
|
| 160 |
+
"Rename field",
|
| 161 |
+
"Rename fields",
|
| 162 |
+
"Rename table",
|
| 163 |
+
"Rename tables",
|
| 164 |
+
"Search",
|
| 165 |
+
"include",
|
| 166 |
+
"exclude",
|
| 167 |
+
"Section",
|
| 168 |
+
"access",
|
| 169 |
+
"application",
|
| 170 |
+
"Select",
|
| 171 |
+
"Set",
|
| 172 |
+
"Sleep",
|
| 173 |
+
"SQL",
|
| 174 |
+
"SQLColumns",
|
| 175 |
+
"SQLTables",
|
| 176 |
+
"SQLTypes",
|
| 177 |
+
"Star",
|
| 178 |
+
"Store",
|
| 179 |
+
"Tag",
|
| 180 |
+
"Trace",
|
| 181 |
+
"Unmap",
|
| 182 |
+
"Unqualify",
|
| 183 |
+
"Untag",
|
| 184 |
+
# Qualifiers
|
| 185 |
+
"total",
|
| 186 |
+
]
|
| 187 |
+
|
| 188 |
+
# Script functions
|
| 189 |
+
# see https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/Scripting/functions-in-scripts-chart-expressions.htm
|
| 190 |
+
SCRIPT_FUNCTIONS = [
|
| 191 |
+
# Basic aggregation functions in the data load script
|
| 192 |
+
"FirstSortedValue",
|
| 193 |
+
"Max",
|
| 194 |
+
"Min",
|
| 195 |
+
"Mode",
|
| 196 |
+
"Only",
|
| 197 |
+
"Sum",
|
| 198 |
+
# Counter aggregation functions in the data load script
|
| 199 |
+
"Count",
|
| 200 |
+
"MissingCount",
|
| 201 |
+
"NullCount",
|
| 202 |
+
"NumericCount",
|
| 203 |
+
"TextCount",
|
| 204 |
+
# Financial aggregation functions in the data load script
|
| 205 |
+
"IRR",
|
| 206 |
+
"XIRR",
|
| 207 |
+
"NPV",
|
| 208 |
+
"XNPV",
|
| 209 |
+
# Statistical aggregation functions in the data load script
|
| 210 |
+
"Avg",
|
| 211 |
+
"Correl",
|
| 212 |
+
"Fractile",
|
| 213 |
+
"FractileExc",
|
| 214 |
+
"Kurtosis",
|
| 215 |
+
"LINEST_B" "LINEST_df",
|
| 216 |
+
"LINEST_f",
|
| 217 |
+
"LINEST_m",
|
| 218 |
+
"LINEST_r2",
|
| 219 |
+
"LINEST_seb",
|
| 220 |
+
"LINEST_sem",
|
| 221 |
+
"LINEST_sey",
|
| 222 |
+
"LINEST_ssreg",
|
| 223 |
+
"Linest_ssresid",
|
| 224 |
+
"Median",
|
| 225 |
+
"Skew",
|
| 226 |
+
"Stdev",
|
| 227 |
+
"Sterr",
|
| 228 |
+
"STEYX",
|
| 229 |
+
# Statistical test functions
|
| 230 |
+
"Chi2Test_chi2",
|
| 231 |
+
"Chi2Test_df",
|
| 232 |
+
"Chi2Test_p",
|
| 233 |
+
# Two independent samples t-tests
|
| 234 |
+
"ttest_conf",
|
| 235 |
+
"ttest_df",
|
| 236 |
+
"ttest_dif",
|
| 237 |
+
"ttest_lower",
|
| 238 |
+
"ttest_sig",
|
| 239 |
+
"ttest_sterr",
|
| 240 |
+
"ttest_t",
|
| 241 |
+
"ttest_upper",
|
| 242 |
+
# Two independent weighted samples t-tests
|
| 243 |
+
"ttestw_conf",
|
| 244 |
+
"ttestw_df",
|
| 245 |
+
"ttestw_dif",
|
| 246 |
+
"ttestw_lower",
|
| 247 |
+
"ttestw_sig",
|
| 248 |
+
"ttestw_sterr",
|
| 249 |
+
"ttestw_t",
|
| 250 |
+
"ttestw_upper",
|
| 251 |
+
# One sample t-tests
|
| 252 |
+
"ttest1_conf",
|
| 253 |
+
"ttest1_df",
|
| 254 |
+
"ttest1_dif",
|
| 255 |
+
"ttest1_lower",
|
| 256 |
+
"ttest1_sig",
|
| 257 |
+
"ttest1_sterr",
|
| 258 |
+
"ttest1_t",
|
| 259 |
+
"ttest1_upper",
|
| 260 |
+
# One weighted sample t-tests
|
| 261 |
+
"ttest1w_conf",
|
| 262 |
+
"ttest1w_df",
|
| 263 |
+
"ttest1w_dif",
|
| 264 |
+
"ttest1w_lower",
|
| 265 |
+
"ttest1w_sig",
|
| 266 |
+
"ttest1w_sterr",
|
| 267 |
+
"ttest1w_t",
|
| 268 |
+
"ttest1w_upper",
|
| 269 |
+
# One column format functions
|
| 270 |
+
"ztest_conf",
|
| 271 |
+
"ztest_dif",
|
| 272 |
+
"ztest_sig",
|
| 273 |
+
"ztest_sterr",
|
| 274 |
+
"ztest_z",
|
| 275 |
+
"ztest_lower",
|
| 276 |
+
"ztest_upper",
|
| 277 |
+
# Weighted two-column format functions
|
| 278 |
+
"ztestw_conf",
|
| 279 |
+
"ztestw_dif",
|
| 280 |
+
"ztestw_lower",
|
| 281 |
+
"ztestw_sig",
|
| 282 |
+
"ztestw_sterr",
|
| 283 |
+
"ztestw_upper",
|
| 284 |
+
"ztestw_z",
|
| 285 |
+
# String aggregation functions in the data load script
|
| 286 |
+
"Concat",
|
| 287 |
+
"FirstValue",
|
| 288 |
+
"LastValue",
|
| 289 |
+
"MaxString",
|
| 290 |
+
"MinString",
|
| 291 |
+
# Synthetic dimension functions
|
| 292 |
+
"ValueList",
|
| 293 |
+
"ValueLoop",
|
| 294 |
+
# Color functions
|
| 295 |
+
"ARGB",
|
| 296 |
+
"HSL",
|
| 297 |
+
"RGB",
|
| 298 |
+
"Color",
|
| 299 |
+
"Colormix1",
|
| 300 |
+
"Colormix2",
|
| 301 |
+
"SysColor",
|
| 302 |
+
"ColorMapHue",
|
| 303 |
+
"ColorMapJet",
|
| 304 |
+
"black",
|
| 305 |
+
"blue",
|
| 306 |
+
"brown",
|
| 307 |
+
"cyan",
|
| 308 |
+
"darkgray",
|
| 309 |
+
"green",
|
| 310 |
+
"lightblue",
|
| 311 |
+
"lightcyan",
|
| 312 |
+
"lightgray",
|
| 313 |
+
"lightgreen",
|
| 314 |
+
"lightmagenta",
|
| 315 |
+
"lightred",
|
| 316 |
+
"magenta",
|
| 317 |
+
"red",
|
| 318 |
+
"white",
|
| 319 |
+
"yellow",
|
| 320 |
+
# Conditional functions
|
| 321 |
+
"alt",
|
| 322 |
+
"class",
|
| 323 |
+
"coalesce",
|
| 324 |
+
"if",
|
| 325 |
+
"match",
|
| 326 |
+
"mixmatch",
|
| 327 |
+
"pick",
|
| 328 |
+
"wildmatch",
|
| 329 |
+
# Counter functions
|
| 330 |
+
"autonumber",
|
| 331 |
+
"autonumberhash128",
|
| 332 |
+
"autonumberhash256",
|
| 333 |
+
"IterNo",
|
| 334 |
+
"RecNo",
|
| 335 |
+
"RowNo",
|
| 336 |
+
# Integer expressions of time
|
| 337 |
+
"second",
|
| 338 |
+
"minute",
|
| 339 |
+
"hour",
|
| 340 |
+
"day",
|
| 341 |
+
"week",
|
| 342 |
+
"month",
|
| 343 |
+
"year",
|
| 344 |
+
"weekyear",
|
| 345 |
+
"weekday",
|
| 346 |
+
# Timestamp functions
|
| 347 |
+
"now",
|
| 348 |
+
"today",
|
| 349 |
+
"LocalTime",
|
| 350 |
+
# Make functions
|
| 351 |
+
"makedate",
|
| 352 |
+
"makeweekdate",
|
| 353 |
+
"maketime",
|
| 354 |
+
# Other date functions
|
| 355 |
+
"AddMonths",
|
| 356 |
+
"AddYears",
|
| 357 |
+
"yeartodate",
|
| 358 |
+
# Timezone functions
|
| 359 |
+
"timezone",
|
| 360 |
+
"GMT",
|
| 361 |
+
"UTC",
|
| 362 |
+
"daylightsaving",
|
| 363 |
+
"converttolocaltime",
|
| 364 |
+
# Set time functions
|
| 365 |
+
"setdateyear",
|
| 366 |
+
"setdateyearmonth",
|
| 367 |
+
# In... functions
|
| 368 |
+
"inyear",
|
| 369 |
+
"inyeartodate",
|
| 370 |
+
"inquarter",
|
| 371 |
+
"inquartertodate",
|
| 372 |
+
"inmonth",
|
| 373 |
+
"inmonthtodate",
|
| 374 |
+
"inmonths",
|
| 375 |
+
"inmonthstodate",
|
| 376 |
+
"inweek",
|
| 377 |
+
"inweektodate",
|
| 378 |
+
"inlunarweek",
|
| 379 |
+
"inlunarweektodate",
|
| 380 |
+
"inday",
|
| 381 |
+
"indaytotime",
|
| 382 |
+
# Start ... end functions
|
| 383 |
+
"yearstart",
|
| 384 |
+
"yearend",
|
| 385 |
+
"yearname",
|
| 386 |
+
"quarterstart",
|
| 387 |
+
"quarterend",
|
| 388 |
+
"quartername",
|
| 389 |
+
"monthstart",
|
| 390 |
+
"monthend",
|
| 391 |
+
"monthname",
|
| 392 |
+
"monthsstart",
|
| 393 |
+
"monthsend",
|
| 394 |
+
"monthsname",
|
| 395 |
+
"weekstart",
|
| 396 |
+
"weekend",
|
| 397 |
+
"weekname",
|
| 398 |
+
"lunarweekstart",
|
| 399 |
+
"lunarweekend",
|
| 400 |
+
"lunarweekname",
|
| 401 |
+
"daystart",
|
| 402 |
+
"dayend",
|
| 403 |
+
"dayname",
|
| 404 |
+
# Day numbering functions
|
| 405 |
+
"age",
|
| 406 |
+
"networkdays",
|
| 407 |
+
"firstworkdate",
|
| 408 |
+
"lastworkdate",
|
| 409 |
+
"daynumberofyear",
|
| 410 |
+
"daynumberofquarter",
|
| 411 |
+
# Exponential and logarithmic
|
| 412 |
+
"exp",
|
| 413 |
+
"log",
|
| 414 |
+
"log10",
|
| 415 |
+
"pow",
|
| 416 |
+
"sqr",
|
| 417 |
+
"sqrt",
|
| 418 |
+
# Count functions
|
| 419 |
+
"GetAlternativeCount",
|
| 420 |
+
"GetExcludedCount",
|
| 421 |
+
"GetNotSelectedCount",
|
| 422 |
+
"GetPossibleCount",
|
| 423 |
+
"GetSelectedCount",
|
| 424 |
+
# Field and selection functions
|
| 425 |
+
"GetCurrentSelections",
|
| 426 |
+
"GetFieldSelections",
|
| 427 |
+
"GetObjectDimension",
|
| 428 |
+
"GetObjectField",
|
| 429 |
+
"GetObjectMeasure",
|
| 430 |
+
# File functions
|
| 431 |
+
"Attribute",
|
| 432 |
+
"ConnectString",
|
| 433 |
+
"FileBaseName",
|
| 434 |
+
"FileDir",
|
| 435 |
+
"FileExtension",
|
| 436 |
+
"FileName",
|
| 437 |
+
"FilePath",
|
| 438 |
+
"FileSize",
|
| 439 |
+
"FileTime",
|
| 440 |
+
"GetFolderPath",
|
| 441 |
+
"QvdCreateTime",
|
| 442 |
+
"QvdFieldName",
|
| 443 |
+
"QvdNoOfFields",
|
| 444 |
+
"QvdNoOfRecords",
|
| 445 |
+
"QvdTableName",
|
| 446 |
+
# Financial functions
|
| 447 |
+
"FV",
|
| 448 |
+
"nPer",
|
| 449 |
+
"Pmt",
|
| 450 |
+
"PV",
|
| 451 |
+
"Rate",
|
| 452 |
+
# Formatting functions
|
| 453 |
+
"ApplyCodepage",
|
| 454 |
+
"Date",
|
| 455 |
+
"Dual",
|
| 456 |
+
"Interval",
|
| 457 |
+
"Money",
|
| 458 |
+
"Num",
|
| 459 |
+
"Time",
|
| 460 |
+
"Timestamp",
|
| 461 |
+
# General numeric functions
|
| 462 |
+
"bitcount",
|
| 463 |
+
"div",
|
| 464 |
+
"fabs",
|
| 465 |
+
"fact",
|
| 466 |
+
"frac",
|
| 467 |
+
"sign",
|
| 468 |
+
# Combination and permutation functions
|
| 469 |
+
"combin",
|
| 470 |
+
"permut",
|
| 471 |
+
# Modulo functions
|
| 472 |
+
"fmod",
|
| 473 |
+
"mod",
|
| 474 |
+
# Parity functions
|
| 475 |
+
"even",
|
| 476 |
+
"odd",
|
| 477 |
+
# Rounding functions
|
| 478 |
+
"ceil",
|
| 479 |
+
"floor",
|
| 480 |
+
"round",
|
| 481 |
+
# Geospatial functions
|
| 482 |
+
"GeoAggrGeometry",
|
| 483 |
+
"GeoBoundingBox",
|
| 484 |
+
"GeoCountVertex",
|
| 485 |
+
"GeoInvProjectGeometry",
|
| 486 |
+
"GeoProjectGeometry",
|
| 487 |
+
"GeoReduceGeometry",
|
| 488 |
+
"GeoGetBoundingBox",
|
| 489 |
+
"GeoGetPolygonCenter",
|
| 490 |
+
"GeoMakePoint",
|
| 491 |
+
"GeoProject",
|
| 492 |
+
# Interpretation functions
|
| 493 |
+
"Date#",
|
| 494 |
+
"Interval#",
|
| 495 |
+
"Money#",
|
| 496 |
+
"Num#",
|
| 497 |
+
"Text",
|
| 498 |
+
"Time#",
|
| 499 |
+
"Timestamp#",
|
| 500 |
+
# Field functions
|
| 501 |
+
"FieldIndex",
|
| 502 |
+
"FieldValue",
|
| 503 |
+
"FieldValueCount",
|
| 504 |
+
# Inter-record functions in the data load script
|
| 505 |
+
"Exists",
|
| 506 |
+
"LookUp",
|
| 507 |
+
"Peek",
|
| 508 |
+
"Previous",
|
| 509 |
+
# Logical functions
|
| 510 |
+
"IsNum",
|
| 511 |
+
"IsText",
|
| 512 |
+
# Mapping functions
|
| 513 |
+
"ApplyMap",
|
| 514 |
+
"MapSubstring",
|
| 515 |
+
# Mathematical functions
|
| 516 |
+
"e",
|
| 517 |
+
"false",
|
| 518 |
+
"pi",
|
| 519 |
+
"rand",
|
| 520 |
+
"true",
|
| 521 |
+
# NULL functions
|
| 522 |
+
"EmptyIsNull",
|
| 523 |
+
"IsNull",
|
| 524 |
+
"Null",
|
| 525 |
+
# Basic range functions
|
| 526 |
+
"RangeMax",
|
| 527 |
+
"RangeMaxString",
|
| 528 |
+
"RangeMin",
|
| 529 |
+
"RangeMinString",
|
| 530 |
+
"RangeMode",
|
| 531 |
+
"RangeOnly",
|
| 532 |
+
"RangeSum",
|
| 533 |
+
# Counter range functions
|
| 534 |
+
"RangeCount",
|
| 535 |
+
"RangeMissingCount",
|
| 536 |
+
"RangeNullCount",
|
| 537 |
+
"RangeNumericCount",
|
| 538 |
+
"RangeTextCount",
|
| 539 |
+
# Statistical range functions
|
| 540 |
+
"RangeAvg",
|
| 541 |
+
"RangeCorrel",
|
| 542 |
+
"RangeFractile",
|
| 543 |
+
"RangeKurtosis",
|
| 544 |
+
"RangeSkew",
|
| 545 |
+
"RangeStdev",
|
| 546 |
+
# Financial range functions
|
| 547 |
+
"RangeIRR",
|
| 548 |
+
"RangeNPV",
|
| 549 |
+
"RangeXIRR",
|
| 550 |
+
"RangeXNPV",
|
| 551 |
+
# Statistical distribution
|
| 552 |
+
"CHIDIST",
|
| 553 |
+
"CHIINV",
|
| 554 |
+
"NORMDIST",
|
| 555 |
+
"NORMINV",
|
| 556 |
+
"TDIST",
|
| 557 |
+
"TINV",
|
| 558 |
+
"FDIST",
|
| 559 |
+
"FINV",
|
| 560 |
+
# String functions
|
| 561 |
+
"Capitalize",
|
| 562 |
+
"Chr",
|
| 563 |
+
"Evaluate",
|
| 564 |
+
"FindOneOf",
|
| 565 |
+
"Hash128",
|
| 566 |
+
"Hash160",
|
| 567 |
+
"Hash256",
|
| 568 |
+
"Index",
|
| 569 |
+
"KeepChar",
|
| 570 |
+
"Left",
|
| 571 |
+
"Len",
|
| 572 |
+
"LevenshteinDist",
|
| 573 |
+
"Lower",
|
| 574 |
+
"LTrim",
|
| 575 |
+
"Mid",
|
| 576 |
+
"Ord",
|
| 577 |
+
"PurgeChar",
|
| 578 |
+
"Repeat",
|
| 579 |
+
"Replace",
|
| 580 |
+
"Right",
|
| 581 |
+
"RTrim",
|
| 582 |
+
"SubField",
|
| 583 |
+
"SubStringCount",
|
| 584 |
+
"TextBetween",
|
| 585 |
+
"Trim",
|
| 586 |
+
"Upper",
|
| 587 |
+
# System functions
|
| 588 |
+
"Author",
|
| 589 |
+
"ClientPlatform",
|
| 590 |
+
"ComputerName",
|
| 591 |
+
"DocumentName",
|
| 592 |
+
"DocumentPath",
|
| 593 |
+
"DocumentTitle",
|
| 594 |
+
"EngineVersion",
|
| 595 |
+
"GetCollationLocale",
|
| 596 |
+
"GetObjectField",
|
| 597 |
+
"GetRegistryString",
|
| 598 |
+
"IsPartialReload",
|
| 599 |
+
"OSUser",
|
| 600 |
+
"ProductVersion",
|
| 601 |
+
"ReloadTime",
|
| 602 |
+
"StateName",
|
| 603 |
+
# Table functions
|
| 604 |
+
"FieldName",
|
| 605 |
+
"FieldNumber",
|
| 606 |
+
"NoOfFields",
|
| 607 |
+
"NoOfRows",
|
| 608 |
+
"NoOfTables",
|
| 609 |
+
"TableName",
|
| 610 |
+
"TableNumber",
|
| 611 |
+
]
|
| 612 |
+
|
| 613 |
+
# System variables and constants
|
| 614 |
+
# see https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/Scripting/work-with-variables-in-data-load-editor.htm
|
| 615 |
+
CONSTANT_LIST = [
|
| 616 |
+
# System Variables
|
| 617 |
+
"floppy",
|
| 618 |
+
"cd",
|
| 619 |
+
"include",
|
| 620 |
+
"must_include",
|
| 621 |
+
"hideprefix",
|
| 622 |
+
"hidesuffix",
|
| 623 |
+
"qvpath",
|
| 624 |
+
"qvroot",
|
| 625 |
+
"QvWorkPath",
|
| 626 |
+
"QvWorkRoot",
|
| 627 |
+
"StripComments",
|
| 628 |
+
"Verbatim",
|
| 629 |
+
"OpenUrlTimeout",
|
| 630 |
+
"WinPath",
|
| 631 |
+
"WinRoot",
|
| 632 |
+
"CollationLocale",
|
| 633 |
+
"CreateSearchIndexOnReload",
|
| 634 |
+
# value handling variables
|
| 635 |
+
"NullDisplay",
|
| 636 |
+
"NullInterpret",
|
| 637 |
+
"NullValue",
|
| 638 |
+
"OtherSymbol",
|
| 639 |
+
# Currency formatting
|
| 640 |
+
"MoneyDecimalSep",
|
| 641 |
+
"MoneyFormat",
|
| 642 |
+
"MoneyThousandSep",
|
| 643 |
+
# Number formatting
|
| 644 |
+
"DecimalSep",
|
| 645 |
+
"ThousandSep",
|
| 646 |
+
"NumericalAbbreviation",
|
| 647 |
+
# Time formatting
|
| 648 |
+
"DateFormat",
|
| 649 |
+
"TimeFormat",
|
| 650 |
+
"TimestampFormat",
|
| 651 |
+
"MonthNames",
|
| 652 |
+
"LongMonthNames",
|
| 653 |
+
"DayNames",
|
| 654 |
+
"LongDayNames",
|
| 655 |
+
"FirstWeekDay",
|
| 656 |
+
"BrokenWeeks",
|
| 657 |
+
"ReferenceDay",
|
| 658 |
+
"FirstMonthOfYear",
|
| 659 |
+
# Error variables
|
| 660 |
+
"errormode",
|
| 661 |
+
"scripterror",
|
| 662 |
+
"scripterrorcount",
|
| 663 |
+
"scripterrorlist",
|
| 664 |
+
# Other
|
| 665 |
+
"null",
|
| 666 |
+
]
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/_stata_builtins.py
ADDED
|
@@ -0,0 +1,457 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pygments.lexers._stata_builtins
|
| 3 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
Builtins for Stata
|
| 6 |
+
|
| 7 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 8 |
+
:license: BSD, see LICENSE for details.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
builtins_special = (
|
| 13 |
+
"if", "in", "using", "replace", "by", "gen", "generate"
|
| 14 |
+
)
|
| 15 |
+
|
| 16 |
+
builtins_base = (
|
| 17 |
+
"if", "else", "in", "foreach", "for", "forv", "forva",
|
| 18 |
+
"forval", "forvalu", "forvalue", "forvalues", "by", "bys",
|
| 19 |
+
"bysort", "quietly", "qui", "about", "ac",
|
| 20 |
+
"ac_7", "acprplot", "acprplot_7", "adjust", "ado", "adopath",
|
| 21 |
+
"adoupdate", "alpha", "ameans", "an", "ano", "anov", "anova",
|
| 22 |
+
"anova_estat", "anova_terms", "anovadef", "aorder", "ap", "app",
|
| 23 |
+
"appe", "appen", "append", "arch", "arch_dr", "arch_estat",
|
| 24 |
+
"arch_p", "archlm", "areg", "areg_p", "args", "arima",
|
| 25 |
+
"arima_dr", "arima_estat", "arima_p", "as", "asmprobit",
|
| 26 |
+
"asmprobit_estat", "asmprobit_lf", "asmprobit_mfx__dlg",
|
| 27 |
+
"asmprobit_p", "ass", "asse", "asser", "assert", "avplot",
|
| 28 |
+
"avplot_7", "avplots", "avplots_7", "bcskew0", "bgodfrey",
|
| 29 |
+
"binreg", "bip0_lf", "biplot", "bipp_lf", "bipr_lf",
|
| 30 |
+
"bipr_p", "biprobit", "bitest", "bitesti", "bitowt", "blogit",
|
| 31 |
+
"bmemsize", "boot", "bootsamp", "bootstrap", "bootstrap_8",
|
| 32 |
+
"boxco_l", "boxco_p", "boxcox", "boxcox_6", "boxcox_p",
|
| 33 |
+
"bprobit", "br", "break", "brier", "bro", "brow", "brows",
|
| 34 |
+
"browse", "brr", "brrstat", "bs", "bs_7", "bsampl_w",
|
| 35 |
+
"bsample", "bsample_7", "bsqreg", "bstat", "bstat_7", "bstat_8",
|
| 36 |
+
"bstrap", "bstrap_7", "ca", "ca_estat", "ca_p", "cabiplot",
|
| 37 |
+
"camat", "canon", "canon_8", "canon_8_p", "canon_estat",
|
| 38 |
+
"canon_p", "cap", "caprojection", "capt", "captu", "captur",
|
| 39 |
+
"capture", "cat", "cc", "cchart", "cchart_7", "cci",
|
| 40 |
+
"cd", "censobs_table", "centile", "cf", "char", "chdir",
|
| 41 |
+
"checkdlgfiles", "checkestimationsample", "checkhlpfiles",
|
| 42 |
+
"checksum", "chelp", "ci", "cii", "cl", "class", "classutil",
|
| 43 |
+
"clear", "cli", "clis", "clist", "clo", "clog", "clog_lf",
|
| 44 |
+
"clog_p", "clogi", "clogi_sw", "clogit", "clogit_lf",
|
| 45 |
+
"clogit_p", "clogitp", "clogl_sw", "cloglog", "clonevar",
|
| 46 |
+
"clslistarray", "cluster", "cluster_measures", "cluster_stop",
|
| 47 |
+
"cluster_tree", "cluster_tree_8", "clustermat", "cmdlog",
|
| 48 |
+
"cnr", "cnre", "cnreg", "cnreg_p", "cnreg_sw", "cnsreg",
|
| 49 |
+
"codebook", "collaps4", "collapse", "colormult_nb",
|
| 50 |
+
"colormult_nw", "compare", "compress", "conf", "confi",
|
| 51 |
+
"confir", "confirm", "conren", "cons", "const", "constr",
|
| 52 |
+
"constra", "constrai", "constrain", "constraint", "continue",
|
| 53 |
+
"contract", "copy", "copyright", "copysource", "cor", "corc",
|
| 54 |
+
"corr", "corr2data", "corr_anti", "corr_kmo", "corr_smc",
|
| 55 |
+
"corre", "correl", "correla", "correlat", "correlate",
|
| 56 |
+
"corrgram", "cou", "coun", "count", "cox", "cox_p", "cox_sw",
|
| 57 |
+
"coxbase", "coxhaz", "coxvar", "cprplot", "cprplot_7",
|
| 58 |
+
"crc", "cret", "cretu", "cretur", "creturn", "cross", "cs",
|
| 59 |
+
"cscript", "cscript_log", "csi", "ct", "ct_is", "ctset",
|
| 60 |
+
"ctst_5", "ctst_st", "cttost", "cumsp", "cumsp_7", "cumul",
|
| 61 |
+
"cusum", "cusum_7", "cutil", "d", "datasig", "datasign",
|
| 62 |
+
"datasigna", "datasignat", "datasignatu", "datasignatur",
|
| 63 |
+
"datasignature", "datetof", "db", "dbeta", "de", "dec",
|
| 64 |
+
"deco", "decod", "decode", "deff", "des", "desc", "descr",
|
| 65 |
+
"descri", "describ", "describe", "destring", "dfbeta",
|
| 66 |
+
"dfgls", "dfuller", "di", "di_g", "dir", "dirstats", "dis",
|
| 67 |
+
"discard", "disp", "disp_res", "disp_s", "displ", "displa",
|
| 68 |
+
"display", "distinct", "do", "doe", "doed", "doedi",
|
| 69 |
+
"doedit", "dotplot", "dotplot_7", "dprobit", "drawnorm",
|
| 70 |
+
"drop", "ds", "ds_util", "dstdize", "duplicates", "durbina",
|
| 71 |
+
"dwstat", "dydx", "e", "ed", "edi", "edit", "egen",
|
| 72 |
+
"eivreg", "emdef", "end", "en", "enc", "enco", "encod", "encode",
|
| 73 |
+
"eq", "erase", "ereg", "ereg_lf", "ereg_p", "ereg_sw",
|
| 74 |
+
"ereghet", "ereghet_glf", "ereghet_glf_sh", "ereghet_gp",
|
| 75 |
+
"ereghet_ilf", "ereghet_ilf_sh", "ereghet_ip", "eret",
|
| 76 |
+
"eretu", "eretur", "ereturn", "err", "erro", "error", "est",
|
| 77 |
+
"est_cfexist", "est_cfname", "est_clickable", "est_expand",
|
| 78 |
+
"est_hold", "est_table", "est_unhold", "est_unholdok",
|
| 79 |
+
"estat", "estat_default", "estat_summ", "estat_vce_only",
|
| 80 |
+
"esti", "estimates", "etodow", "etof", "etomdy", "ex",
|
| 81 |
+
"exi", "exit", "expand", "expandcl", "fac", "fact", "facto",
|
| 82 |
+
"factor", "factor_estat", "factor_p", "factor_pca_rotated",
|
| 83 |
+
"factor_rotate", "factormat", "fcast", "fcast_compute",
|
| 84 |
+
"fcast_graph", "fdades", "fdadesc", "fdadescr", "fdadescri",
|
| 85 |
+
"fdadescrib", "fdadescribe", "fdasav", "fdasave", "fdause",
|
| 86 |
+
"fh_st", "open", "read", "close",
|
| 87 |
+
"file", "filefilter", "fillin", "find_hlp_file", "findfile",
|
| 88 |
+
"findit", "findit_7", "fit", "fl", "fli", "flis", "flist",
|
| 89 |
+
"for5_0", "form", "forma", "format", "fpredict", "frac_154",
|
| 90 |
+
"frac_adj", "frac_chk", "frac_cox", "frac_ddp", "frac_dis",
|
| 91 |
+
"frac_dv", "frac_in", "frac_mun", "frac_pp", "frac_pq",
|
| 92 |
+
"frac_pv", "frac_wgt", "frac_xo", "fracgen", "fracplot",
|
| 93 |
+
"fracplot_7", "fracpoly", "fracpred", "fron_ex", "fron_hn",
|
| 94 |
+
"fron_p", "fron_tn", "fron_tn2", "frontier", "ftodate", "ftoe",
|
| 95 |
+
"ftomdy", "ftowdate", "g", "gamhet_glf", "gamhet_gp",
|
| 96 |
+
"gamhet_ilf", "gamhet_ip", "gamma", "gamma_d2", "gamma_p",
|
| 97 |
+
"gamma_sw", "gammahet", "gdi_hexagon", "gdi_spokes", "ge",
|
| 98 |
+
"gen", "gene", "gener", "genera", "generat", "generate",
|
| 99 |
+
"genrank", "genstd", "genvmean", "gettoken", "gl", "gladder",
|
| 100 |
+
"gladder_7", "glim_l01", "glim_l02", "glim_l03", "glim_l04",
|
| 101 |
+
"glim_l05", "glim_l06", "glim_l07", "glim_l08", "glim_l09",
|
| 102 |
+
"glim_l10", "glim_l11", "glim_l12", "glim_lf", "glim_mu",
|
| 103 |
+
"glim_nw1", "glim_nw2", "glim_nw3", "glim_p", "glim_v1",
|
| 104 |
+
"glim_v2", "glim_v3", "glim_v4", "glim_v5", "glim_v6",
|
| 105 |
+
"glim_v7", "glm", "glm_6", "glm_p", "glm_sw", "glmpred", "glo",
|
| 106 |
+
"glob", "globa", "global", "glogit", "glogit_8", "glogit_p",
|
| 107 |
+
"gmeans", "gnbre_lf", "gnbreg", "gnbreg_5", "gnbreg_p",
|
| 108 |
+
"gomp_lf", "gompe_sw", "gomper_p", "gompertz", "gompertzhet",
|
| 109 |
+
"gomphet_glf", "gomphet_glf_sh", "gomphet_gp", "gomphet_ilf",
|
| 110 |
+
"gomphet_ilf_sh", "gomphet_ip", "gphdot", "gphpen",
|
| 111 |
+
"gphprint", "gprefs", "gprobi_p", "gprobit", "gprobit_8", "gr",
|
| 112 |
+
"gr7", "gr_copy", "gr_current", "gr_db", "gr_describe",
|
| 113 |
+
"gr_dir", "gr_draw", "gr_draw_replay", "gr_drop", "gr_edit",
|
| 114 |
+
"gr_editviewopts", "gr_example", "gr_example2", "gr_export",
|
| 115 |
+
"gr_print", "gr_qscheme", "gr_query", "gr_read", "gr_rename",
|
| 116 |
+
"gr_replay", "gr_save", "gr_set", "gr_setscheme", "gr_table",
|
| 117 |
+
"gr_undo", "gr_use", "graph", "graph7", "grebar", "greigen",
|
| 118 |
+
"greigen_7", "greigen_8", "grmeanby", "grmeanby_7",
|
| 119 |
+
"gs_fileinfo", "gs_filetype", "gs_graphinfo", "gs_stat",
|
| 120 |
+
"gsort", "gwood", "h", "hadimvo", "hareg", "hausman",
|
| 121 |
+
"haver", "he", "heck_d2", "heckma_p", "heckman", "heckp_lf",
|
| 122 |
+
"heckpr_p", "heckprob", "hel", "help", "hereg", "hetpr_lf",
|
| 123 |
+
"hetpr_p", "hetprob", "hettest", "hexdump", "hilite",
|
| 124 |
+
"hist", "hist_7", "histogram", "hlogit", "hlu", "hmeans",
|
| 125 |
+
"hotel", "hotelling", "hprobit", "hreg", "hsearch", "icd9",
|
| 126 |
+
"icd9_ff", "icd9p", "iis", "impute", "imtest", "inbase",
|
| 127 |
+
"include", "inf", "infi", "infil", "infile", "infix", "inp",
|
| 128 |
+
"inpu", "input", "ins", "insheet", "insp", "inspe",
|
| 129 |
+
"inspec", "inspect", "integ", "inten", "intreg", "intreg_7",
|
| 130 |
+
"intreg_p", "intrg2_ll", "intrg_ll", "intrg_ll2", "ipolate",
|
| 131 |
+
"iqreg", "ir", "irf", "irf_create", "irfm", "iri", "is_svy",
|
| 132 |
+
"is_svysum", "isid", "istdize", "ivprob_1_lf", "ivprob_lf",
|
| 133 |
+
"ivprobit", "ivprobit_p", "ivreg", "ivreg_footnote",
|
| 134 |
+
"ivtob_1_lf", "ivtob_lf", "ivtobit", "ivtobit_p", "jackknife",
|
| 135 |
+
"jacknife", "jknife", "jknife_6", "jknife_8", "jkstat",
|
| 136 |
+
"joinby", "kalarma1", "kap", "kap_3", "kapmeier", "kappa",
|
| 137 |
+
"kapwgt", "kdensity", "kdensity_7", "keep", "ksm", "ksmirnov",
|
| 138 |
+
"ktau", "kwallis", "l", "la", "lab", "labe", "label",
|
| 139 |
+
"labelbook", "ladder", "levels", "levelsof", "leverage",
|
| 140 |
+
"lfit", "lfit_p", "li", "lincom", "line", "linktest",
|
| 141 |
+
"lis", "list", "lloghet_glf", "lloghet_glf_sh", "lloghet_gp",
|
| 142 |
+
"lloghet_ilf", "lloghet_ilf_sh", "lloghet_ip", "llogi_sw",
|
| 143 |
+
"llogis_p", "llogist", "llogistic", "llogistichet",
|
| 144 |
+
"lnorm_lf", "lnorm_sw", "lnorma_p", "lnormal", "lnormalhet",
|
| 145 |
+
"lnormhet_glf", "lnormhet_glf_sh", "lnormhet_gp",
|
| 146 |
+
"lnormhet_ilf", "lnormhet_ilf_sh", "lnormhet_ip", "lnskew0",
|
| 147 |
+
"loadingplot", "loc", "loca", "local", "log", "logi",
|
| 148 |
+
"logis_lf", "logistic", "logistic_p", "logit", "logit_estat",
|
| 149 |
+
"logit_p", "loglogs", "logrank", "loneway", "lookfor",
|
| 150 |
+
"lookup", "lowess", "lowess_7", "lpredict", "lrecomp", "lroc",
|
| 151 |
+
"lroc_7", "lrtest", "ls", "lsens", "lsens_7", "lsens_x",
|
| 152 |
+
"lstat", "ltable", "ltable_7", "ltriang", "lv", "lvr2plot",
|
| 153 |
+
"lvr2plot_7", "m", "ma", "mac", "macr", "macro", "makecns",
|
| 154 |
+
"man", "manova", "manova_estat", "manova_p", "manovatest",
|
| 155 |
+
"mantel", "mark", "markin", "markout", "marksample", "mat",
|
| 156 |
+
"mat_capp", "mat_order", "mat_put_rr", "mat_rapp", "mata",
|
| 157 |
+
"mata_clear", "mata_describe", "mata_drop", "mata_matdescribe",
|
| 158 |
+
"mata_matsave", "mata_matuse", "mata_memory", "mata_mlib",
|
| 159 |
+
"mata_mosave", "mata_rename", "mata_which", "matalabel",
|
| 160 |
+
"matcproc", "matlist", "matname", "matr", "matri",
|
| 161 |
+
"matrix", "matrix_input__dlg", "matstrik", "mcc", "mcci",
|
| 162 |
+
"md0_", "md1_", "md1debug_", "md2_", "md2debug_", "mds",
|
| 163 |
+
"mds_estat", "mds_p", "mdsconfig", "mdslong", "mdsmat",
|
| 164 |
+
"mdsshepard", "mdytoe", "mdytof", "me_derd", "mean",
|
| 165 |
+
"means", "median", "memory", "memsize", "meqparse", "mer",
|
| 166 |
+
"merg", "merge", "mfp", "mfx", "mhelp", "mhodds", "minbound",
|
| 167 |
+
"mixed_ll", "mixed_ll_reparm", "mkassert", "mkdir",
|
| 168 |
+
"mkmat", "mkspline", "ml", "ml_5", "ml_adjs", "ml_bhhhs",
|
| 169 |
+
"ml_c_d", "ml_check", "ml_clear", "ml_cnt", "ml_debug",
|
| 170 |
+
"ml_defd", "ml_e0", "ml_e0_bfgs", "ml_e0_cycle", "ml_e0_dfp",
|
| 171 |
+
"ml_e0i", "ml_e1", "ml_e1_bfgs", "ml_e1_bhhh", "ml_e1_cycle",
|
| 172 |
+
"ml_e1_dfp", "ml_e2", "ml_e2_cycle", "ml_ebfg0", "ml_ebfr0",
|
| 173 |
+
"ml_ebfr1", "ml_ebh0q", "ml_ebhh0", "ml_ebhr0", "ml_ebr0i",
|
| 174 |
+
"ml_ecr0i", "ml_edfp0", "ml_edfr0", "ml_edfr1", "ml_edr0i",
|
| 175 |
+
"ml_eds", "ml_eer0i", "ml_egr0i", "ml_elf", "ml_elf_bfgs",
|
| 176 |
+
"ml_elf_bhhh", "ml_elf_cycle", "ml_elf_dfp", "ml_elfi",
|
| 177 |
+
"ml_elfs", "ml_enr0i", "ml_enrr0", "ml_erdu0", "ml_erdu0_bfgs",
|
| 178 |
+
"ml_erdu0_bhhh", "ml_erdu0_bhhhq", "ml_erdu0_cycle",
|
| 179 |
+
"ml_erdu0_dfp", "ml_erdu0_nrbfgs", "ml_exde", "ml_footnote",
|
| 180 |
+
"ml_geqnr", "ml_grad0", "ml_graph", "ml_hbhhh", "ml_hd0",
|
| 181 |
+
"ml_hold", "ml_init", "ml_inv", "ml_log", "ml_max",
|
| 182 |
+
"ml_mlout", "ml_mlout_8", "ml_model", "ml_nb0", "ml_opt",
|
| 183 |
+
"ml_p", "ml_plot", "ml_query", "ml_rdgrd", "ml_repor",
|
| 184 |
+
"ml_s_e", "ml_score", "ml_searc", "ml_technique", "ml_unhold",
|
| 185 |
+
"mleval", "mlf_", "mlmatbysum", "mlmatsum", "mlog", "mlogi",
|
| 186 |
+
"mlogit", "mlogit_footnote", "mlogit_p", "mlopts", "mlsum",
|
| 187 |
+
"mlvecsum", "mnl0_", "mor", "more", "mov", "move", "mprobit",
|
| 188 |
+
"mprobit_lf", "mprobit_p", "mrdu0_", "mrdu1_", "mvdecode",
|
| 189 |
+
"mvencode", "mvreg", "mvreg_estat", "n", "nbreg",
|
| 190 |
+
"nbreg_al", "nbreg_lf", "nbreg_p", "nbreg_sw", "nestreg", "net",
|
| 191 |
+
"newey", "newey_7", "newey_p", "news", "nl", "nl_7", "nl_9",
|
| 192 |
+
"nl_9_p", "nl_p", "nl_p_7", "nlcom", "nlcom_p", "nlexp2",
|
| 193 |
+
"nlexp2_7", "nlexp2a", "nlexp2a_7", "nlexp3", "nlexp3_7",
|
| 194 |
+
"nlgom3", "nlgom3_7", "nlgom4", "nlgom4_7", "nlinit", "nllog3",
|
| 195 |
+
"nllog3_7", "nllog4", "nllog4_7", "nlog_rd", "nlogit",
|
| 196 |
+
"nlogit_p", "nlogitgen", "nlogittree", "nlpred", "no",
|
| 197 |
+
"nobreak", "noi", "nois", "noisi", "noisil", "noisily", "note",
|
| 198 |
+
"notes", "notes_dlg", "nptrend", "numlabel", "numlist", "odbc",
|
| 199 |
+
"old_ver", "olo", "olog", "ologi", "ologi_sw", "ologit",
|
| 200 |
+
"ologit_p", "ologitp", "on", "one", "onew", "onewa", "oneway",
|
| 201 |
+
"op_colnm", "op_comp", "op_diff", "op_inv", "op_str", "opr",
|
| 202 |
+
"opro", "oprob", "oprob_sw", "oprobi", "oprobi_p", "oprobit",
|
| 203 |
+
"oprobitp", "opts_exclusive", "order", "orthog", "orthpoly",
|
| 204 |
+
"ou", "out", "outf", "outfi", "outfil", "outfile", "outs",
|
| 205 |
+
"outsh", "outshe", "outshee", "outsheet", "ovtest", "pac",
|
| 206 |
+
"pac_7", "palette", "parse", "parse_dissim", "pause", "pca",
|
| 207 |
+
"pca_8", "pca_display", "pca_estat", "pca_p", "pca_rotate",
|
| 208 |
+
"pcamat", "pchart", "pchart_7", "pchi", "pchi_7", "pcorr",
|
| 209 |
+
"pctile", "pentium", "pergram", "pergram_7", "permute",
|
| 210 |
+
"permute_8", "personal", "peto_st", "pkcollapse", "pkcross",
|
| 211 |
+
"pkequiv", "pkexamine", "pkexamine_7", "pkshape", "pksumm",
|
| 212 |
+
"pksumm_7", "pl", "plo", "plot", "plugin", "pnorm",
|
| 213 |
+
"pnorm_7", "poisgof", "poiss_lf", "poiss_sw", "poisso_p",
|
| 214 |
+
"poisson", "poisson_estat", "post", "postclose", "postfile",
|
| 215 |
+
"postutil", "pperron", "pr", "prais", "prais_e", "prais_e2",
|
| 216 |
+
"prais_p", "predict", "predictnl", "preserve", "print",
|
| 217 |
+
"pro", "prob", "probi", "probit", "probit_estat", "probit_p",
|
| 218 |
+
"proc_time", "procoverlay", "procrustes", "procrustes_estat",
|
| 219 |
+
"procrustes_p", "profiler", "prog", "progr", "progra",
|
| 220 |
+
"program", "prop", "proportion", "prtest", "prtesti", "pwcorr",
|
| 221 |
+
"pwd", "q", "s", "qby", "qbys", "qchi", "qchi_7", "qladder",
|
| 222 |
+
"qladder_7", "qnorm", "qnorm_7", "qqplot", "qqplot_7", "qreg",
|
| 223 |
+
"qreg_c", "qreg_p", "qreg_sw", "qu", "quadchk", "quantile",
|
| 224 |
+
"quantile_7", "que", "quer", "query", "range", "ranksum",
|
| 225 |
+
"ratio", "rchart", "rchart_7", "rcof", "recast", "reclink",
|
| 226 |
+
"recode", "reg", "reg3", "reg3_p", "regdw", "regr", "regre",
|
| 227 |
+
"regre_p2", "regres", "regres_p", "regress", "regress_estat",
|
| 228 |
+
"regriv_p", "remap", "ren", "rena", "renam", "rename",
|
| 229 |
+
"renpfix", "repeat", "replace", "report", "reshape",
|
| 230 |
+
"restore", "ret", "retu", "retur", "return", "rm", "rmdir",
|
| 231 |
+
"robvar", "roccomp", "roccomp_7", "roccomp_8", "rocf_lf",
|
| 232 |
+
"rocfit", "rocfit_8", "rocgold", "rocplot", "rocplot_7",
|
| 233 |
+
"roctab", "roctab_7", "rolling", "rologit", "rologit_p",
|
| 234 |
+
"rot", "rota", "rotat", "rotate", "rotatemat", "rreg",
|
| 235 |
+
"rreg_p", "ru", "run", "runtest", "rvfplot", "rvfplot_7",
|
| 236 |
+
"rvpplot", "rvpplot_7", "sa", "safesum", "sample",
|
| 237 |
+
"sampsi", "sav", "save", "savedresults", "saveold", "sc",
|
| 238 |
+
"sca", "scal", "scala", "scalar", "scatter", "scm_mine",
|
| 239 |
+
"sco", "scob_lf", "scob_p", "scobi_sw", "scobit", "scor",
|
| 240 |
+
"score", "scoreplot", "scoreplot_help", "scree", "screeplot",
|
| 241 |
+
"screeplot_help", "sdtest", "sdtesti", "se", "search",
|
| 242 |
+
"separate", "seperate", "serrbar", "serrbar_7", "serset", "set",
|
| 243 |
+
"set_defaults", "sfrancia", "sh", "she", "shel", "shell",
|
| 244 |
+
"shewhart", "shewhart_7", "signestimationsample", "signrank",
|
| 245 |
+
"signtest", "simul", "simul_7", "simulate", "simulate_8",
|
| 246 |
+
"sktest", "sleep", "slogit", "slogit_d2", "slogit_p", "smooth",
|
| 247 |
+
"snapspan", "so", "sor", "sort", "spearman", "spikeplot",
|
| 248 |
+
"spikeplot_7", "spikeplt", "spline_x", "split", "sqreg",
|
| 249 |
+
"sqreg_p", "sret", "sretu", "sretur", "sreturn", "ssc", "st",
|
| 250 |
+
"st_ct", "st_hc", "st_hcd", "st_hcd_sh", "st_is", "st_issys",
|
| 251 |
+
"st_note", "st_promo", "st_set", "st_show", "st_smpl",
|
| 252 |
+
"st_subid", "stack", "statsby", "statsby_8", "stbase", "stci",
|
| 253 |
+
"stci_7", "stcox", "stcox_estat", "stcox_fr", "stcox_fr_ll",
|
| 254 |
+
"stcox_p", "stcox_sw", "stcoxkm", "stcoxkm_7", "stcstat",
|
| 255 |
+
"stcurv", "stcurve", "stcurve_7", "stdes", "stem", "stepwise",
|
| 256 |
+
"stereg", "stfill", "stgen", "stir", "stjoin", "stmc", "stmh",
|
| 257 |
+
"stphplot", "stphplot_7", "stphtest", "stphtest_7",
|
| 258 |
+
"stptime", "strate", "strate_7", "streg", "streg_sw", "streset",
|
| 259 |
+
"sts", "sts_7", "stset", "stsplit", "stsum", "sttocc",
|
| 260 |
+
"sttoct", "stvary", "stweib", "su", "suest", "suest_8",
|
| 261 |
+
"sum", "summ", "summa", "summar", "summari", "summariz",
|
| 262 |
+
"summarize", "sunflower", "sureg", "survcurv", "survsum",
|
| 263 |
+
"svar", "svar_p", "svmat", "svy", "svy_disp", "svy_dreg",
|
| 264 |
+
"svy_est", "svy_est_7", "svy_estat", "svy_get", "svy_gnbreg_p",
|
| 265 |
+
"svy_head", "svy_header", "svy_heckman_p", "svy_heckprob_p",
|
| 266 |
+
"svy_intreg_p", "svy_ivreg_p", "svy_logistic_p", "svy_logit_p",
|
| 267 |
+
"svy_mlogit_p", "svy_nbreg_p", "svy_ologit_p", "svy_oprobit_p",
|
| 268 |
+
"svy_poisson_p", "svy_probit_p", "svy_regress_p", "svy_sub",
|
| 269 |
+
"svy_sub_7", "svy_x", "svy_x_7", "svy_x_p", "svydes",
|
| 270 |
+
"svydes_8", "svygen", "svygnbreg", "svyheckman", "svyheckprob",
|
| 271 |
+
"svyintreg", "svyintreg_7", "svyintrg", "svyivreg", "svylc",
|
| 272 |
+
"svylog_p", "svylogit", "svymarkout", "svymarkout_8",
|
| 273 |
+
"svymean", "svymlog", "svymlogit", "svynbreg", "svyolog",
|
| 274 |
+
"svyologit", "svyoprob", "svyoprobit", "svyopts",
|
| 275 |
+
"svypois", "svypois_7", "svypoisson", "svyprobit", "svyprobt",
|
| 276 |
+
"svyprop", "svyprop_7", "svyratio", "svyreg", "svyreg_p",
|
| 277 |
+
"svyregress", "svyset", "svyset_7", "svyset_8", "svytab",
|
| 278 |
+
"svytab_7", "svytest", "svytotal", "sw", "sw_8", "swcnreg",
|
| 279 |
+
"swcox", "swereg", "swilk", "swlogis", "swlogit",
|
| 280 |
+
"swologit", "swoprbt", "swpois", "swprobit", "swqreg",
|
| 281 |
+
"swtobit", "swweib", "symmetry", "symmi", "symplot",
|
| 282 |
+
"symplot_7", "syntax", "sysdescribe", "sysdir", "sysuse",
|
| 283 |
+
"szroeter", "ta", "tab", "tab1", "tab2", "tab_or", "tabd",
|
| 284 |
+
"tabdi", "tabdis", "tabdisp", "tabi", "table", "tabodds",
|
| 285 |
+
"tabodds_7", "tabstat", "tabu", "tabul", "tabula", "tabulat",
|
| 286 |
+
"tabulate", "te", "tempfile", "tempname", "tempvar", "tes",
|
| 287 |
+
"test", "testnl", "testparm", "teststd", "tetrachoric",
|
| 288 |
+
"time_it", "timer", "tis", "tob", "tobi", "tobit", "tobit_p",
|
| 289 |
+
"tobit_sw", "token", "tokeni", "tokeniz", "tokenize",
|
| 290 |
+
"tostring", "total", "translate", "translator", "transmap",
|
| 291 |
+
"treat_ll", "treatr_p", "treatreg", "trim", "trnb_cons",
|
| 292 |
+
"trnb_mean", "trpoiss_d2", "trunc_ll", "truncr_p", "truncreg",
|
| 293 |
+
"tsappend", "tset", "tsfill", "tsline", "tsline_ex",
|
| 294 |
+
"tsreport", "tsrevar", "tsrline", "tsset", "tssmooth",
|
| 295 |
+
"tsunab", "ttest", "ttesti", "tut_chk", "tut_wait", "tutorial",
|
| 296 |
+
"tw", "tware_st", "two", "twoway", "twoway__fpfit_serset",
|
| 297 |
+
"twoway__function_gen", "twoway__histogram_gen",
|
| 298 |
+
"twoway__ipoint_serset", "twoway__ipoints_serset",
|
| 299 |
+
"twoway__kdensity_gen", "twoway__lfit_serset",
|
| 300 |
+
"twoway__normgen_gen", "twoway__pci_serset",
|
| 301 |
+
"twoway__qfit_serset", "twoway__scatteri_serset",
|
| 302 |
+
"twoway__sunflower_gen", "twoway_ksm_serset", "ty", "typ",
|
| 303 |
+
"type", "typeof", "u", "unab", "unabbrev", "unabcmd",
|
| 304 |
+
"update", "us", "use", "uselabel", "var", "var_mkcompanion",
|
| 305 |
+
"var_p", "varbasic", "varfcast", "vargranger", "varirf",
|
| 306 |
+
"varirf_add", "varirf_cgraph", "varirf_create", "varirf_ctable",
|
| 307 |
+
"varirf_describe", "varirf_dir", "varirf_drop", "varirf_erase",
|
| 308 |
+
"varirf_graph", "varirf_ograph", "varirf_rename", "varirf_set",
|
| 309 |
+
"varirf_table", "varlist", "varlmar", "varnorm", "varsoc",
|
| 310 |
+
"varstable", "varstable_w", "varstable_w2", "varwle",
|
| 311 |
+
"vce", "vec", "vec_fevd", "vec_mkphi", "vec_p", "vec_p_w",
|
| 312 |
+
"vecirf_create", "veclmar", "veclmar_w", "vecnorm",
|
| 313 |
+
"vecnorm_w", "vecrank", "vecstable", "verinst", "vers",
|
| 314 |
+
"versi", "versio", "version", "view", "viewsource", "vif",
|
| 315 |
+
"vwls", "wdatetof", "webdescribe", "webseek", "webuse",
|
| 316 |
+
"weib1_lf", "weib2_lf", "weib_lf", "weib_lf0", "weibhet_glf",
|
| 317 |
+
"weibhet_glf_sh", "weibhet_glfa", "weibhet_glfa_sh",
|
| 318 |
+
"weibhet_gp", "weibhet_ilf", "weibhet_ilf_sh", "weibhet_ilfa",
|
| 319 |
+
"weibhet_ilfa_sh", "weibhet_ip", "weibu_sw", "weibul_p",
|
| 320 |
+
"weibull", "weibull_c", "weibull_s", "weibullhet",
|
| 321 |
+
"wh", "whelp", "whi", "which", "whil", "while", "wilc_st",
|
| 322 |
+
"wilcoxon", "win", "wind", "windo", "window", "winexec",
|
| 323 |
+
"wntestb", "wntestb_7", "wntestq", "xchart", "xchart_7",
|
| 324 |
+
"xcorr", "xcorr_7", "xi", "xi_6", "xmlsav", "xmlsave",
|
| 325 |
+
"xmluse", "xpose", "xsh", "xshe", "xshel", "xshell",
|
| 326 |
+
"xt_iis", "xt_tis", "xtab_p", "xtabond", "xtbin_p",
|
| 327 |
+
"xtclog", "xtcloglog", "xtcloglog_8", "xtcloglog_d2",
|
| 328 |
+
"xtcloglog_pa_p", "xtcloglog_re_p", "xtcnt_p", "xtcorr",
|
| 329 |
+
"xtdata", "xtdes", "xtfront_p", "xtfrontier", "xtgee",
|
| 330 |
+
"xtgee_elink", "xtgee_estat", "xtgee_makeivar", "xtgee_p",
|
| 331 |
+
"xtgee_plink", "xtgls", "xtgls_p", "xthaus", "xthausman",
|
| 332 |
+
"xtht_p", "xthtaylor", "xtile", "xtint_p", "xtintreg",
|
| 333 |
+
"xtintreg_8", "xtintreg_d2", "xtintreg_p", "xtivp_1",
|
| 334 |
+
"xtivp_2", "xtivreg", "xtline", "xtline_ex", "xtlogit",
|
| 335 |
+
"xtlogit_8", "xtlogit_d2", "xtlogit_fe_p", "xtlogit_pa_p",
|
| 336 |
+
"xtlogit_re_p", "xtmixed", "xtmixed_estat", "xtmixed_p",
|
| 337 |
+
"xtnb_fe", "xtnb_lf", "xtnbreg", "xtnbreg_pa_p",
|
| 338 |
+
"xtnbreg_refe_p", "xtpcse", "xtpcse_p", "xtpois", "xtpoisson",
|
| 339 |
+
"xtpoisson_d2", "xtpoisson_pa_p", "xtpoisson_refe_p", "xtpred",
|
| 340 |
+
"xtprobit", "xtprobit_8", "xtprobit_d2", "xtprobit_re_p",
|
| 341 |
+
"xtps_fe", "xtps_lf", "xtps_ren", "xtps_ren_8", "xtrar_p",
|
| 342 |
+
"xtrc", "xtrc_p", "xtrchh", "xtrefe_p", "xtreg", "xtreg_be",
|
| 343 |
+
"xtreg_fe", "xtreg_ml", "xtreg_pa_p", "xtreg_re",
|
| 344 |
+
"xtregar", "xtrere_p", "xtset", "xtsf_ll", "xtsf_llti",
|
| 345 |
+
"xtsum", "xttab", "xttest0", "xttobit", "xttobit_8",
|
| 346 |
+
"xttobit_p", "xttrans", "yx", "yxview__barlike_draw",
|
| 347 |
+
"yxview_area_draw", "yxview_bar_draw", "yxview_dot_draw",
|
| 348 |
+
"yxview_dropline_draw", "yxview_function_draw",
|
| 349 |
+
"yxview_iarrow_draw", "yxview_ilabels_draw",
|
| 350 |
+
"yxview_normal_draw", "yxview_pcarrow_draw",
|
| 351 |
+
"yxview_pcbarrow_draw", "yxview_pccapsym_draw",
|
| 352 |
+
"yxview_pcscatter_draw", "yxview_pcspike_draw",
|
| 353 |
+
"yxview_rarea_draw", "yxview_rbar_draw", "yxview_rbarm_draw",
|
| 354 |
+
"yxview_rcap_draw", "yxview_rcapsym_draw",
|
| 355 |
+
"yxview_rconnected_draw", "yxview_rline_draw",
|
| 356 |
+
"yxview_rscatter_draw", "yxview_rspike_draw",
|
| 357 |
+
"yxview_spike_draw", "yxview_sunflower_draw", "zap_s", "zinb",
|
| 358 |
+
"zinb_llf", "zinb_plf", "zip", "zip_llf", "zip_p", "zip_plf",
|
| 359 |
+
"zt_ct_5", "zt_hc_5", "zt_hcd_5", "zt_is_5", "zt_iss_5",
|
| 360 |
+
"zt_sho_5", "zt_smp_5", "ztbase_5", "ztcox_5", "ztdes_5",
|
| 361 |
+
"ztereg_5", "ztfill_5", "ztgen_5", "ztir_5", "ztjoin_5", "ztnb",
|
| 362 |
+
"ztnb_p", "ztp", "ztp_p", "zts_5", "ztset_5", "ztspli_5",
|
| 363 |
+
"ztsum_5", "zttoct_5", "ztvary_5", "ztweib_5"
|
| 364 |
+
)
|
| 365 |
+
|
| 366 |
+
|
| 367 |
+
|
| 368 |
+
builtins_functions = (
|
| 369 |
+
"abbrev", "abs", "acos", "acosh", "asin", "asinh", "atan",
|
| 370 |
+
"atan2", "atanh", "autocode", "betaden", "binomial",
|
| 371 |
+
"binomialp", "binomialtail", "binormal", "bofd",
|
| 372 |
+
"byteorder", "c", "_caller", "cauchy", "cauchyden",
|
| 373 |
+
"cauchytail", "Cdhms", "ceil", "char", "chi2", "chi2den",
|
| 374 |
+
"chi2tail", "Chms", "chop", "cholesky", "clip", "Clock",
|
| 375 |
+
"clock", "cloglog", "Cmdyhms", "Cofc", "cofC", "Cofd", "cofd",
|
| 376 |
+
"coleqnumb", "collatorlocale", "collatorversion",
|
| 377 |
+
"colnfreeparms", "colnumb", "colsof", "comb", "cond", "corr",
|
| 378 |
+
"cos", "cosh", "daily", "date", "day", "det", "dgammapda",
|
| 379 |
+
"dgammapdada", "dgammapdadx", "dgammapdx", "dgammapdxdx",
|
| 380 |
+
"dhms", "diag", "diag0cnt", "digamma", "dofb", "dofC", "dofc",
|
| 381 |
+
"dofh", "dofm", "dofq", "dofw", "dofy", "dow", "doy",
|
| 382 |
+
"dunnettprob", "e", "el", "esample", "epsdouble", "epsfloat",
|
| 383 |
+
"exp", "expm1", "exponential", "exponentialden",
|
| 384 |
+
"exponentialtail", "F", "Fden", "fileexists", "fileread",
|
| 385 |
+
"filereaderror", "filewrite", "float", "floor", "fmtwidth",
|
| 386 |
+
"frval", "_frval", "Ftail", "gammaden", "gammap", "gammaptail",
|
| 387 |
+
"get", "hadamard", "halfyear", "halfyearly", "has_eprop", "hh",
|
| 388 |
+
"hhC", "hms", "hofd", "hours", "hypergeometric",
|
| 389 |
+
"hypergeometricp", "I", "ibeta", "ibetatail", "igaussian",
|
| 390 |
+
"igaussianden", "igaussiantail", "indexnot", "inlist",
|
| 391 |
+
"inrange", "int", "inv", "invbinomial", "invbinomialtail",
|
| 392 |
+
"invcauchy", "invcauchytail", "invchi2", "invchi2tail",
|
| 393 |
+
"invcloglog", "invdunnettprob", "invexponential",
|
| 394 |
+
"invexponentialtail", "invF", "invFtail", "invgammap",
|
| 395 |
+
"invgammaptail", "invibeta", "invibetatail", "invigaussian",
|
| 396 |
+
"invigaussiantail", "invlaplace", "invlaplacetail",
|
| 397 |
+
"invlogisticp", "invlogisticsp", "invlogisticmsp",
|
| 398 |
+
"invlogistictailp", "invlogistictailsp", "invlogistictailmsp",
|
| 399 |
+
"invlogit", "invnbinomial", "invnbinomialtail", "invnchi2",
|
| 400 |
+
"invnchi2tail", "invnF", "invnFtail", "invnibeta",
|
| 401 |
+
"invnormal", "invnt", "invnttail", "invpoisson",
|
| 402 |
+
"invpoissontail", "invsym", "invt", "invttail", "invtukeyprob",
|
| 403 |
+
"invweibullabp", "invweibullabgp", "invweibullphabp",
|
| 404 |
+
"invweibullphabgp", "invweibullphtailabp",
|
| 405 |
+
"invweibullphtailabgp", "invweibulltailabp",
|
| 406 |
+
"invweibulltailabgp", "irecode", "issymmetric", "J", "laplace",
|
| 407 |
+
"laplaceden", "laplacetail", "ln", "ln1m", "ln1p", "lncauchyden",
|
| 408 |
+
"lnfactorial", "lngamma", "lnigammaden", "lnigaussianden",
|
| 409 |
+
"lniwishartden", "lnlaplaceden", "lnmvnormalden", "lnnormal",
|
| 410 |
+
"lnnormalden", "lnnormaldenxs", "lnnormaldenxms", "lnwishartden",
|
| 411 |
+
"log", "log10", "log1m", "log1p", "logisticx", "logisticsx",
|
| 412 |
+
"logisticmsx", "logisticdenx", "logisticdensx", "logisticdenmsx",
|
| 413 |
+
"logistictailx", "logistictailsx", "logistictailmsx", "logit",
|
| 414 |
+
"matmissing", "matrix", "matuniform", "max", "maxbyte",
|
| 415 |
+
"maxdouble", "maxfloat", "maxint", "maxlong", "mdy", "mdyhms",
|
| 416 |
+
"mi", "min", "minbyte", "mindouble", "minfloat", "minint",
|
| 417 |
+
"minlong", "minutes", "missing", "mm", "mmC", "mod", "mofd",
|
| 418 |
+
"month", "monthly", "mreldif", "msofhours", "msofminutes",
|
| 419 |
+
"msofseconds", "nbetaden", "nbinomial", "nbinomialp",
|
| 420 |
+
"nbinomialtail", "nchi2", "nchi2den", "nchi2tail", "nF",
|
| 421 |
+
"nFden", "nFtail", "nibeta", "normal", "normalden",
|
| 422 |
+
"normaldenxs", "normaldenxms", "npnchi2", "npnF", "npnt",
|
| 423 |
+
"nt", "ntden", "nttail", "nullmat", "plural", "plurals1",
|
| 424 |
+
"poisson", "poissonp", "poissontail", "qofd", "quarter",
|
| 425 |
+
"quarterly", "r", "rbeta", "rbinomial", "rcauchy", "rchi2",
|
| 426 |
+
"recode", "real", "regexm", "regexr", "regexs", "reldif",
|
| 427 |
+
"replay", "return", "rexponential", "rgamma", "rhypergeometric",
|
| 428 |
+
"rigaussian", "rlaplace", "rlogistic", "rlogistics",
|
| 429 |
+
"rlogisticms", "rnbinomial", "rnormal", "rnormalm", "rnormalms",
|
| 430 |
+
"round", "roweqnumb", "rownfreeparms", "rownumb", "rowsof",
|
| 431 |
+
"rpoisson", "rt", "runiform", "runiformab", "runiformint",
|
| 432 |
+
"rweibullab", "rweibullabg", "rweibullphab", "rweibullphabg",
|
| 433 |
+
"s", "scalar", "seconds", "sign", "sin", "sinh",
|
| 434 |
+
"smallestdouble", "soundex", "soundex_nara", "sqrt", "ss",
|
| 435 |
+
"ssC", "strcat", "strdup", "string", "stringns", "stritrim",
|
| 436 |
+
"strlen", "strlower", "strltrim", "strmatch", "strofreal",
|
| 437 |
+
"strofrealns", "strpos", "strproper", "strreverse", "strrpos",
|
| 438 |
+
"strrtrim", "strtoname", "strtrim", "strupper", "subinstr",
|
| 439 |
+
"subinword", "substr", "sum", "sweep", "t", "tan", "tanh",
|
| 440 |
+
"tC", "tc", "td", "tden", "th", "tin", "tm", "tobytes", "tq",
|
| 441 |
+
"trace", "trigamma", "trunc", "ttail", "tukeyprob", "tw",
|
| 442 |
+
"twithin", "uchar", "udstrlen", "udsubstr", "uisdigit",
|
| 443 |
+
"uisletter", "ustrcompare", "ustrfix", "ustrfrom",
|
| 444 |
+
"ustrinvalidcnt", "ustrleft", "ustrlen", "ustrlower",
|
| 445 |
+
"ustrltrim", "ustrnormalize", "ustrpos", "ustrregexm",
|
| 446 |
+
"ustrregexra", "ustrregexrf", "ustrregexs", "ustrreverse",
|
| 447 |
+
"ustrright", "ustrrpos", "ustrrtrim", "ustrsortkey",
|
| 448 |
+
"ustrtitle", "ustrto", "ustrtohex", "ustrtoname",
|
| 449 |
+
"ustrtrim", "ustrunescape", "ustrupper", "ustrword",
|
| 450 |
+
"ustrwordcount", "usubinstr", "usubstr", "vec", "vecdiag",
|
| 451 |
+
"week", "weekly", "weibullabx", "weibullabgx", "weibulldenabx",
|
| 452 |
+
"weibulldenabgx", "weibullphabx", "weibullphabgx",
|
| 453 |
+
"weibullphdenabx", "weibullphdenabgx", "weibullphtailabx",
|
| 454 |
+
"weibullphtailabgx", "weibulltailabx", "weibulltailabgx",
|
| 455 |
+
"wofd", "word", "wordbreaklocale", "wordcount",
|
| 456 |
+
"year", "yearly", "yh", "ym", "yofd", "yq", "yw"
|
| 457 |
+
)
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/_usd_builtins.py
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pygments.lexers._usd_builtins
|
| 3 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
A collection of known USD-related keywords, attributes, and types.
|
| 6 |
+
|
| 7 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 8 |
+
:license: BSD, see LICENSE for details.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
COMMON_ATTRIBUTES = [
|
| 12 |
+
"extent",
|
| 13 |
+
"xformOpOrder",
|
| 14 |
+
]
|
| 15 |
+
|
| 16 |
+
KEYWORDS = [
|
| 17 |
+
"class",
|
| 18 |
+
"clips",
|
| 19 |
+
"custom",
|
| 20 |
+
"customData",
|
| 21 |
+
"def",
|
| 22 |
+
"dictionary",
|
| 23 |
+
"inherits",
|
| 24 |
+
"over",
|
| 25 |
+
"payload",
|
| 26 |
+
"references",
|
| 27 |
+
"rel",
|
| 28 |
+
"subLayers",
|
| 29 |
+
"timeSamples",
|
| 30 |
+
"uniform",
|
| 31 |
+
"variantSet",
|
| 32 |
+
"variantSets",
|
| 33 |
+
"variants",
|
| 34 |
+
]
|
| 35 |
+
|
| 36 |
+
OPERATORS = [
|
| 37 |
+
"add",
|
| 38 |
+
"append",
|
| 39 |
+
"delete",
|
| 40 |
+
"prepend",
|
| 41 |
+
"reorder",
|
| 42 |
+
]
|
| 43 |
+
|
| 44 |
+
SPECIAL_NAMES = [
|
| 45 |
+
"active",
|
| 46 |
+
"apiSchemas",
|
| 47 |
+
"defaultPrim",
|
| 48 |
+
"elementSize",
|
| 49 |
+
"endTimeCode",
|
| 50 |
+
"hidden",
|
| 51 |
+
"instanceable",
|
| 52 |
+
"interpolation",
|
| 53 |
+
"kind",
|
| 54 |
+
"startTimeCode",
|
| 55 |
+
"upAxis",
|
| 56 |
+
]
|
| 57 |
+
|
| 58 |
+
TYPES = [
|
| 59 |
+
"asset",
|
| 60 |
+
"bool",
|
| 61 |
+
"color3d",
|
| 62 |
+
"color3f",
|
| 63 |
+
"color3h",
|
| 64 |
+
"color4d",
|
| 65 |
+
"color4f",
|
| 66 |
+
"color4h",
|
| 67 |
+
"double",
|
| 68 |
+
"double2",
|
| 69 |
+
"double3",
|
| 70 |
+
"double4",
|
| 71 |
+
"float",
|
| 72 |
+
"float2",
|
| 73 |
+
"float3",
|
| 74 |
+
"float4",
|
| 75 |
+
"frame4d",
|
| 76 |
+
"half",
|
| 77 |
+
"half2",
|
| 78 |
+
"half3",
|
| 79 |
+
"half4",
|
| 80 |
+
"int",
|
| 81 |
+
"int2",
|
| 82 |
+
"int3",
|
| 83 |
+
"int4",
|
| 84 |
+
"keyword",
|
| 85 |
+
"matrix2d",
|
| 86 |
+
"matrix3d",
|
| 87 |
+
"matrix4d",
|
| 88 |
+
"normal3d",
|
| 89 |
+
"normal3f",
|
| 90 |
+
"normal3h",
|
| 91 |
+
"point3d",
|
| 92 |
+
"point3f",
|
| 93 |
+
"point3h",
|
| 94 |
+
"quatd",
|
| 95 |
+
"quatf",
|
| 96 |
+
"quath",
|
| 97 |
+
"string",
|
| 98 |
+
"syn",
|
| 99 |
+
"token",
|
| 100 |
+
"uchar",
|
| 101 |
+
"uchar2",
|
| 102 |
+
"uchar3",
|
| 103 |
+
"uchar4",
|
| 104 |
+
"uint",
|
| 105 |
+
"uint2",
|
| 106 |
+
"uint3",
|
| 107 |
+
"uint4",
|
| 108 |
+
"usdaType",
|
| 109 |
+
"vector3d",
|
| 110 |
+
"vector3f",
|
| 111 |
+
"vector3h",
|
| 112 |
+
]
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/actionscript.py
ADDED
|
@@ -0,0 +1,243 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
Lexers for ActionScript and MXML.
|
| 6 |
+
|
| 7 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 8 |
+
:license: BSD, see LICENSE for details.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
import re
|
| 12 |
+
|
| 13 |
+
from pygments.lexer import RegexLexer, bygroups, using, this, words, default
|
| 14 |
+
from pygments.token import Text, Comment, Operator, Keyword, Name, String, \
|
| 15 |
+
Number, Punctuation, Whitespace
|
| 16 |
+
|
| 17 |
+
__all__ = ['ActionScriptLexer', 'ActionScript3Lexer', 'MxmlLexer']
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
class ActionScriptLexer(RegexLexer):
|
| 21 |
+
"""
|
| 22 |
+
For ActionScript source code.
|
| 23 |
+
"""
|
| 24 |
+
|
| 25 |
+
name = 'ActionScript'
|
| 26 |
+
aliases = ['actionscript', 'as']
|
| 27 |
+
filenames = ['*.as']
|
| 28 |
+
mimetypes = ['application/x-actionscript', 'text/x-actionscript',
|
| 29 |
+
'text/actionscript']
|
| 30 |
+
url = 'https://en.wikipedia.org/wiki/ActionScript'
|
| 31 |
+
version_added = '0.9'
|
| 32 |
+
|
| 33 |
+
flags = re.DOTALL
|
| 34 |
+
tokens = {
|
| 35 |
+
'root': [
|
| 36 |
+
(r'\s+', Whitespace),
|
| 37 |
+
(r'//.*?\n', Comment.Single),
|
| 38 |
+
(r'/\*.*?\*/', Comment.Multiline),
|
| 39 |
+
(r'/(\\\\|\\[^\\]|[^/\\\n])*/[gim]*', String.Regex),
|
| 40 |
+
(r'[~^*!%&<>|+=:;,/?\\-]+', Operator),
|
| 41 |
+
(r'[{}\[\]();.]+', Punctuation),
|
| 42 |
+
(words((
|
| 43 |
+
'case', 'default', 'for', 'each', 'in', 'while', 'do', 'break',
|
| 44 |
+
'return', 'continue', 'if', 'else', 'throw', 'try', 'catch',
|
| 45 |
+
'var', 'with', 'new', 'typeof', 'arguments', 'instanceof', 'this',
|
| 46 |
+
'switch'), suffix=r'\b'),
|
| 47 |
+
Keyword),
|
| 48 |
+
(words((
|
| 49 |
+
'class', 'public', 'final', 'internal', 'native', 'override', 'private',
|
| 50 |
+
'protected', 'static', 'import', 'extends', 'implements', 'interface',
|
| 51 |
+
'intrinsic', 'return', 'super', 'dynamic', 'function', 'const', 'get',
|
| 52 |
+
'namespace', 'package', 'set'), suffix=r'\b'),
|
| 53 |
+
Keyword.Declaration),
|
| 54 |
+
(r'(true|false|null|NaN|Infinity|-Infinity|undefined|Void)\b',
|
| 55 |
+
Keyword.Constant),
|
| 56 |
+
(words((
|
| 57 |
+
'Accessibility', 'AccessibilityProperties', 'ActionScriptVersion',
|
| 58 |
+
'ActivityEvent', 'AntiAliasType', 'ApplicationDomain', 'AsBroadcaster', 'Array',
|
| 59 |
+
'AsyncErrorEvent', 'AVM1Movie', 'BevelFilter', 'Bitmap', 'BitmapData',
|
| 60 |
+
'BitmapDataChannel', 'BitmapFilter', 'BitmapFilterQuality', 'BitmapFilterType',
|
| 61 |
+
'BlendMode', 'BlurFilter', 'Boolean', 'ByteArray', 'Camera', 'Capabilities', 'CapsStyle',
|
| 62 |
+
'Class', 'Color', 'ColorMatrixFilter', 'ColorTransform', 'ContextMenu',
|
| 63 |
+
'ContextMenuBuiltInItems', 'ContextMenuEvent', 'ContextMenuItem',
|
| 64 |
+
'ConvultionFilter', 'CSMSettings', 'DataEvent', 'Date', 'DefinitionError',
|
| 65 |
+
'DeleteObjectSample', 'Dictionary', 'DisplacmentMapFilter', 'DisplayObject',
|
| 66 |
+
'DisplacmentMapFilterMode', 'DisplayObjectContainer', 'DropShadowFilter',
|
| 67 |
+
'Endian', 'EOFError', 'Error', 'ErrorEvent', 'EvalError', 'Event', 'EventDispatcher',
|
| 68 |
+
'EventPhase', 'ExternalInterface', 'FileFilter', 'FileReference',
|
| 69 |
+
'FileReferenceList', 'FocusDirection', 'FocusEvent', 'Font', 'FontStyle', 'FontType',
|
| 70 |
+
'FrameLabel', 'FullScreenEvent', 'Function', 'GlowFilter', 'GradientBevelFilter',
|
| 71 |
+
'GradientGlowFilter', 'GradientType', 'Graphics', 'GridFitType', 'HTTPStatusEvent',
|
| 72 |
+
'IBitmapDrawable', 'ID3Info', 'IDataInput', 'IDataOutput', 'IDynamicPropertyOutput'
|
| 73 |
+
'IDynamicPropertyWriter', 'IEventDispatcher', 'IExternalizable',
|
| 74 |
+
'IllegalOperationError', 'IME', 'IMEConversionMode', 'IMEEvent', 'int',
|
| 75 |
+
'InteractiveObject', 'InterpolationMethod', 'InvalidSWFError', 'InvokeEvent',
|
| 76 |
+
'IOError', 'IOErrorEvent', 'JointStyle', 'Key', 'Keyboard', 'KeyboardEvent', 'KeyLocation',
|
| 77 |
+
'LineScaleMode', 'Loader', 'LoaderContext', 'LoaderInfo', 'LoadVars', 'LocalConnection',
|
| 78 |
+
'Locale', 'Math', 'Matrix', 'MemoryError', 'Microphone', 'MorphShape', 'Mouse', 'MouseEvent',
|
| 79 |
+
'MovieClip', 'MovieClipLoader', 'Namespace', 'NetConnection', 'NetStatusEvent',
|
| 80 |
+
'NetStream', 'NewObjectSample', 'Number', 'Object', 'ObjectEncoding', 'PixelSnapping',
|
| 81 |
+
'Point', 'PrintJob', 'PrintJobOptions', 'PrintJobOrientation', 'ProgressEvent', 'Proxy',
|
| 82 |
+
'QName', 'RangeError', 'Rectangle', 'ReferenceError', 'RegExp', 'Responder', 'Sample',
|
| 83 |
+
'Scene', 'ScriptTimeoutError', 'Security', 'SecurityDomain', 'SecurityError',
|
| 84 |
+
'SecurityErrorEvent', 'SecurityPanel', 'Selection', 'Shape', 'SharedObject',
|
| 85 |
+
'SharedObjectFlushStatus', 'SimpleButton', 'Socket', 'Sound', 'SoundChannel',
|
| 86 |
+
'SoundLoaderContext', 'SoundMixer', 'SoundTransform', 'SpreadMethod', 'Sprite',
|
| 87 |
+
'StackFrame', 'StackOverflowError', 'Stage', 'StageAlign', 'StageDisplayState',
|
| 88 |
+
'StageQuality', 'StageScaleMode', 'StaticText', 'StatusEvent', 'String', 'StyleSheet',
|
| 89 |
+
'SWFVersion', 'SyncEvent', 'SyntaxError', 'System', 'TextColorType', 'TextField',
|
| 90 |
+
'TextFieldAutoSize', 'TextFieldType', 'TextFormat', 'TextFormatAlign',
|
| 91 |
+
'TextLineMetrics', 'TextRenderer', 'TextSnapshot', 'Timer', 'TimerEvent', 'Transform',
|
| 92 |
+
'TypeError', 'uint', 'URIError', 'URLLoader', 'URLLoaderDataFormat', 'URLRequest',
|
| 93 |
+
'URLRequestHeader', 'URLRequestMethod', 'URLStream', 'URLVariabeles', 'VerifyError',
|
| 94 |
+
'Video', 'XML', 'XMLDocument', 'XMLList', 'XMLNode', 'XMLNodeType', 'XMLSocket',
|
| 95 |
+
'XMLUI'), suffix=r'\b'),
|
| 96 |
+
Name.Builtin),
|
| 97 |
+
(words((
|
| 98 |
+
'decodeURI', 'decodeURIComponent', 'encodeURI', 'escape', 'eval', 'isFinite', 'isNaN',
|
| 99 |
+
'isXMLName', 'clearInterval', 'fscommand', 'getTimer', 'getURL', 'getVersion',
|
| 100 |
+
'parseFloat', 'parseInt', 'setInterval', 'trace', 'updateAfterEvent',
|
| 101 |
+
'unescape'), suffix=r'\b'),
|
| 102 |
+
Name.Function),
|
| 103 |
+
(r'[$a-zA-Z_]\w*', Name.Other),
|
| 104 |
+
(r'[0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?', Number.Float),
|
| 105 |
+
(r'0x[0-9a-f]+', Number.Hex),
|
| 106 |
+
(r'[0-9]+', Number.Integer),
|
| 107 |
+
(r'"(\\\\|\\[^\\]|[^"\\])*"', String.Double),
|
| 108 |
+
(r"'(\\\\|\\[^\\]|[^'\\])*'", String.Single),
|
| 109 |
+
]
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
def analyse_text(text):
|
| 113 |
+
"""This is only used to disambiguate between ActionScript and
|
| 114 |
+
ActionScript3. We return 0 here; the ActionScript3 lexer will match
|
| 115 |
+
AS3 variable definitions and that will hopefully suffice."""
|
| 116 |
+
return 0
|
| 117 |
+
|
| 118 |
+
class ActionScript3Lexer(RegexLexer):
|
| 119 |
+
"""
|
| 120 |
+
For ActionScript 3 source code.
|
| 121 |
+
"""
|
| 122 |
+
|
| 123 |
+
name = 'ActionScript 3'
|
| 124 |
+
url = 'https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/index.html'
|
| 125 |
+
aliases = ['actionscript3', 'as3']
|
| 126 |
+
filenames = ['*.as']
|
| 127 |
+
mimetypes = ['application/x-actionscript3', 'text/x-actionscript3',
|
| 128 |
+
'text/actionscript3']
|
| 129 |
+
version_added = '0.11'
|
| 130 |
+
|
| 131 |
+
identifier = r'[$a-zA-Z_]\w*'
|
| 132 |
+
typeidentifier = identifier + r'(?:\.<\w+>)?'
|
| 133 |
+
|
| 134 |
+
flags = re.DOTALL | re.MULTILINE
|
| 135 |
+
tokens = {
|
| 136 |
+
'root': [
|
| 137 |
+
(r'\s+', Whitespace),
|
| 138 |
+
(r'(function\s+)(' + identifier + r')(\s*)(\()',
|
| 139 |
+
bygroups(Keyword.Declaration, Name.Function, Text, Operator),
|
| 140 |
+
'funcparams'),
|
| 141 |
+
(r'(var|const)(\s+)(' + identifier + r')(\s*)(:)(\s*)(' +
|
| 142 |
+
typeidentifier + r')',
|
| 143 |
+
bygroups(Keyword.Declaration, Whitespace, Name, Whitespace, Punctuation, Whitespace,
|
| 144 |
+
Keyword.Type)),
|
| 145 |
+
(r'(import|package)(\s+)((?:' + identifier + r'|\.)+)(\s*)',
|
| 146 |
+
bygroups(Keyword, Whitespace, Name.Namespace, Whitespace)),
|
| 147 |
+
(r'(new)(\s+)(' + typeidentifier + r')(\s*)(\()',
|
| 148 |
+
bygroups(Keyword, Whitespace, Keyword.Type, Whitespace, Operator)),
|
| 149 |
+
(r'//.*?\n', Comment.Single),
|
| 150 |
+
(r'/\*.*?\*/', Comment.Multiline),
|
| 151 |
+
(r'/(\\\\|\\[^\\]|[^\\\n])*/[gisx]*', String.Regex),
|
| 152 |
+
(r'(\.)(' + identifier + r')', bygroups(Operator, Name.Attribute)),
|
| 153 |
+
(r'(case|default|for|each|in|while|do|break|return|continue|if|else|'
|
| 154 |
+
r'throw|try|catch|with|new|typeof|arguments|instanceof|this|'
|
| 155 |
+
r'switch|import|include|as|is)\b',
|
| 156 |
+
Keyword),
|
| 157 |
+
(r'(class|public|final|internal|native|override|private|protected|'
|
| 158 |
+
r'static|import|extends|implements|interface|intrinsic|return|super|'
|
| 159 |
+
r'dynamic|function|const|get|namespace|package|set)\b',
|
| 160 |
+
Keyword.Declaration),
|
| 161 |
+
(r'(true|false|null|NaN|Infinity|-Infinity|undefined|void)\b',
|
| 162 |
+
Keyword.Constant),
|
| 163 |
+
(r'(decodeURI|decodeURIComponent|encodeURI|escape|eval|isFinite|isNaN|'
|
| 164 |
+
r'isXMLName|clearInterval|fscommand|getTimer|getURL|getVersion|'
|
| 165 |
+
r'isFinite|parseFloat|parseInt|setInterval|trace|updateAfterEvent|'
|
| 166 |
+
r'unescape)\b', Name.Function),
|
| 167 |
+
(identifier, Name),
|
| 168 |
+
(r'[0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?', Number.Float),
|
| 169 |
+
(r'0x[0-9a-f]+', Number.Hex),
|
| 170 |
+
(r'[0-9]+', Number.Integer),
|
| 171 |
+
(r'"(\\\\|\\[^\\]|[^"\\])*"', String.Double),
|
| 172 |
+
(r"'(\\\\|\\[^\\]|[^'\\])*'", String.Single),
|
| 173 |
+
(r'[~^*!%&<>|+=:;,/?\\{}\[\]().-]+', Operator),
|
| 174 |
+
],
|
| 175 |
+
'funcparams': [
|
| 176 |
+
(r'\s+', Whitespace),
|
| 177 |
+
(r'(\s*)(\.\.\.)?(' + identifier + r')(\s*)(:)(\s*)(' +
|
| 178 |
+
typeidentifier + r'|\*)(\s*)',
|
| 179 |
+
bygroups(Whitespace, Punctuation, Name, Whitespace, Operator, Whitespace,
|
| 180 |
+
Keyword.Type, Whitespace), 'defval'),
|
| 181 |
+
(r'\)', Operator, 'type')
|
| 182 |
+
],
|
| 183 |
+
'type': [
|
| 184 |
+
(r'(\s*)(:)(\s*)(' + typeidentifier + r'|\*)',
|
| 185 |
+
bygroups(Whitespace, Operator, Whitespace, Keyword.Type), '#pop:2'),
|
| 186 |
+
(r'\s+', Text, '#pop:2'),
|
| 187 |
+
default('#pop:2')
|
| 188 |
+
],
|
| 189 |
+
'defval': [
|
| 190 |
+
(r'(=)(\s*)([^(),]+)(\s*)(,?)',
|
| 191 |
+
bygroups(Operator, Whitespace, using(this), Whitespace, Operator), '#pop'),
|
| 192 |
+
(r',', Operator, '#pop'),
|
| 193 |
+
default('#pop')
|
| 194 |
+
]
|
| 195 |
+
}
|
| 196 |
+
|
| 197 |
+
def analyse_text(text):
|
| 198 |
+
if re.match(r'\w+\s*:\s*\w', text):
|
| 199 |
+
return 0.3
|
| 200 |
+
return 0
|
| 201 |
+
|
| 202 |
+
|
| 203 |
+
class MxmlLexer(RegexLexer):
|
| 204 |
+
"""
|
| 205 |
+
For MXML markup.
|
| 206 |
+
Nested AS3 in <script> tags is highlighted by the appropriate lexer.
|
| 207 |
+
"""
|
| 208 |
+
flags = re.MULTILINE | re.DOTALL
|
| 209 |
+
name = 'MXML'
|
| 210 |
+
aliases = ['mxml']
|
| 211 |
+
filenames = ['*.mxml']
|
| 212 |
+
url = 'https://en.wikipedia.org/wiki/MXML'
|
| 213 |
+
version_added = '1.1'
|
| 214 |
+
|
| 215 |
+
tokens = {
|
| 216 |
+
'root': [
|
| 217 |
+
('[^<&]+', Text),
|
| 218 |
+
(r'&\S*?;', Name.Entity),
|
| 219 |
+
(r'(\<\!\[CDATA\[)(.*?)(\]\]\>)',
|
| 220 |
+
bygroups(String, using(ActionScript3Lexer), String)),
|
| 221 |
+
('<!--', Comment, 'comment'),
|
| 222 |
+
(r'<\?.*?\?>', Comment.Preproc),
|
| 223 |
+
('<![^>]*>', Comment.Preproc),
|
| 224 |
+
(r'<\s*[\w:.-]+', Name.Tag, 'tag'),
|
| 225 |
+
(r'<\s*/\s*[\w:.-]+\s*>', Name.Tag),
|
| 226 |
+
],
|
| 227 |
+
'comment': [
|
| 228 |
+
('[^-]+', Comment),
|
| 229 |
+
('-->', Comment, '#pop'),
|
| 230 |
+
('-', Comment),
|
| 231 |
+
],
|
| 232 |
+
'tag': [
|
| 233 |
+
(r'\s+', Whitespace),
|
| 234 |
+
(r'[\w.:-]+\s*=', Name.Attribute, 'attr'),
|
| 235 |
+
(r'/?\s*>', Name.Tag, '#pop'),
|
| 236 |
+
],
|
| 237 |
+
'attr': [
|
| 238 |
+
(r'\s+', Whitespace),
|
| 239 |
+
('".*?"', String, '#pop'),
|
| 240 |
+
("'.*?'", String, '#pop'),
|
| 241 |
+
(r'[^\s>]+', String, '#pop'),
|
| 242 |
+
],
|
| 243 |
+
}
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/archetype.py
ADDED
|
@@ -0,0 +1,315 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pygments.lexers.archetype
|
| 3 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
Lexer for Archetype-related syntaxes, including ODIN, ADL and cADL.
|
| 6 |
+
|
| 7 |
+
For uses of this syntax, see the openEHR archetypes <http://www.openEHR.org/ckm>
|
| 8 |
+
|
| 9 |
+
Contributed by Thomas Beale <https://github.com/wolandscat>,
|
| 10 |
+
<https://bitbucket.org/thomas_beale>.
|
| 11 |
+
|
| 12 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 13 |
+
:license: BSD, see LICENSE for details.
|
| 14 |
+
"""
|
| 15 |
+
|
| 16 |
+
from pygments.lexer import RegexLexer, include, bygroups, using, default
|
| 17 |
+
from pygments.token import Text, Comment, Name, Literal, Number, String, \
|
| 18 |
+
Punctuation, Keyword, Operator, Generic, Whitespace
|
| 19 |
+
|
| 20 |
+
__all__ = ['OdinLexer', 'CadlLexer', 'AdlLexer']
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
class AtomsLexer(RegexLexer):
|
| 24 |
+
"""
|
| 25 |
+
Lexer for Values used in ADL and ODIN.
|
| 26 |
+
|
| 27 |
+
.. versionadded:: 2.1
|
| 28 |
+
"""
|
| 29 |
+
|
| 30 |
+
tokens = {
|
| 31 |
+
# ----- pseudo-states for inclusion -----
|
| 32 |
+
'whitespace': [
|
| 33 |
+
(r'\n', Whitespace),
|
| 34 |
+
(r'\s+', Whitespace),
|
| 35 |
+
(r'([ \t]*)(--.*)$', bygroups(Whitespace, Comment)),
|
| 36 |
+
],
|
| 37 |
+
'archetype_id': [
|
| 38 |
+
(r'([ \t]*)(([a-zA-Z]\w+(\.[a-zA-Z]\w+)*::)?[a-zA-Z]\w+(-[a-zA-Z]\w+){2}'
|
| 39 |
+
r'\.\w+[\w-]*\.v\d+(\.\d+){,2}((-[a-z]+)(\.\d+)?)?)',
|
| 40 |
+
bygroups(Whitespace, Name.Decorator)),
|
| 41 |
+
],
|
| 42 |
+
'date_constraints': [
|
| 43 |
+
# ISO 8601-based date/time constraints
|
| 44 |
+
(r'[Xx?YyMmDdHhSs\d]{2,4}([:-][Xx?YyMmDdHhSs\d]{2}){2}', Literal.Date),
|
| 45 |
+
# ISO 8601-based duration constraints + optional trailing slash
|
| 46 |
+
(r'(P[YyMmWwDd]+(T[HhMmSs]+)?|PT[HhMmSs]+)/?', Literal.Date),
|
| 47 |
+
],
|
| 48 |
+
'ordered_values': [
|
| 49 |
+
# ISO 8601 date with optional 'T' ligature
|
| 50 |
+
(r'\d{4}-\d{2}-\d{2}T?', Literal.Date),
|
| 51 |
+
# ISO 8601 time
|
| 52 |
+
(r'\d{2}:\d{2}:\d{2}(\.\d+)?([+-]\d{4}|Z)?', Literal.Date),
|
| 53 |
+
# ISO 8601 duration
|
| 54 |
+
(r'P((\d*(\.\d+)?[YyMmWwDd]){1,3}(T(\d*(\.\d+)?[HhMmSs]){,3})?|'
|
| 55 |
+
r'T(\d*(\.\d+)?[HhMmSs]){,3})', Literal.Date),
|
| 56 |
+
(r'[+-]?(\d+\.\d*|\.\d+|\d+)[eE][+-]?\d+', Number.Float),
|
| 57 |
+
(r'[+-]?\d*\.\d+%?', Number.Float),
|
| 58 |
+
(r'0x[0-9a-fA-F]+', Number.Hex),
|
| 59 |
+
(r'[+-]?\d+%?', Number.Integer),
|
| 60 |
+
],
|
| 61 |
+
'values': [
|
| 62 |
+
include('ordered_values'),
|
| 63 |
+
(r'([Tt]rue|[Ff]alse)', Literal),
|
| 64 |
+
(r'"', String, 'string'),
|
| 65 |
+
(r"'(\\.|\\[0-7]{1,3}|\\x[a-fA-F0-9]{1,2}|[^\\\'\n])'", String.Char),
|
| 66 |
+
(r'[a-z][a-z0-9+.-]*:', Literal, 'uri'),
|
| 67 |
+
# term code
|
| 68 |
+
(r'(\[)(\w[\w-]*(?:\([^)\n]+\))?)(::)(\w[\w-]*)(\])',
|
| 69 |
+
bygroups(Punctuation, Name.Decorator, Punctuation, Name.Decorator,
|
| 70 |
+
Punctuation)),
|
| 71 |
+
(r'\|', Punctuation, 'interval'),
|
| 72 |
+
# list continuation
|
| 73 |
+
(r'\.\.\.', Punctuation),
|
| 74 |
+
],
|
| 75 |
+
'constraint_values': [
|
| 76 |
+
(r'(\[)(\w[\w-]*(?:\([^)\n]+\))?)(::)',
|
| 77 |
+
bygroups(Punctuation, Name.Decorator, Punctuation), 'adl14_code_constraint'),
|
| 78 |
+
# ADL 1.4 ordinal constraint
|
| 79 |
+
(r'(\d*)(\|)(\[\w[\w-]*::\w[\w-]*\])((?:[,;])?)',
|
| 80 |
+
bygroups(Number, Punctuation, Name.Decorator, Punctuation)),
|
| 81 |
+
include('date_constraints'),
|
| 82 |
+
include('values'),
|
| 83 |
+
],
|
| 84 |
+
|
| 85 |
+
# ----- real states -----
|
| 86 |
+
'string': [
|
| 87 |
+
('"', String, '#pop'),
|
| 88 |
+
(r'\\([\\abfnrtv"\']|x[a-fA-F0-9]{2,4}|'
|
| 89 |
+
r'u[a-fA-F0-9]{4}|U[a-fA-F0-9]{8}|[0-7]{1,3})', String.Escape),
|
| 90 |
+
# all other characters
|
| 91 |
+
(r'[^\\"]+', String),
|
| 92 |
+
# stray backslash
|
| 93 |
+
(r'\\', String),
|
| 94 |
+
],
|
| 95 |
+
'uri': [
|
| 96 |
+
# effective URI terminators
|
| 97 |
+
(r'[,>\s]', Punctuation, '#pop'),
|
| 98 |
+
(r'[^>\s,]+', Literal),
|
| 99 |
+
],
|
| 100 |
+
'interval': [
|
| 101 |
+
(r'\|', Punctuation, '#pop'),
|
| 102 |
+
include('ordered_values'),
|
| 103 |
+
(r'\.\.', Punctuation),
|
| 104 |
+
(r'[<>=] *', Punctuation),
|
| 105 |
+
# handle +/-
|
| 106 |
+
(r'\+/-', Punctuation),
|
| 107 |
+
(r'\s+', Whitespace),
|
| 108 |
+
],
|
| 109 |
+
'any_code': [
|
| 110 |
+
include('archetype_id'),
|
| 111 |
+
# if it is a code
|
| 112 |
+
(r'[a-z_]\w*[0-9.]+(@[^\]]+)?', Name.Decorator),
|
| 113 |
+
# if it is tuple with attribute names
|
| 114 |
+
(r'[a-z_]\w*', Name.Class),
|
| 115 |
+
# if it is an integer, i.e. Xpath child index
|
| 116 |
+
(r'[0-9]+', Text),
|
| 117 |
+
(r'\|', Punctuation, 'code_rubric'),
|
| 118 |
+
(r'\]', Punctuation, '#pop'),
|
| 119 |
+
# handle use_archetype statement
|
| 120 |
+
(r'(\s*)(,)(\s*)', bygroups(Whitespace, Punctuation, Whitespace)),
|
| 121 |
+
],
|
| 122 |
+
'code_rubric': [
|
| 123 |
+
(r'\|', Punctuation, '#pop'),
|
| 124 |
+
(r'[^|]+', String),
|
| 125 |
+
],
|
| 126 |
+
'adl14_code_constraint': [
|
| 127 |
+
(r'\]', Punctuation, '#pop'),
|
| 128 |
+
(r'\|', Punctuation, 'code_rubric'),
|
| 129 |
+
(r'(\w[\w-]*)([;,]?)', bygroups(Name.Decorator, Punctuation)),
|
| 130 |
+
include('whitespace'),
|
| 131 |
+
],
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
class OdinLexer(AtomsLexer):
|
| 136 |
+
"""
|
| 137 |
+
Lexer for ODIN syntax.
|
| 138 |
+
"""
|
| 139 |
+
name = 'ODIN'
|
| 140 |
+
aliases = ['odin']
|
| 141 |
+
filenames = ['*.odin']
|
| 142 |
+
mimetypes = ['text/odin']
|
| 143 |
+
url = 'https://github.com/openEHR/odin'
|
| 144 |
+
version_added = '2.1'
|
| 145 |
+
|
| 146 |
+
tokens = {
|
| 147 |
+
'path': [
|
| 148 |
+
(r'>', Punctuation, '#pop'),
|
| 149 |
+
# attribute name
|
| 150 |
+
(r'[a-z_]\w*', Name.Class),
|
| 151 |
+
(r'/', Punctuation),
|
| 152 |
+
(r'\[', Punctuation, 'key'),
|
| 153 |
+
(r'(\s*)(,)(\s*)', bygroups(Whitespace, Punctuation, Whitespace), '#pop'),
|
| 154 |
+
(r'\s+', Whitespace, '#pop'),
|
| 155 |
+
],
|
| 156 |
+
'key': [
|
| 157 |
+
include('values'),
|
| 158 |
+
(r'\]', Punctuation, '#pop'),
|
| 159 |
+
],
|
| 160 |
+
'type_cast': [
|
| 161 |
+
(r'\)', Punctuation, '#pop'),
|
| 162 |
+
(r'[^)]+', Name.Class),
|
| 163 |
+
],
|
| 164 |
+
'root': [
|
| 165 |
+
include('whitespace'),
|
| 166 |
+
(r'([Tt]rue|[Ff]alse)', Literal),
|
| 167 |
+
include('values'),
|
| 168 |
+
# x-ref path
|
| 169 |
+
(r'/', Punctuation, 'path'),
|
| 170 |
+
# x-ref path starting with key
|
| 171 |
+
(r'\[', Punctuation, 'key'),
|
| 172 |
+
# attribute name
|
| 173 |
+
(r'[a-z_]\w*', Name.Class),
|
| 174 |
+
(r'=', Operator),
|
| 175 |
+
(r'\(', Punctuation, 'type_cast'),
|
| 176 |
+
(r',', Punctuation),
|
| 177 |
+
(r'<', Punctuation),
|
| 178 |
+
(r'>', Punctuation),
|
| 179 |
+
(r';', Punctuation),
|
| 180 |
+
],
|
| 181 |
+
}
|
| 182 |
+
|
| 183 |
+
|
| 184 |
+
class CadlLexer(AtomsLexer):
|
| 185 |
+
"""
|
| 186 |
+
Lexer for cADL syntax.
|
| 187 |
+
"""
|
| 188 |
+
name = 'cADL'
|
| 189 |
+
aliases = ['cadl']
|
| 190 |
+
filenames = ['*.cadl']
|
| 191 |
+
url = 'https://specifications.openehr.org/releases/AM/latest/ADL2.html#_cadl_constraint_adl'
|
| 192 |
+
version_added = '2.1'
|
| 193 |
+
|
| 194 |
+
tokens = {
|
| 195 |
+
'path': [
|
| 196 |
+
# attribute name
|
| 197 |
+
(r'[a-z_]\w*', Name.Class),
|
| 198 |
+
(r'/', Punctuation),
|
| 199 |
+
(r'\[', Punctuation, 'any_code'),
|
| 200 |
+
(r'\s+', Punctuation, '#pop'),
|
| 201 |
+
],
|
| 202 |
+
'root': [
|
| 203 |
+
include('whitespace'),
|
| 204 |
+
(r'(cardinality|existence|occurrences|group|include|exclude|'
|
| 205 |
+
r'allow_archetype|use_archetype|use_node)\W', Keyword.Type),
|
| 206 |
+
(r'(and|or|not|there_exists|xor|implies|for_all)\W', Keyword.Type),
|
| 207 |
+
(r'(after|before|closed)\W', Keyword.Type),
|
| 208 |
+
(r'(not)\W', Operator),
|
| 209 |
+
(r'(matches|is_in)\W', Operator),
|
| 210 |
+
# is_in / not is_in char
|
| 211 |
+
('(\u2208|\u2209)', Operator),
|
| 212 |
+
# there_exists / not there_exists / for_all / and / or
|
| 213 |
+
('(\u2203|\u2204|\u2200|\u2227|\u2228|\u22BB|\223C)',
|
| 214 |
+
Operator),
|
| 215 |
+
# regex in slot or as string constraint
|
| 216 |
+
(r'(\{)(\s*)(/[^}]+/)(\s*)(\})',
|
| 217 |
+
bygroups(Punctuation, Whitespace, String.Regex, Whitespace, Punctuation)),
|
| 218 |
+
# regex in slot or as string constraint
|
| 219 |
+
(r'(\{)(\s*)(\^[^}]+\^)(\s*)(\})',
|
| 220 |
+
bygroups(Punctuation, Whitespace, String.Regex, Whitespace, Punctuation)),
|
| 221 |
+
(r'/', Punctuation, 'path'),
|
| 222 |
+
# for cardinality etc
|
| 223 |
+
(r'(\{)((?:\d+\.\.)?(?:\d+|\*))'
|
| 224 |
+
r'((?:\s*;\s*(?:ordered|unordered|unique)){,2})(\})',
|
| 225 |
+
bygroups(Punctuation, Number, Number, Punctuation)),
|
| 226 |
+
# [{ is start of a tuple value
|
| 227 |
+
(r'\[\{', Punctuation),
|
| 228 |
+
(r'\}\]', Punctuation),
|
| 229 |
+
(r'\{', Punctuation),
|
| 230 |
+
(r'\}', Punctuation),
|
| 231 |
+
include('constraint_values'),
|
| 232 |
+
# type name
|
| 233 |
+
(r'[A-Z]\w+(<[A-Z]\w+([A-Za-z_<>]*)>)?', Name.Class),
|
| 234 |
+
# attribute name
|
| 235 |
+
(r'[a-z_]\w*', Name.Class),
|
| 236 |
+
(r'\[', Punctuation, 'any_code'),
|
| 237 |
+
(r'(~|//|\\\\|\+|-|/|\*|\^|!=|=|<=|>=|<|>]?)', Operator),
|
| 238 |
+
(r'\(', Punctuation),
|
| 239 |
+
(r'\)', Punctuation),
|
| 240 |
+
# for lists of values
|
| 241 |
+
(r',', Punctuation),
|
| 242 |
+
(r'"', String, 'string'),
|
| 243 |
+
# for assumed value
|
| 244 |
+
(r';', Punctuation),
|
| 245 |
+
],
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
+
|
| 249 |
+
class AdlLexer(AtomsLexer):
|
| 250 |
+
"""
|
| 251 |
+
Lexer for ADL syntax.
|
| 252 |
+
"""
|
| 253 |
+
|
| 254 |
+
name = 'ADL'
|
| 255 |
+
aliases = ['adl']
|
| 256 |
+
filenames = ['*.adl', '*.adls', '*.adlf', '*.adlx']
|
| 257 |
+
url = 'https://specifications.openehr.org/releases/AM/latest/ADL2.html'
|
| 258 |
+
version_added = '2.1'
|
| 259 |
+
|
| 260 |
+
tokens = {
|
| 261 |
+
'whitespace': [
|
| 262 |
+
# blank line ends
|
| 263 |
+
(r'\s*\n', Whitespace),
|
| 264 |
+
# comment-only line
|
| 265 |
+
(r'^([ \t]*)(--.*)$', bygroups(Whitespace, Comment)),
|
| 266 |
+
],
|
| 267 |
+
'odin_section': [
|
| 268 |
+
# repeating the following two rules from the root state enable multi-line
|
| 269 |
+
# strings that start in the first column to be dealt with
|
| 270 |
+
(r'^(language|description|ontology|terminology|annotations|'
|
| 271 |
+
r'component_terminologies|revision_history)([ \t]*\n)',
|
| 272 |
+
bygroups(Generic.Heading, Whitespace)),
|
| 273 |
+
(r'^(definition)([ \t]*\n)', bygroups(Generic.Heading, Whitespace), 'cadl_section'),
|
| 274 |
+
(r'^([ \t]*|[ \t]+.*)\n', using(OdinLexer)),
|
| 275 |
+
(r'^([^"]*")(>[ \t]*\n)', bygroups(String, Punctuation)),
|
| 276 |
+
# template overlay delimiter
|
| 277 |
+
(r'^----------*\n', Text, '#pop'),
|
| 278 |
+
(r'^.*\n', String),
|
| 279 |
+
default('#pop'),
|
| 280 |
+
],
|
| 281 |
+
'cadl_section': [
|
| 282 |
+
(r'^([ \t]*|[ \t]+.*)\n', using(CadlLexer)),
|
| 283 |
+
default('#pop'),
|
| 284 |
+
],
|
| 285 |
+
'rules_section': [
|
| 286 |
+
(r'^[ \t]+.*\n', using(CadlLexer)),
|
| 287 |
+
default('#pop'),
|
| 288 |
+
],
|
| 289 |
+
'metadata': [
|
| 290 |
+
(r'\)', Punctuation, '#pop'),
|
| 291 |
+
(r';', Punctuation),
|
| 292 |
+
(r'([Tt]rue|[Ff]alse)', Literal),
|
| 293 |
+
# numbers and version ids
|
| 294 |
+
(r'\d+(\.\d+)*', Literal),
|
| 295 |
+
# Guids
|
| 296 |
+
(r'(\d|[a-fA-F])+(-(\d|[a-fA-F])+){3,}', Literal),
|
| 297 |
+
(r'\w+', Name.Class),
|
| 298 |
+
(r'"', String, 'string'),
|
| 299 |
+
(r'=', Operator),
|
| 300 |
+
(r'[ \t]+', Whitespace),
|
| 301 |
+
default('#pop'),
|
| 302 |
+
],
|
| 303 |
+
'root': [
|
| 304 |
+
(r'^(archetype|template_overlay|operational_template|template|'
|
| 305 |
+
r'speciali[sz]e)', Generic.Heading),
|
| 306 |
+
(r'^(language|description|ontology|terminology|annotations|'
|
| 307 |
+
r'component_terminologies|revision_history)[ \t]*\n',
|
| 308 |
+
Generic.Heading, 'odin_section'),
|
| 309 |
+
(r'^(definition)[ \t]*\n', Generic.Heading, 'cadl_section'),
|
| 310 |
+
(r'^(rules)[ \t]*\n', Generic.Heading, 'rules_section'),
|
| 311 |
+
include('archetype_id'),
|
| 312 |
+
(r'([ \t]*)(\()', bygroups(Whitespace, Punctuation), 'metadata'),
|
| 313 |
+
include('whitespace'),
|
| 314 |
+
],
|
| 315 |
+
}
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/asm.py
ADDED
|
@@ -0,0 +1,1051 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pygments.lexers.asm
|
| 3 |
+
~~~~~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
Lexers for assembly languages.
|
| 6 |
+
|
| 7 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 8 |
+
:license: BSD, see LICENSE for details.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
import re
|
| 12 |
+
|
| 13 |
+
from pygments.lexer import RegexLexer, include, bygroups, using, words, \
|
| 14 |
+
DelegatingLexer, default
|
| 15 |
+
from pygments.lexers.c_cpp import CppLexer, CLexer
|
| 16 |
+
from pygments.lexers.d import DLexer
|
| 17 |
+
from pygments.token import Text, Name, Number, String, Comment, Punctuation, \
|
| 18 |
+
Other, Keyword, Operator, Whitespace
|
| 19 |
+
|
| 20 |
+
__all__ = ['GasLexer', 'ObjdumpLexer', 'DObjdumpLexer', 'CppObjdumpLexer',
|
| 21 |
+
'CObjdumpLexer', 'HsailLexer', 'LlvmLexer', 'LlvmMirBodyLexer',
|
| 22 |
+
'LlvmMirLexer', 'NasmLexer', 'NasmObjdumpLexer', 'TasmLexer',
|
| 23 |
+
'Ca65Lexer', 'Dasm16Lexer']
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
class GasLexer(RegexLexer):
|
| 27 |
+
"""
|
| 28 |
+
For Gas (AT&T) assembly code.
|
| 29 |
+
"""
|
| 30 |
+
name = 'GAS'
|
| 31 |
+
aliases = ['gas', 'asm']
|
| 32 |
+
filenames = ['*.s', '*.S']
|
| 33 |
+
mimetypes = ['text/x-gas']
|
| 34 |
+
url = 'https://www.gnu.org/software/binutils'
|
| 35 |
+
version_added = ''
|
| 36 |
+
|
| 37 |
+
#: optional Comment or Whitespace
|
| 38 |
+
string = r'"(\\"|[^"])*"'
|
| 39 |
+
char = r'[\w$.@-]'
|
| 40 |
+
identifier = r'(?:[a-zA-Z$_]' + char + r'*|\.' + char + '+)'
|
| 41 |
+
number = r'(?:0[xX][a-fA-F0-9]+|#?-?\d+)'
|
| 42 |
+
register = '%' + identifier + r'\b'
|
| 43 |
+
|
| 44 |
+
tokens = {
|
| 45 |
+
'root': [
|
| 46 |
+
include('whitespace'),
|
| 47 |
+
(identifier + ':', Name.Label),
|
| 48 |
+
(r'\.' + identifier, Name.Attribute, 'directive-args'),
|
| 49 |
+
(r'lock|rep(n?z)?|data\d+', Name.Attribute),
|
| 50 |
+
(identifier, Name.Function, 'instruction-args'),
|
| 51 |
+
(r'[\r\n]+', Text)
|
| 52 |
+
],
|
| 53 |
+
'directive-args': [
|
| 54 |
+
(identifier, Name.Constant),
|
| 55 |
+
(string, String),
|
| 56 |
+
('@' + identifier, Name.Attribute),
|
| 57 |
+
(number, Number.Integer),
|
| 58 |
+
(register, Name.Variable),
|
| 59 |
+
(r'[\r\n]+', Whitespace, '#pop'),
|
| 60 |
+
(r'([;#]|//).*?\n', Comment.Single, '#pop'),
|
| 61 |
+
(r'/[*].*?[*]/', Comment.Multiline),
|
| 62 |
+
(r'/[*].*?\n[\w\W]*?[*]/', Comment.Multiline, '#pop'),
|
| 63 |
+
|
| 64 |
+
include('punctuation'),
|
| 65 |
+
include('whitespace')
|
| 66 |
+
],
|
| 67 |
+
'instruction-args': [
|
| 68 |
+
# For objdump-disassembled code, shouldn't occur in
|
| 69 |
+
# actual assembler input
|
| 70 |
+
('([a-z0-9]+)( )(<)('+identifier+')(>)',
|
| 71 |
+
bygroups(Number.Hex, Text, Punctuation, Name.Constant,
|
| 72 |
+
Punctuation)),
|
| 73 |
+
('([a-z0-9]+)( )(<)('+identifier+')([-+])('+number+')(>)',
|
| 74 |
+
bygroups(Number.Hex, Text, Punctuation, Name.Constant,
|
| 75 |
+
Punctuation, Number.Integer, Punctuation)),
|
| 76 |
+
|
| 77 |
+
# Address constants
|
| 78 |
+
(identifier, Name.Constant),
|
| 79 |
+
(number, Number.Integer),
|
| 80 |
+
# Registers
|
| 81 |
+
(register, Name.Variable),
|
| 82 |
+
# Numeric constants
|
| 83 |
+
('$'+number, Number.Integer),
|
| 84 |
+
(r"$'(.|\\')'", String.Char),
|
| 85 |
+
(r'[\r\n]+', Whitespace, '#pop'),
|
| 86 |
+
(r'([;#]|//).*?\n', Comment.Single, '#pop'),
|
| 87 |
+
(r'/[*].*?[*]/', Comment.Multiline),
|
| 88 |
+
(r'/[*].*?\n[\w\W]*?[*]/', Comment.Multiline, '#pop'),
|
| 89 |
+
|
| 90 |
+
include('punctuation'),
|
| 91 |
+
include('whitespace')
|
| 92 |
+
],
|
| 93 |
+
'whitespace': [
|
| 94 |
+
(r'\n', Whitespace),
|
| 95 |
+
(r'\s+', Whitespace),
|
| 96 |
+
(r'([;#]|//).*?\n', Comment.Single),
|
| 97 |
+
(r'/[*][\w\W]*?[*]/', Comment.Multiline)
|
| 98 |
+
],
|
| 99 |
+
'punctuation': [
|
| 100 |
+
(r'[-*,.()\[\]!:{}]+', Punctuation)
|
| 101 |
+
]
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
def analyse_text(text):
|
| 105 |
+
if re.search(r'^\.(text|data|section)', text, re.M):
|
| 106 |
+
return True
|
| 107 |
+
elif re.search(r'^\.\w+', text, re.M):
|
| 108 |
+
return 0.1
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
def _objdump_lexer_tokens(asm_lexer):
|
| 112 |
+
"""
|
| 113 |
+
Common objdump lexer tokens to wrap an ASM lexer.
|
| 114 |
+
"""
|
| 115 |
+
hex_re = r'[0-9A-Za-z]'
|
| 116 |
+
return {
|
| 117 |
+
'root': [
|
| 118 |
+
# File name & format:
|
| 119 |
+
('(.*?)(:)( +file format )(.*?)$',
|
| 120 |
+
bygroups(Name.Label, Punctuation, Text, String)),
|
| 121 |
+
# Section header
|
| 122 |
+
('(Disassembly of section )(.*?)(:)$',
|
| 123 |
+
bygroups(Text, Name.Label, Punctuation)),
|
| 124 |
+
# Function labels
|
| 125 |
+
# (With offset)
|
| 126 |
+
('('+hex_re+'+)( )(<)(.*?)([-+])(0[xX][A-Za-z0-9]+)(>:)$',
|
| 127 |
+
bygroups(Number.Hex, Whitespace, Punctuation, Name.Function,
|
| 128 |
+
Punctuation, Number.Hex, Punctuation)),
|
| 129 |
+
# (Without offset)
|
| 130 |
+
('('+hex_re+'+)( )(<)(.*?)(>:)$',
|
| 131 |
+
bygroups(Number.Hex, Whitespace, Punctuation, Name.Function,
|
| 132 |
+
Punctuation)),
|
| 133 |
+
# Code line with disassembled instructions
|
| 134 |
+
('( *)('+hex_re+r'+:)(\t)((?:'+hex_re+hex_re+' )+)( *\t)([a-zA-Z].*?)$',
|
| 135 |
+
bygroups(Whitespace, Name.Label, Whitespace, Number.Hex, Whitespace,
|
| 136 |
+
using(asm_lexer))),
|
| 137 |
+
# Code line without raw instructions (objdump --no-show-raw-insn)
|
| 138 |
+
('( *)('+hex_re+r'+:)( *\t)([a-zA-Z].*?)$',
|
| 139 |
+
bygroups(Whitespace, Name.Label, Whitespace,
|
| 140 |
+
using(asm_lexer))),
|
| 141 |
+
# Code line with ascii
|
| 142 |
+
('( *)('+hex_re+r'+:)(\t)((?:'+hex_re+hex_re+' )+)( *)(.*?)$',
|
| 143 |
+
bygroups(Whitespace, Name.Label, Whitespace, Number.Hex, Whitespace, String)),
|
| 144 |
+
# Continued code line, only raw opcodes without disassembled
|
| 145 |
+
# instruction
|
| 146 |
+
('( *)('+hex_re+r'+:)(\t)((?:'+hex_re+hex_re+' )+)$',
|
| 147 |
+
bygroups(Whitespace, Name.Label, Whitespace, Number.Hex)),
|
| 148 |
+
# Skipped a few bytes
|
| 149 |
+
(r'\t\.\.\.$', Text),
|
| 150 |
+
# Relocation line
|
| 151 |
+
# (With offset)
|
| 152 |
+
(r'(\t\t\t)('+hex_re+r'+:)( )([^\t]+)(\t)(.*?)([-+])(0x'+hex_re+'+)$',
|
| 153 |
+
bygroups(Whitespace, Name.Label, Whitespace, Name.Property, Whitespace,
|
| 154 |
+
Name.Constant, Punctuation, Number.Hex)),
|
| 155 |
+
# (Without offset)
|
| 156 |
+
(r'(\t\t\t)('+hex_re+r'+:)( )([^\t]+)(\t)(.*?)$',
|
| 157 |
+
bygroups(Whitespace, Name.Label, Whitespace, Name.Property, Whitespace,
|
| 158 |
+
Name.Constant)),
|
| 159 |
+
(r'[^\n]+\n', Other)
|
| 160 |
+
]
|
| 161 |
+
}
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
class ObjdumpLexer(RegexLexer):
|
| 165 |
+
"""
|
| 166 |
+
For the output of ``objdump -dr``.
|
| 167 |
+
"""
|
| 168 |
+
name = 'objdump'
|
| 169 |
+
aliases = ['objdump']
|
| 170 |
+
filenames = ['*.objdump']
|
| 171 |
+
mimetypes = ['text/x-objdump']
|
| 172 |
+
url = 'https://www.gnu.org/software/binutils'
|
| 173 |
+
version_added = ''
|
| 174 |
+
|
| 175 |
+
tokens = _objdump_lexer_tokens(GasLexer)
|
| 176 |
+
|
| 177 |
+
|
| 178 |
+
class DObjdumpLexer(DelegatingLexer):
|
| 179 |
+
"""
|
| 180 |
+
For the output of ``objdump -Sr`` on compiled D files.
|
| 181 |
+
"""
|
| 182 |
+
name = 'd-objdump'
|
| 183 |
+
aliases = ['d-objdump']
|
| 184 |
+
filenames = ['*.d-objdump']
|
| 185 |
+
mimetypes = ['text/x-d-objdump']
|
| 186 |
+
url = 'https://www.gnu.org/software/binutils'
|
| 187 |
+
version_added = ''
|
| 188 |
+
|
| 189 |
+
def __init__(self, **options):
|
| 190 |
+
super().__init__(DLexer, ObjdumpLexer, **options)
|
| 191 |
+
|
| 192 |
+
|
| 193 |
+
class CppObjdumpLexer(DelegatingLexer):
|
| 194 |
+
"""
|
| 195 |
+
For the output of ``objdump -Sr`` on compiled C++ files.
|
| 196 |
+
"""
|
| 197 |
+
name = 'cpp-objdump'
|
| 198 |
+
aliases = ['cpp-objdump', 'c++-objdumb', 'cxx-objdump']
|
| 199 |
+
filenames = ['*.cpp-objdump', '*.c++-objdump', '*.cxx-objdump']
|
| 200 |
+
mimetypes = ['text/x-cpp-objdump']
|
| 201 |
+
url = 'https://www.gnu.org/software/binutils'
|
| 202 |
+
version_added = ''
|
| 203 |
+
|
| 204 |
+
def __init__(self, **options):
|
| 205 |
+
super().__init__(CppLexer, ObjdumpLexer, **options)
|
| 206 |
+
|
| 207 |
+
|
| 208 |
+
class CObjdumpLexer(DelegatingLexer):
|
| 209 |
+
"""
|
| 210 |
+
For the output of ``objdump -Sr`` on compiled C files.
|
| 211 |
+
"""
|
| 212 |
+
name = 'c-objdump'
|
| 213 |
+
aliases = ['c-objdump']
|
| 214 |
+
filenames = ['*.c-objdump']
|
| 215 |
+
mimetypes = ['text/x-c-objdump']
|
| 216 |
+
url = 'https://www.gnu.org/software/binutils'
|
| 217 |
+
version_added = ''
|
| 218 |
+
|
| 219 |
+
|
| 220 |
+
def __init__(self, **options):
|
| 221 |
+
super().__init__(CLexer, ObjdumpLexer, **options)
|
| 222 |
+
|
| 223 |
+
|
| 224 |
+
class HsailLexer(RegexLexer):
|
| 225 |
+
"""
|
| 226 |
+
For HSAIL assembly code.
|
| 227 |
+
"""
|
| 228 |
+
name = 'HSAIL'
|
| 229 |
+
aliases = ['hsail', 'hsa']
|
| 230 |
+
filenames = ['*.hsail']
|
| 231 |
+
mimetypes = ['text/x-hsail']
|
| 232 |
+
url = 'https://en.wikipedia.org/wiki/Heterogeneous_System_Architecture#HSA_Intermediate_Layer'
|
| 233 |
+
version_added = '2.2'
|
| 234 |
+
|
| 235 |
+
string = r'"[^"]*?"'
|
| 236 |
+
identifier = r'[a-zA-Z_][\w.]*'
|
| 237 |
+
# Registers
|
| 238 |
+
register_number = r'[0-9]+'
|
| 239 |
+
register = r'(\$(c|s|d|q)' + register_number + r')\b'
|
| 240 |
+
# Qualifiers
|
| 241 |
+
alignQual = r'(align\(\d+\))'
|
| 242 |
+
widthQual = r'(width\((\d+|all)\))'
|
| 243 |
+
allocQual = r'(alloc\(agent\))'
|
| 244 |
+
# Instruction Modifiers
|
| 245 |
+
roundingMod = (r'((_ftz)?(_up|_down|_zero|_near))')
|
| 246 |
+
datatypeMod = (r'_('
|
| 247 |
+
# packedTypes
|
| 248 |
+
r'u8x4|s8x4|u16x2|s16x2|u8x8|s8x8|u16x4|s16x4|u32x2|s32x2|'
|
| 249 |
+
r'u8x16|s8x16|u16x8|s16x8|u32x4|s32x4|u64x2|s64x2|'
|
| 250 |
+
r'f16x2|f16x4|f16x8|f32x2|f32x4|f64x2|'
|
| 251 |
+
# baseTypes
|
| 252 |
+
r'u8|s8|u16|s16|u32|s32|u64|s64|'
|
| 253 |
+
r'b128|b8|b16|b32|b64|b1|'
|
| 254 |
+
r'f16|f32|f64|'
|
| 255 |
+
# opaqueType
|
| 256 |
+
r'roimg|woimg|rwimg|samp|sig32|sig64)')
|
| 257 |
+
|
| 258 |
+
# Numeric Constant
|
| 259 |
+
float = r'((\d+\.)|(\d*\.\d+))[eE][+-]?\d+'
|
| 260 |
+
hexfloat = r'0[xX](([0-9a-fA-F]+\.[0-9a-fA-F]*)|([0-9a-fA-F]*\.[0-9a-fA-F]+))[pP][+-]?\d+'
|
| 261 |
+
ieeefloat = r'0((h|H)[0-9a-fA-F]{4}|(f|F)[0-9a-fA-F]{8}|(d|D)[0-9a-fA-F]{16})'
|
| 262 |
+
|
| 263 |
+
tokens = {
|
| 264 |
+
'root': [
|
| 265 |
+
include('whitespace'),
|
| 266 |
+
include('comments'),
|
| 267 |
+
|
| 268 |
+
(string, String),
|
| 269 |
+
|
| 270 |
+
(r'@' + identifier + ':?', Name.Label),
|
| 271 |
+
|
| 272 |
+
(register, Name.Variable.Anonymous),
|
| 273 |
+
|
| 274 |
+
include('keyword'),
|
| 275 |
+
|
| 276 |
+
(r'&' + identifier, Name.Variable.Global),
|
| 277 |
+
(r'%' + identifier, Name.Variable),
|
| 278 |
+
|
| 279 |
+
(hexfloat, Number.Hex),
|
| 280 |
+
(r'0[xX][a-fA-F0-9]+', Number.Hex),
|
| 281 |
+
(ieeefloat, Number.Float),
|
| 282 |
+
(float, Number.Float),
|
| 283 |
+
(r'\d+', Number.Integer),
|
| 284 |
+
|
| 285 |
+
(r'[=<>{}\[\]()*.,:;!]|x\b', Punctuation)
|
| 286 |
+
],
|
| 287 |
+
'whitespace': [
|
| 288 |
+
(r'(\n|\s)+', Whitespace),
|
| 289 |
+
],
|
| 290 |
+
'comments': [
|
| 291 |
+
(r'/\*.*?\*/', Comment.Multiline),
|
| 292 |
+
(r'//.*?\n', Comment.Single),
|
| 293 |
+
],
|
| 294 |
+
'keyword': [
|
| 295 |
+
# Types
|
| 296 |
+
(r'kernarg' + datatypeMod, Keyword.Type),
|
| 297 |
+
|
| 298 |
+
# Regular keywords
|
| 299 |
+
(r'\$(full|base|small|large|default|zero|near)', Keyword),
|
| 300 |
+
(words((
|
| 301 |
+
'module', 'extension', 'pragma', 'prog', 'indirect', 'signature',
|
| 302 |
+
'decl', 'kernel', 'function', 'enablebreakexceptions',
|
| 303 |
+
'enabledetectexceptions', 'maxdynamicgroupsize', 'maxflatgridsize',
|
| 304 |
+
'maxflatworkgroupsize', 'requireddim', 'requiredgridsize',
|
| 305 |
+
'requiredworkgroupsize', 'requirenopartialworkgroups'),
|
| 306 |
+
suffix=r'\b'), Keyword),
|
| 307 |
+
|
| 308 |
+
# instructions
|
| 309 |
+
(roundingMod, Keyword),
|
| 310 |
+
(datatypeMod, Keyword),
|
| 311 |
+
(r'_(' + alignQual + '|' + widthQual + ')', Keyword),
|
| 312 |
+
(r'_kernarg', Keyword),
|
| 313 |
+
(r'(nop|imagefence)\b', Keyword),
|
| 314 |
+
(words((
|
| 315 |
+
'cleardetectexcept', 'clock', 'cuid', 'debugtrap', 'dim',
|
| 316 |
+
'getdetectexcept', 'groupbaseptr', 'kernargbaseptr', 'laneid',
|
| 317 |
+
'maxcuid', 'maxwaveid', 'packetid', 'setdetectexcept', 'waveid',
|
| 318 |
+
'workitemflatabsid', 'workitemflatid', 'nullptr', 'abs', 'bitrev',
|
| 319 |
+
'currentworkgroupsize', 'currentworkitemflatid', 'fract', 'ncos',
|
| 320 |
+
'neg', 'nexp2', 'nlog2', 'nrcp', 'nrsqrt', 'nsin', 'nsqrt',
|
| 321 |
+
'gridgroups', 'gridsize', 'not', 'sqrt', 'workgroupid',
|
| 322 |
+
'workgroupsize', 'workitemabsid', 'workitemid', 'ceil', 'floor',
|
| 323 |
+
'rint', 'trunc', 'add', 'bitmask', 'borrow', 'carry', 'copysign',
|
| 324 |
+
'div', 'rem', 'sub', 'shl', 'shr', 'and', 'or', 'xor', 'unpackhi',
|
| 325 |
+
'unpacklo', 'max', 'min', 'fma', 'mad', 'bitextract', 'bitselect',
|
| 326 |
+
'shuffle', 'cmov', 'bitalign', 'bytealign', 'lerp', 'nfma', 'mul',
|
| 327 |
+
'mulhi', 'mul24hi', 'mul24', 'mad24', 'mad24hi', 'bitinsert',
|
| 328 |
+
'combine', 'expand', 'lda', 'mov', 'pack', 'unpack', 'packcvt',
|
| 329 |
+
'unpackcvt', 'sad', 'sementp', 'ftos', 'stof', 'cmp', 'ld', 'st',
|
| 330 |
+
'_eq', '_ne', '_lt', '_le', '_gt', '_ge', '_equ', '_neu', '_ltu',
|
| 331 |
+
'_leu', '_gtu', '_geu', '_num', '_nan', '_seq', '_sne', '_slt',
|
| 332 |
+
'_sle', '_sgt', '_sge', '_snum', '_snan', '_sequ', '_sneu', '_sltu',
|
| 333 |
+
'_sleu', '_sgtu', '_sgeu', 'atomic', '_ld', '_st', '_cas', '_add',
|
| 334 |
+
'_and', '_exch', '_max', '_min', '_or', '_sub', '_wrapdec',
|
| 335 |
+
'_wrapinc', '_xor', 'ret', 'cvt', '_readonly', '_kernarg', '_global',
|
| 336 |
+
'br', 'cbr', 'sbr', '_scacq', '_screl', '_scar', '_rlx', '_wave',
|
| 337 |
+
'_wg', '_agent', '_system', 'ldimage', 'stimage', '_v2', '_v3', '_v4',
|
| 338 |
+
'_1d', '_2d', '_3d', '_1da', '_2da', '_1db', '_2ddepth', '_2dadepth',
|
| 339 |
+
'_width', '_height', '_depth', '_array', '_channelorder',
|
| 340 |
+
'_channeltype', 'querysampler', '_coord', '_filter', '_addressing',
|
| 341 |
+
'barrier', 'wavebarrier', 'initfbar', 'joinfbar', 'waitfbar',
|
| 342 |
+
'arrivefbar', 'leavefbar', 'releasefbar', 'ldf', 'activelaneid',
|
| 343 |
+
'activelanecount', 'activelanemask', 'activelanepermute', 'call',
|
| 344 |
+
'scall', 'icall', 'alloca', 'packetcompletionsig',
|
| 345 |
+
'addqueuewriteindex', 'casqueuewriteindex', 'ldqueuereadindex',
|
| 346 |
+
'stqueuereadindex', 'readonly', 'global', 'private', 'group',
|
| 347 |
+
'spill', 'arg', '_upi', '_downi', '_zeroi', '_neari', '_upi_sat',
|
| 348 |
+
'_downi_sat', '_zeroi_sat', '_neari_sat', '_supi', '_sdowni',
|
| 349 |
+
'_szeroi', '_sneari', '_supi_sat', '_sdowni_sat', '_szeroi_sat',
|
| 350 |
+
'_sneari_sat', '_pp', '_ps', '_sp', '_ss', '_s', '_p', '_pp_sat',
|
| 351 |
+
'_ps_sat', '_sp_sat', '_ss_sat', '_s_sat', '_p_sat')), Keyword),
|
| 352 |
+
|
| 353 |
+
# Integer types
|
| 354 |
+
(r'i[1-9]\d*', Keyword)
|
| 355 |
+
]
|
| 356 |
+
}
|
| 357 |
+
|
| 358 |
+
|
| 359 |
+
class LlvmLexer(RegexLexer):
|
| 360 |
+
"""
|
| 361 |
+
For LLVM assembly code.
|
| 362 |
+
"""
|
| 363 |
+
name = 'LLVM'
|
| 364 |
+
url = 'https://llvm.org/docs/LangRef.html'
|
| 365 |
+
aliases = ['llvm']
|
| 366 |
+
filenames = ['*.ll']
|
| 367 |
+
mimetypes = ['text/x-llvm']
|
| 368 |
+
version_added = ''
|
| 369 |
+
|
| 370 |
+
#: optional Comment or Whitespace
|
| 371 |
+
string = r'"[^"]*?"'
|
| 372 |
+
identifier = r'([-a-zA-Z$._][\w\-$.]*|' + string + ')'
|
| 373 |
+
block_label = r'(' + identifier + r'|(\d+))'
|
| 374 |
+
|
| 375 |
+
tokens = {
|
| 376 |
+
'root': [
|
| 377 |
+
include('whitespace'),
|
| 378 |
+
|
| 379 |
+
# Before keywords, because keywords are valid label names :(...
|
| 380 |
+
(block_label + r'\s*:', Name.Label),
|
| 381 |
+
|
| 382 |
+
include('keyword'),
|
| 383 |
+
|
| 384 |
+
(r'%' + identifier, Name.Variable),
|
| 385 |
+
(r'@' + identifier, Name.Variable.Global),
|
| 386 |
+
(r'%\d+', Name.Variable.Anonymous),
|
| 387 |
+
(r'@\d+', Name.Variable.Global),
|
| 388 |
+
(r'#\d+', Name.Variable.Global),
|
| 389 |
+
(r'!' + identifier, Name.Variable),
|
| 390 |
+
(r'!\d+', Name.Variable.Anonymous),
|
| 391 |
+
(r'c?' + string, String),
|
| 392 |
+
|
| 393 |
+
(r'0[xX][KLMHR]?[a-fA-F0-9]+', Number),
|
| 394 |
+
(r'-?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?', Number),
|
| 395 |
+
|
| 396 |
+
(r'[=<>{}\[\]()*.,!]|x\b', Punctuation)
|
| 397 |
+
],
|
| 398 |
+
'whitespace': [
|
| 399 |
+
(r'(\n|\s+)+', Whitespace),
|
| 400 |
+
(r';.*?\n', Comment)
|
| 401 |
+
],
|
| 402 |
+
'keyword': [
|
| 403 |
+
# Regular keywords
|
| 404 |
+
(words((
|
| 405 |
+
'aarch64_sve_vector_pcs', 'aarch64_vector_pcs', 'acq_rel',
|
| 406 |
+
'acquire', 'add', 'addrspace', 'addrspacecast', 'afn', 'alias',
|
| 407 |
+
'aliasee', 'align', 'alignLog2', 'alignstack', 'alloca',
|
| 408 |
+
'allocsize', 'allOnes', 'alwaysinline', 'alwaysInline',
|
| 409 |
+
'amdgpu_cs', 'amdgpu_es', 'amdgpu_gfx', 'amdgpu_gs',
|
| 410 |
+
'amdgpu_hs', 'amdgpu_kernel', 'amdgpu_ls', 'amdgpu_ps',
|
| 411 |
+
'amdgpu_vs', 'and', 'any', 'anyregcc', 'appending', 'arcp',
|
| 412 |
+
'argmemonly', 'args', 'arm_aapcs_vfpcc', 'arm_aapcscc',
|
| 413 |
+
'arm_apcscc', 'ashr', 'asm', 'atomic', 'atomicrmw',
|
| 414 |
+
'attributes', 'available_externally', 'avr_intrcc',
|
| 415 |
+
'avr_signalcc', 'bit', 'bitcast', 'bitMask', 'blockaddress',
|
| 416 |
+
'blockcount', 'br', 'branchFunnel', 'builtin', 'byArg',
|
| 417 |
+
'byref', 'byte', 'byteArray', 'byval', 'c', 'call', 'callbr',
|
| 418 |
+
'callee', 'caller', 'calls', 'canAutoHide', 'catch',
|
| 419 |
+
'catchpad', 'catchret', 'catchswitch', 'cc', 'ccc',
|
| 420 |
+
'cfguard_checkcc', 'cleanup', 'cleanuppad', 'cleanupret',
|
| 421 |
+
'cmpxchg', 'cold', 'coldcc', 'comdat', 'common', 'constant',
|
| 422 |
+
'contract', 'convergent', 'critical', 'cxx_fast_tlscc',
|
| 423 |
+
'datalayout', 'declare', 'default', 'define', 'deplibs',
|
| 424 |
+
'dereferenceable', 'dereferenceable_or_null', 'distinct',
|
| 425 |
+
'dllexport', 'dllimport', 'dso_local', 'dso_local_equivalent',
|
| 426 |
+
'dso_preemptable', 'dsoLocal', 'eq', 'exact', 'exactmatch',
|
| 427 |
+
'extern_weak', 'external', 'externally_initialized',
|
| 428 |
+
'extractelement', 'extractvalue', 'fadd', 'false', 'fast',
|
| 429 |
+
'fastcc', 'fcmp', 'fdiv', 'fence', 'filter', 'flags', 'fmul',
|
| 430 |
+
'fneg', 'fpext', 'fptosi', 'fptoui', 'fptrunc', 'freeze',
|
| 431 |
+
'frem', 'from', 'fsub', 'funcFlags', 'function', 'gc',
|
| 432 |
+
'getelementptr', 'ghccc', 'global', 'guid', 'gv', 'hash',
|
| 433 |
+
'hhvm_ccc', 'hhvmcc', 'hidden', 'hot', 'hotness', 'icmp',
|
| 434 |
+
'ifunc', 'inaccessiblemem_or_argmemonly',
|
| 435 |
+
'inaccessiblememonly', 'inalloca', 'inbounds', 'indir',
|
| 436 |
+
'indirectbr', 'info', 'initialexec', 'inline', 'inlineBits',
|
| 437 |
+
'inlinehint', 'inrange', 'inreg', 'insertelement',
|
| 438 |
+
'insertvalue', 'insts', 'intel_ocl_bicc', 'inteldialect',
|
| 439 |
+
'internal', 'inttoptr', 'invoke', 'jumptable', 'kind',
|
| 440 |
+
'landingpad', 'largest', 'linkage', 'linkonce', 'linkonce_odr',
|
| 441 |
+
'live', 'load', 'local_unnamed_addr', 'localdynamic',
|
| 442 |
+
'localexec', 'lshr', 'max', 'metadata', 'min', 'minsize',
|
| 443 |
+
'module', 'monotonic', 'msp430_intrcc', 'mul', 'mustprogress',
|
| 444 |
+
'musttail', 'naked', 'name', 'nand', 'ne', 'nest', 'ninf',
|
| 445 |
+
'nnan', 'noalias', 'nobuiltin', 'nocallback', 'nocapture',
|
| 446 |
+
'nocf_check', 'noduplicate', 'noduplicates', 'nofree',
|
| 447 |
+
'noimplicitfloat', 'noinline', 'noInline', 'nomerge', 'none',
|
| 448 |
+
'nonlazybind', 'nonnull', 'noprofile', 'norecurse',
|
| 449 |
+
'noRecurse', 'noredzone', 'noreturn', 'nosync', 'notail',
|
| 450 |
+
'notEligibleToImport', 'noundef', 'nounwind', 'nsw',
|
| 451 |
+
'nsz', 'null', 'null_pointer_is_valid', 'nuw', 'oeq', 'offset',
|
| 452 |
+
'oge', 'ogt', 'ole', 'olt', 'one', 'opaque', 'optforfuzzing',
|
| 453 |
+
'optnone', 'optsize', 'or', 'ord', 'param', 'params',
|
| 454 |
+
'partition', 'path', 'personality', 'phi', 'poison',
|
| 455 |
+
'preallocated', 'prefix', 'preserve_allcc', 'preserve_mostcc',
|
| 456 |
+
'private', 'prologue', 'protected', 'ptrtoint', 'ptx_device',
|
| 457 |
+
'ptx_kernel', 'readnone', 'readNone', 'readonly', 'readOnly',
|
| 458 |
+
'reassoc', 'refs', 'relbf', 'release', 'resByArg', 'resume',
|
| 459 |
+
'ret', 'returnDoesNotAlias', 'returned', 'returns_twice',
|
| 460 |
+
'safestack', 'samesize', 'sanitize_address',
|
| 461 |
+
'sanitize_hwaddress', 'sanitize_memory', 'sanitize_memtag',
|
| 462 |
+
'sanitize_thread', 'sdiv', 'section', 'select', 'seq_cst',
|
| 463 |
+
'sext', 'sge', 'sgt', 'shadowcallstack', 'shl',
|
| 464 |
+
'shufflevector', 'sideeffect', 'signext', 'single',
|
| 465 |
+
'singleImpl', 'singleImplName', 'sitofp', 'sizeM1',
|
| 466 |
+
'sizeM1BitWidth', 'sle', 'slt', 'source_filename',
|
| 467 |
+
'speculatable', 'speculative_load_hardening', 'spir_func',
|
| 468 |
+
'spir_kernel', 'splat', 'srem', 'sret', 'ssp', 'sspreq',
|
| 469 |
+
'sspstrong', 'store', 'strictfp', 'sub', 'summaries',
|
| 470 |
+
'summary', 'swiftcc', 'swifterror', 'swiftself', 'switch',
|
| 471 |
+
'syncscope', 'tail', 'tailcc', 'target', 'thread_local', 'to',
|
| 472 |
+
'token', 'triple', 'true', 'trunc', 'type',
|
| 473 |
+
'typeCheckedLoadConstVCalls', 'typeCheckedLoadVCalls',
|
| 474 |
+
'typeid', 'typeidCompatibleVTable', 'typeIdInfo',
|
| 475 |
+
'typeTestAssumeConstVCalls', 'typeTestAssumeVCalls',
|
| 476 |
+
'typeTestRes', 'typeTests', 'udiv', 'ueq', 'uge', 'ugt',
|
| 477 |
+
'uitofp', 'ule', 'ult', 'umax', 'umin', 'undef', 'une',
|
| 478 |
+
'uniformRetVal', 'uniqueRetVal', 'unknown', 'unnamed_addr',
|
| 479 |
+
'uno', 'unordered', 'unreachable', 'unsat', 'unwind', 'urem',
|
| 480 |
+
'uselistorder', 'uselistorder_bb', 'uwtable', 'va_arg',
|
| 481 |
+
'varFlags', 'variable', 'vcall_visibility', 'vFuncId',
|
| 482 |
+
'virtFunc', 'virtualConstProp', 'void', 'volatile', 'vscale',
|
| 483 |
+
'vTableFuncs', 'weak', 'weak_odr', 'webkit_jscc', 'win64cc',
|
| 484 |
+
'within', 'wpdRes', 'wpdResolutions', 'writeonly', 'x',
|
| 485 |
+
'x86_64_sysvcc', 'x86_fastcallcc', 'x86_intrcc', 'x86_mmx',
|
| 486 |
+
'x86_regcallcc', 'x86_stdcallcc', 'x86_thiscallcc',
|
| 487 |
+
'x86_vectorcallcc', 'xchg', 'xor', 'zeroext',
|
| 488 |
+
'zeroinitializer', 'zext', 'immarg', 'willreturn'),
|
| 489 |
+
suffix=r'\b'), Keyword),
|
| 490 |
+
|
| 491 |
+
# Types
|
| 492 |
+
(words(('void', 'half', 'bfloat', 'float', 'double', 'fp128',
|
| 493 |
+
'x86_fp80', 'ppc_fp128', 'label', 'metadata', 'x86_mmx',
|
| 494 |
+
'x86_amx', 'token', 'ptr')),
|
| 495 |
+
Keyword.Type),
|
| 496 |
+
|
| 497 |
+
# Integer types
|
| 498 |
+
(r'i[1-9]\d*', Keyword.Type)
|
| 499 |
+
]
|
| 500 |
+
}
|
| 501 |
+
|
| 502 |
+
|
| 503 |
+
class LlvmMirBodyLexer(RegexLexer):
|
| 504 |
+
"""
|
| 505 |
+
For LLVM MIR examples without the YAML wrapper.
|
| 506 |
+
"""
|
| 507 |
+
name = 'LLVM-MIR Body'
|
| 508 |
+
url = 'https://llvm.org/docs/MIRLangRef.html'
|
| 509 |
+
aliases = ['llvm-mir-body']
|
| 510 |
+
filenames = []
|
| 511 |
+
mimetypes = []
|
| 512 |
+
version_added = '2.6'
|
| 513 |
+
|
| 514 |
+
tokens = {
|
| 515 |
+
'root': [
|
| 516 |
+
# Attributes on basic blocks
|
| 517 |
+
(words(('liveins', 'successors'), suffix=':'), Keyword),
|
| 518 |
+
# Basic Block Labels
|
| 519 |
+
(r'bb\.[0-9]+(\.[a-zA-Z0-9_.-]+)?( \(address-taken\))?:', Name.Label),
|
| 520 |
+
(r'bb\.[0-9]+ \(%[a-zA-Z0-9_.-]+\)( \(address-taken\))?:', Name.Label),
|
| 521 |
+
(r'%bb\.[0-9]+(\.\w+)?', Name.Label),
|
| 522 |
+
# Stack references
|
| 523 |
+
(r'%stack\.[0-9]+(\.\w+\.addr)?', Name),
|
| 524 |
+
# Subreg indices
|
| 525 |
+
(r'%subreg\.\w+', Name),
|
| 526 |
+
# Virtual registers
|
| 527 |
+
(r'%[a-zA-Z0-9_]+ *', Name.Variable, 'vreg'),
|
| 528 |
+
# Reference to LLVM-IR global
|
| 529 |
+
include('global'),
|
| 530 |
+
# Reference to Intrinsic
|
| 531 |
+
(r'intrinsic\(\@[a-zA-Z0-9_.]+\)', Name.Variable.Global),
|
| 532 |
+
# Comparison predicates
|
| 533 |
+
(words(('eq', 'ne', 'sgt', 'sge', 'slt', 'sle', 'ugt', 'uge', 'ult',
|
| 534 |
+
'ule'), prefix=r'intpred\(', suffix=r'\)'), Name.Builtin),
|
| 535 |
+
(words(('oeq', 'one', 'ogt', 'oge', 'olt', 'ole', 'ugt', 'uge',
|
| 536 |
+
'ult', 'ule'), prefix=r'floatpred\(', suffix=r'\)'),
|
| 537 |
+
Name.Builtin),
|
| 538 |
+
# Physical registers
|
| 539 |
+
(r'\$\w+', String.Single),
|
| 540 |
+
# Assignment operator
|
| 541 |
+
(r'=', Operator),
|
| 542 |
+
# gMIR Opcodes
|
| 543 |
+
(r'(G_ANYEXT|G_[SZ]EXT|G_SEXT_INREG|G_TRUNC|G_IMPLICIT_DEF|G_PHI|'
|
| 544 |
+
r'G_FRAME_INDEX|G_GLOBAL_VALUE|G_INTTOPTR|G_PTRTOINT|G_BITCAST|'
|
| 545 |
+
r'G_CONSTANT|G_FCONSTANT|G_VASTART|G_VAARG|G_CTLZ|G_CTLZ_ZERO_UNDEF|'
|
| 546 |
+
r'G_CTTZ|G_CTTZ_ZERO_UNDEF|G_CTPOP|G_BSWAP|G_BITREVERSE|'
|
| 547 |
+
r'G_ADDRSPACE_CAST|G_BLOCK_ADDR|G_JUMP_TABLE|G_DYN_STACKALLOC|'
|
| 548 |
+
r'G_ADD|G_SUB|G_MUL|G_[SU]DIV|G_[SU]REM|G_AND|G_OR|G_XOR|G_SHL|'
|
| 549 |
+
r'G_[LA]SHR|G_[IF]CMP|G_SELECT|G_GEP|G_PTR_MASK|G_SMIN|G_SMAX|'
|
| 550 |
+
r'G_UMIN|G_UMAX|G_[US]ADDO|G_[US]ADDE|G_[US]SUBO|G_[US]SUBE|'
|
| 551 |
+
r'G_[US]MULO|G_[US]MULH|G_FNEG|G_FPEXT|G_FPTRUNC|G_FPTO[US]I|'
|
| 552 |
+
r'G_[US]ITOFP|G_FABS|G_FCOPYSIGN|G_FCANONICALIZE|G_FMINNUM|'
|
| 553 |
+
r'G_FMAXNUM|G_FMINNUM_IEEE|G_FMAXNUM_IEEE|G_FMINIMUM|G_FMAXIMUM|'
|
| 554 |
+
r'G_FADD|G_FSUB|G_FMUL|G_FMA|G_FMAD|G_FDIV|G_FREM|G_FPOW|G_FEXP|'
|
| 555 |
+
r'G_FEXP2|G_FLOG|G_FLOG2|G_FLOG10|G_FCEIL|G_FCOS|G_FSIN|G_FSQRT|'
|
| 556 |
+
r'G_FFLOOR|G_FRINT|G_FNEARBYINT|G_INTRINSIC_TRUNC|'
|
| 557 |
+
r'G_INTRINSIC_ROUND|G_LOAD|G_[ZS]EXTLOAD|G_INDEXED_LOAD|'
|
| 558 |
+
r'G_INDEXED_[ZS]EXTLOAD|G_STORE|G_INDEXED_STORE|'
|
| 559 |
+
r'G_ATOMIC_CMPXCHG_WITH_SUCCESS|G_ATOMIC_CMPXCHG|'
|
| 560 |
+
r'G_ATOMICRMW_(XCHG|ADD|SUB|AND|NAND|OR|XOR|MAX|MIN|UMAX|UMIN|FADD|'
|
| 561 |
+
r'FSUB)'
|
| 562 |
+
r'|G_FENCE|G_EXTRACT|G_UNMERGE_VALUES|G_INSERT|G_MERGE_VALUES|'
|
| 563 |
+
r'G_BUILD_VECTOR|G_BUILD_VECTOR_TRUNC|G_CONCAT_VECTORS|'
|
| 564 |
+
r'G_INTRINSIC|G_INTRINSIC_W_SIDE_EFFECTS|G_BR|G_BRCOND|'
|
| 565 |
+
r'G_BRINDIRECT|G_BRJT|G_INSERT_VECTOR_ELT|G_EXTRACT_VECTOR_ELT|'
|
| 566 |
+
r'G_SHUFFLE_VECTOR)\b',
|
| 567 |
+
Name.Builtin),
|
| 568 |
+
# Target independent opcodes
|
| 569 |
+
(r'(COPY|PHI|INSERT_SUBREG|EXTRACT_SUBREG|REG_SEQUENCE)\b',
|
| 570 |
+
Name.Builtin),
|
| 571 |
+
# Flags
|
| 572 |
+
(words(('killed', 'implicit')), Keyword),
|
| 573 |
+
# ConstantInt values
|
| 574 |
+
(r'(i[0-9]+)( +)', bygroups(Keyword.Type, Whitespace), 'constantint'),
|
| 575 |
+
# ConstantFloat values
|
| 576 |
+
(r'(half|float|double) +', Keyword.Type, 'constantfloat'),
|
| 577 |
+
# Bare immediates
|
| 578 |
+
include('integer'),
|
| 579 |
+
# MMO's
|
| 580 |
+
(r'(::)( *)', bygroups(Operator, Whitespace), 'mmo'),
|
| 581 |
+
# MIR Comments
|
| 582 |
+
(r';.*', Comment),
|
| 583 |
+
# If we get here, assume it's a target instruction
|
| 584 |
+
(r'[a-zA-Z0-9_]+', Name),
|
| 585 |
+
# Everything else that isn't highlighted
|
| 586 |
+
(r'[(), \n]+', Text),
|
| 587 |
+
],
|
| 588 |
+
# The integer constant from a ConstantInt value
|
| 589 |
+
'constantint': [
|
| 590 |
+
include('integer'),
|
| 591 |
+
(r'(?=.)', Text, '#pop'),
|
| 592 |
+
],
|
| 593 |
+
# The floating point constant from a ConstantFloat value
|
| 594 |
+
'constantfloat': [
|
| 595 |
+
include('float'),
|
| 596 |
+
(r'(?=.)', Text, '#pop'),
|
| 597 |
+
],
|
| 598 |
+
'vreg': [
|
| 599 |
+
# The bank or class if there is one
|
| 600 |
+
(r'( *)(:(?!:))', bygroups(Whitespace, Keyword), ('#pop', 'vreg_bank_or_class')),
|
| 601 |
+
# The LLT if there is one
|
| 602 |
+
(r'( *)(\()', bygroups(Whitespace, Text), 'vreg_type'),
|
| 603 |
+
(r'(?=.)', Text, '#pop'),
|
| 604 |
+
],
|
| 605 |
+
'vreg_bank_or_class': [
|
| 606 |
+
# The unassigned bank/class
|
| 607 |
+
(r'( *)(_)', bygroups(Whitespace, Name.Variable.Magic)),
|
| 608 |
+
(r'( *)([a-zA-Z0-9_]+)', bygroups(Whitespace, Name.Variable)),
|
| 609 |
+
# The LLT if there is one
|
| 610 |
+
(r'( *)(\()', bygroups(Whitespace, Text), 'vreg_type'),
|
| 611 |
+
(r'(?=.)', Text, '#pop'),
|
| 612 |
+
],
|
| 613 |
+
'vreg_type': [
|
| 614 |
+
# Scalar and pointer types
|
| 615 |
+
(r'( *)([sp][0-9]+)', bygroups(Whitespace, Keyword.Type)),
|
| 616 |
+
(r'( *)(<[0-9]+ *x *[sp][0-9]+>)', bygroups(Whitespace, Keyword.Type)),
|
| 617 |
+
(r'\)', Text, '#pop'),
|
| 618 |
+
(r'(?=.)', Text, '#pop'),
|
| 619 |
+
],
|
| 620 |
+
'mmo': [
|
| 621 |
+
(r'\(', Text),
|
| 622 |
+
(r' +', Whitespace),
|
| 623 |
+
(words(('load', 'store', 'on', 'into', 'from', 'align', 'monotonic',
|
| 624 |
+
'acquire', 'release', 'acq_rel', 'seq_cst')),
|
| 625 |
+
Keyword),
|
| 626 |
+
# IR references
|
| 627 |
+
(r'%ir\.[a-zA-Z0-9_.-]+', Name),
|
| 628 |
+
(r'%ir-block\.[a-zA-Z0-9_.-]+', Name),
|
| 629 |
+
(r'[-+]', Operator),
|
| 630 |
+
include('integer'),
|
| 631 |
+
include('global'),
|
| 632 |
+
(r',', Punctuation),
|
| 633 |
+
(r'\), \(', Text),
|
| 634 |
+
(r'\)', Text, '#pop'),
|
| 635 |
+
],
|
| 636 |
+
'integer': [(r'-?[0-9]+', Number.Integer),],
|
| 637 |
+
'float': [(r'-?[0-9]+\.[0-9]+(e[+-][0-9]+)?', Number.Float)],
|
| 638 |
+
'global': [(r'\@[a-zA-Z0-9_.]+', Name.Variable.Global)],
|
| 639 |
+
}
|
| 640 |
+
|
| 641 |
+
|
| 642 |
+
class LlvmMirLexer(RegexLexer):
|
| 643 |
+
"""
|
| 644 |
+
Lexer for the overall LLVM MIR document format.
|
| 645 |
+
|
| 646 |
+
MIR is a human readable serialization format that's used to represent LLVM's
|
| 647 |
+
machine specific intermediate representation. It allows LLVM's developers to
|
| 648 |
+
see the state of the compilation process at various points, as well as test
|
| 649 |
+
individual pieces of the compiler.
|
| 650 |
+
"""
|
| 651 |
+
name = 'LLVM-MIR'
|
| 652 |
+
url = 'https://llvm.org/docs/MIRLangRef.html'
|
| 653 |
+
aliases = ['llvm-mir']
|
| 654 |
+
filenames = ['*.mir']
|
| 655 |
+
version_added = '2.6'
|
| 656 |
+
|
| 657 |
+
tokens = {
|
| 658 |
+
'root': [
|
| 659 |
+
# Comments are hashes at the YAML level
|
| 660 |
+
(r'#.*', Comment),
|
| 661 |
+
# Documents starting with | are LLVM-IR
|
| 662 |
+
(r'--- \|$', Keyword, 'llvm_ir'),
|
| 663 |
+
# Other documents are MIR
|
| 664 |
+
(r'---', Keyword, 'llvm_mir'),
|
| 665 |
+
# Consume everything else in one token for efficiency
|
| 666 |
+
(r'[^-#]+|.', Text),
|
| 667 |
+
],
|
| 668 |
+
'llvm_ir': [
|
| 669 |
+
# Documents end with '...' or '---'
|
| 670 |
+
(r'(\.\.\.|(?=---))', Keyword, '#pop'),
|
| 671 |
+
# Delegate to the LlvmLexer
|
| 672 |
+
(r'((?:.|\n)+?)(?=(\.\.\.|---))', bygroups(using(LlvmLexer))),
|
| 673 |
+
],
|
| 674 |
+
'llvm_mir': [
|
| 675 |
+
# Comments are hashes at the YAML level
|
| 676 |
+
(r'#.*', Comment),
|
| 677 |
+
# Documents end with '...' or '---'
|
| 678 |
+
(r'(\.\.\.|(?=---))', Keyword, '#pop'),
|
| 679 |
+
# Handle the simple attributes
|
| 680 |
+
(r'name:', Keyword, 'name'),
|
| 681 |
+
(words(('alignment', ),
|
| 682 |
+
suffix=':'), Keyword, 'number'),
|
| 683 |
+
(words(('legalized', 'regBankSelected', 'tracksRegLiveness',
|
| 684 |
+
'selected', 'exposesReturnsTwice'),
|
| 685 |
+
suffix=':'), Keyword, 'boolean'),
|
| 686 |
+
# Handle the attributes don't highlight inside
|
| 687 |
+
(words(('registers', 'stack', 'fixedStack', 'liveins', 'frameInfo',
|
| 688 |
+
'machineFunctionInfo'),
|
| 689 |
+
suffix=':'), Keyword),
|
| 690 |
+
# Delegate the body block to the LlvmMirBodyLexer
|
| 691 |
+
(r'body: *\|', Keyword, 'llvm_mir_body'),
|
| 692 |
+
# Consume everything else
|
| 693 |
+
(r'.+', Text),
|
| 694 |
+
(r'\n', Whitespace),
|
| 695 |
+
],
|
| 696 |
+
'name': [
|
| 697 |
+
(r'[^\n]+', Name),
|
| 698 |
+
default('#pop'),
|
| 699 |
+
],
|
| 700 |
+
'boolean': [
|
| 701 |
+
(r' *(true|false)', Name.Builtin),
|
| 702 |
+
default('#pop'),
|
| 703 |
+
],
|
| 704 |
+
'number': [
|
| 705 |
+
(r' *[0-9]+', Number),
|
| 706 |
+
default('#pop'),
|
| 707 |
+
],
|
| 708 |
+
'llvm_mir_body': [
|
| 709 |
+
# Documents end with '...' or '---'.
|
| 710 |
+
# We have to pop llvm_mir_body and llvm_mir
|
| 711 |
+
(r'(\.\.\.|(?=---))', Keyword, '#pop:2'),
|
| 712 |
+
# Delegate the body block to the LlvmMirBodyLexer
|
| 713 |
+
(r'((?:.|\n)+?)(?=\.\.\.|---)', bygroups(using(LlvmMirBodyLexer))),
|
| 714 |
+
# The '...' is optional. If we didn't already find it then it isn't
|
| 715 |
+
# there. There might be a '---' instead though.
|
| 716 |
+
(r'(?!\.\.\.|---)((?:.|\n)+)', bygroups(using(LlvmMirBodyLexer))),
|
| 717 |
+
],
|
| 718 |
+
}
|
| 719 |
+
|
| 720 |
+
|
| 721 |
+
class NasmLexer(RegexLexer):
|
| 722 |
+
"""
|
| 723 |
+
For Nasm (Intel) assembly code.
|
| 724 |
+
"""
|
| 725 |
+
name = 'NASM'
|
| 726 |
+
aliases = ['nasm']
|
| 727 |
+
filenames = ['*.asm', '*.ASM', '*.nasm']
|
| 728 |
+
mimetypes = ['text/x-nasm']
|
| 729 |
+
url = 'https://nasm.us'
|
| 730 |
+
version_added = ''
|
| 731 |
+
|
| 732 |
+
# Tasm uses the same file endings, but TASM is not as common as NASM, so
|
| 733 |
+
# we prioritize NASM higher by default
|
| 734 |
+
priority = 1.0
|
| 735 |
+
|
| 736 |
+
identifier = r'[a-z$._?][\w$.?#@~]*'
|
| 737 |
+
hexn = r'(?:0x[0-9a-f]+|$0[0-9a-f]*|[0-9]+[0-9a-f]*h)'
|
| 738 |
+
octn = r'[0-7]+q'
|
| 739 |
+
binn = r'[01]+b'
|
| 740 |
+
decn = r'[0-9]+'
|
| 741 |
+
floatn = decn + r'\.e?' + decn
|
| 742 |
+
string = r'"(\\"|[^"\n])*"|' + r"'(\\'|[^'\n])*'|" + r"`(\\`|[^`\n])*`"
|
| 743 |
+
declkw = r'(?:res|d)[bwdqt]|times'
|
| 744 |
+
register = (r'(r[0-9][0-5]?[bwd]?|'
|
| 745 |
+
r'[a-d][lh]|[er]?[a-d]x|[er]?[sb]p|[er]?[sd]i|[c-gs]s|st[0-7]|'
|
| 746 |
+
r'mm[0-7]|cr[0-4]|dr[0-367]|tr[3-7]|k[0-7]|'
|
| 747 |
+
r'[xyz]mm(?:[12][0-9]?|3[01]?|[04-9]))\b')
|
| 748 |
+
wordop = r'seg|wrt|strict|rel|abs'
|
| 749 |
+
type = r'byte|[dq]?word'
|
| 750 |
+
# Directives must be followed by whitespace, otherwise CPU will match
|
| 751 |
+
# cpuid for instance.
|
| 752 |
+
directives = (r'(?:BITS|USE16|USE32|SECTION|SEGMENT|ABSOLUTE|EXTERN|GLOBAL|'
|
| 753 |
+
r'ORG|ALIGN|STRUC|ENDSTRUC|COMMON|CPU|GROUP|UPPERCASE|IMPORT|'
|
| 754 |
+
r'EXPORT|LIBRARY|MODULE)(?=\s)')
|
| 755 |
+
|
| 756 |
+
flags = re.IGNORECASE | re.MULTILINE
|
| 757 |
+
tokens = {
|
| 758 |
+
'root': [
|
| 759 |
+
(r'^\s*%', Comment.Preproc, 'preproc'),
|
| 760 |
+
include('whitespace'),
|
| 761 |
+
(identifier + ':', Name.Label),
|
| 762 |
+
(rf'({identifier})(\s+)(equ)',
|
| 763 |
+
bygroups(Name.Constant, Whitespace, Keyword.Declaration),
|
| 764 |
+
'instruction-args'),
|
| 765 |
+
(directives, Keyword, 'instruction-args'),
|
| 766 |
+
(declkw, Keyword.Declaration, 'instruction-args'),
|
| 767 |
+
(identifier, Name.Function, 'instruction-args'),
|
| 768 |
+
(r'[\r\n]+', Whitespace)
|
| 769 |
+
],
|
| 770 |
+
'instruction-args': [
|
| 771 |
+
(string, String),
|
| 772 |
+
(hexn, Number.Hex),
|
| 773 |
+
(octn, Number.Oct),
|
| 774 |
+
(binn, Number.Bin),
|
| 775 |
+
(floatn, Number.Float),
|
| 776 |
+
(decn, Number.Integer),
|
| 777 |
+
include('punctuation'),
|
| 778 |
+
(register, Name.Builtin),
|
| 779 |
+
(identifier, Name.Variable),
|
| 780 |
+
(r'[\r\n]+', Whitespace, '#pop'),
|
| 781 |
+
include('whitespace')
|
| 782 |
+
],
|
| 783 |
+
'preproc': [
|
| 784 |
+
(r'[^;\n]+', Comment.Preproc),
|
| 785 |
+
(r';.*?\n', Comment.Single, '#pop'),
|
| 786 |
+
(r'\n', Comment.Preproc, '#pop'),
|
| 787 |
+
],
|
| 788 |
+
'whitespace': [
|
| 789 |
+
(r'\n', Whitespace),
|
| 790 |
+
(r'[ \t]+', Whitespace),
|
| 791 |
+
(r';.*', Comment.Single),
|
| 792 |
+
(r'#.*', Comment.Single)
|
| 793 |
+
],
|
| 794 |
+
'punctuation': [
|
| 795 |
+
(r'[,{}():\[\]]+', Punctuation),
|
| 796 |
+
(r'[&|^<>+*/%~-]+', Operator),
|
| 797 |
+
(r'[$]+', Keyword.Constant),
|
| 798 |
+
(wordop, Operator.Word),
|
| 799 |
+
(type, Keyword.Type)
|
| 800 |
+
],
|
| 801 |
+
}
|
| 802 |
+
|
| 803 |
+
def analyse_text(text):
|
| 804 |
+
# Probably TASM
|
| 805 |
+
if re.match(r'PROC', text, re.IGNORECASE):
|
| 806 |
+
return False
|
| 807 |
+
|
| 808 |
+
|
| 809 |
+
class NasmObjdumpLexer(ObjdumpLexer):
|
| 810 |
+
"""
|
| 811 |
+
For the output of ``objdump -d -M intel``.
|
| 812 |
+
"""
|
| 813 |
+
name = 'objdump-nasm'
|
| 814 |
+
aliases = ['objdump-nasm']
|
| 815 |
+
filenames = ['*.objdump-intel']
|
| 816 |
+
mimetypes = ['text/x-nasm-objdump']
|
| 817 |
+
url = 'https://www.gnu.org/software/binutils'
|
| 818 |
+
version_added = '2.0'
|
| 819 |
+
|
| 820 |
+
tokens = _objdump_lexer_tokens(NasmLexer)
|
| 821 |
+
|
| 822 |
+
|
| 823 |
+
class TasmLexer(RegexLexer):
|
| 824 |
+
"""
|
| 825 |
+
For Tasm (Turbo Assembler) assembly code.
|
| 826 |
+
"""
|
| 827 |
+
name = 'TASM'
|
| 828 |
+
aliases = ['tasm']
|
| 829 |
+
filenames = ['*.asm', '*.ASM', '*.tasm']
|
| 830 |
+
mimetypes = ['text/x-tasm']
|
| 831 |
+
url = 'https://en.wikipedia.org/wiki/Turbo_Assembler'
|
| 832 |
+
version_added = ''
|
| 833 |
+
|
| 834 |
+
identifier = r'[@a-z$._?][\w$.?#@~]*'
|
| 835 |
+
hexn = r'(?:0x[0-9a-f]+|$0[0-9a-f]*|[0-9]+[0-9a-f]*h)'
|
| 836 |
+
octn = r'[0-7]+q'
|
| 837 |
+
binn = r'[01]+b'
|
| 838 |
+
decn = r'[0-9]+'
|
| 839 |
+
floatn = decn + r'\.e?' + decn
|
| 840 |
+
string = r'"(\\"|[^"\n])*"|' + r"'(\\'|[^'\n])*'|" + r"`(\\`|[^`\n])*`"
|
| 841 |
+
declkw = r'(?:res|d)[bwdqt]|times'
|
| 842 |
+
register = (r'(r[0-9][0-5]?[bwd]|'
|
| 843 |
+
r'[a-d][lh]|[er]?[a-d]x|[er]?[sb]p|[er]?[sd]i|[c-gs]s|st[0-7]|'
|
| 844 |
+
r'mm[0-7]|cr[0-4]|dr[0-367]|tr[3-7])\b')
|
| 845 |
+
wordop = r'seg|wrt|strict'
|
| 846 |
+
type = r'byte|[dq]?word'
|
| 847 |
+
directives = (r'BITS|USE16|USE32|SECTION|SEGMENT|ABSOLUTE|EXTERN|GLOBAL|'
|
| 848 |
+
r'ORG|ALIGN|STRUC|ENDSTRUC|ENDS|COMMON|CPU|GROUP|UPPERCASE|INCLUDE|'
|
| 849 |
+
r'EXPORT|LIBRARY|MODULE|PROC|ENDP|USES|ARG|DATASEG|UDATASEG|END|IDEAL|'
|
| 850 |
+
r'P386|MODEL|ASSUME|CODESEG|SIZE')
|
| 851 |
+
# T[A-Z][a-z] is more of a convention. Lexer should filter out STRUC definitions
|
| 852 |
+
# and then 'add' them to datatype somehow.
|
| 853 |
+
datatype = (r'db|dd|dw|T[A-Z][a-z]+')
|
| 854 |
+
|
| 855 |
+
flags = re.IGNORECASE | re.MULTILINE
|
| 856 |
+
tokens = {
|
| 857 |
+
'root': [
|
| 858 |
+
(r'^\s*%', Comment.Preproc, 'preproc'),
|
| 859 |
+
include('whitespace'),
|
| 860 |
+
(identifier + ':', Name.Label),
|
| 861 |
+
(directives, Keyword, 'instruction-args'),
|
| 862 |
+
(rf'({identifier})(\s+)({datatype})',
|
| 863 |
+
bygroups(Name.Constant, Whitespace, Keyword.Declaration),
|
| 864 |
+
'instruction-args'),
|
| 865 |
+
(declkw, Keyword.Declaration, 'instruction-args'),
|
| 866 |
+
(identifier, Name.Function, 'instruction-args'),
|
| 867 |
+
(r'[\r\n]+', Whitespace)
|
| 868 |
+
],
|
| 869 |
+
'instruction-args': [
|
| 870 |
+
(string, String),
|
| 871 |
+
(hexn, Number.Hex),
|
| 872 |
+
(octn, Number.Oct),
|
| 873 |
+
(binn, Number.Bin),
|
| 874 |
+
(floatn, Number.Float),
|
| 875 |
+
(decn, Number.Integer),
|
| 876 |
+
include('punctuation'),
|
| 877 |
+
(register, Name.Builtin),
|
| 878 |
+
(identifier, Name.Variable),
|
| 879 |
+
# Do not match newline when it's preceded by a backslash
|
| 880 |
+
(r'(\\)(\s*)(;.*)([\r\n])',
|
| 881 |
+
bygroups(Text, Whitespace, Comment.Single, Whitespace)),
|
| 882 |
+
(r'[\r\n]+', Whitespace, '#pop'),
|
| 883 |
+
include('whitespace')
|
| 884 |
+
],
|
| 885 |
+
'preproc': [
|
| 886 |
+
(r'[^;\n]+', Comment.Preproc),
|
| 887 |
+
(r';.*?\n', Comment.Single, '#pop'),
|
| 888 |
+
(r'\n', Comment.Preproc, '#pop'),
|
| 889 |
+
],
|
| 890 |
+
'whitespace': [
|
| 891 |
+
(r'[\n\r]', Whitespace),
|
| 892 |
+
(r'(\\)([\n\r])', bygroups(Text, Whitespace)),
|
| 893 |
+
(r'[ \t]+', Whitespace),
|
| 894 |
+
(r';.*', Comment.Single)
|
| 895 |
+
],
|
| 896 |
+
'punctuation': [
|
| 897 |
+
(r'[,():\[\]]+', Punctuation),
|
| 898 |
+
(r'[&|^<>+*=/%~-]+', Operator),
|
| 899 |
+
(r'[$]+', Keyword.Constant),
|
| 900 |
+
(wordop, Operator.Word),
|
| 901 |
+
(type, Keyword.Type)
|
| 902 |
+
],
|
| 903 |
+
}
|
| 904 |
+
|
| 905 |
+
def analyse_text(text):
|
| 906 |
+
# See above
|
| 907 |
+
if re.match(r'PROC', text, re.I):
|
| 908 |
+
return True
|
| 909 |
+
|
| 910 |
+
|
| 911 |
+
class Ca65Lexer(RegexLexer):
|
| 912 |
+
"""
|
| 913 |
+
For ca65 assembler sources.
|
| 914 |
+
"""
|
| 915 |
+
name = 'ca65 assembler'
|
| 916 |
+
aliases = ['ca65']
|
| 917 |
+
filenames = ['*.s']
|
| 918 |
+
url = 'https://cc65.github.io'
|
| 919 |
+
version_added = '1.6'
|
| 920 |
+
|
| 921 |
+
flags = re.IGNORECASE
|
| 922 |
+
|
| 923 |
+
tokens = {
|
| 924 |
+
'root': [
|
| 925 |
+
(r';.*', Comment.Single),
|
| 926 |
+
(r'\s+', Whitespace),
|
| 927 |
+
(r'[a-z_.@$][\w.@$]*:', Name.Label),
|
| 928 |
+
(r'((ld|st)[axy]|(in|de)[cxy]|asl|lsr|ro[lr]|adc|sbc|cmp|cp[xy]'
|
| 929 |
+
r'|cl[cvdi]|se[cdi]|jmp|jsr|bne|beq|bpl|bmi|bvc|bvs|bcc|bcs'
|
| 930 |
+
r'|p[lh][ap]|rt[is]|brk|nop|ta[xy]|t[xy]a|txs|tsx|and|ora|eor'
|
| 931 |
+
r'|bit)\b', Keyword),
|
| 932 |
+
(r'\.\w+', Keyword.Pseudo),
|
| 933 |
+
(r'[-+~*/^&|!<>=]', Operator),
|
| 934 |
+
(r'"[^"\n]*.', String),
|
| 935 |
+
(r"'[^'\n]*.", String.Char),
|
| 936 |
+
(r'\$[0-9a-f]+|[0-9a-f]+h\b', Number.Hex),
|
| 937 |
+
(r'\d+', Number.Integer),
|
| 938 |
+
(r'%[01]+', Number.Bin),
|
| 939 |
+
(r'[#,.:()=\[\]]', Punctuation),
|
| 940 |
+
(r'[a-z_.@$][\w.@$]*', Name),
|
| 941 |
+
]
|
| 942 |
+
}
|
| 943 |
+
|
| 944 |
+
def analyse_text(self, text):
|
| 945 |
+
# comments in GAS start with "#"
|
| 946 |
+
if re.search(r'^\s*;', text, re.MULTILINE):
|
| 947 |
+
return 0.9
|
| 948 |
+
|
| 949 |
+
|
| 950 |
+
class Dasm16Lexer(RegexLexer):
|
| 951 |
+
"""
|
| 952 |
+
For DCPU-16 Assembly.
|
| 953 |
+
"""
|
| 954 |
+
name = 'DASM16'
|
| 955 |
+
url = 'http://0x10c.com/doc/dcpu-16.txt'
|
| 956 |
+
aliases = ['dasm16']
|
| 957 |
+
filenames = ['*.dasm16', '*.dasm']
|
| 958 |
+
mimetypes = ['text/x-dasm16']
|
| 959 |
+
version_added = '2.4'
|
| 960 |
+
|
| 961 |
+
INSTRUCTIONS = [
|
| 962 |
+
'SET',
|
| 963 |
+
'ADD', 'SUB',
|
| 964 |
+
'MUL', 'MLI',
|
| 965 |
+
'DIV', 'DVI',
|
| 966 |
+
'MOD', 'MDI',
|
| 967 |
+
'AND', 'BOR', 'XOR',
|
| 968 |
+
'SHR', 'ASR', 'SHL',
|
| 969 |
+
'IFB', 'IFC', 'IFE', 'IFN', 'IFG', 'IFA', 'IFL', 'IFU',
|
| 970 |
+
'ADX', 'SBX',
|
| 971 |
+
'STI', 'STD',
|
| 972 |
+
'JSR',
|
| 973 |
+
'INT', 'IAG', 'IAS', 'RFI', 'IAQ', 'HWN', 'HWQ', 'HWI',
|
| 974 |
+
]
|
| 975 |
+
|
| 976 |
+
REGISTERS = [
|
| 977 |
+
'A', 'B', 'C',
|
| 978 |
+
'X', 'Y', 'Z',
|
| 979 |
+
'I', 'J',
|
| 980 |
+
'SP', 'PC', 'EX',
|
| 981 |
+
'POP', 'PEEK', 'PUSH'
|
| 982 |
+
]
|
| 983 |
+
|
| 984 |
+
# Regexes yo
|
| 985 |
+
char = r'[a-zA-Z0-9_$@.]'
|
| 986 |
+
identifier = r'(?:[a-zA-Z$_]' + char + r'*|\.' + char + '+)'
|
| 987 |
+
number = r'[+-]?(?:0[xX][a-zA-Z0-9]+|\d+)'
|
| 988 |
+
binary_number = r'0b[01_]+'
|
| 989 |
+
instruction = r'(?i)(' + '|'.join(INSTRUCTIONS) + ')'
|
| 990 |
+
single_char = r"'\\?" + char + "'"
|
| 991 |
+
string = r'"(\\"|[^"])*"'
|
| 992 |
+
|
| 993 |
+
def guess_identifier(lexer, match):
|
| 994 |
+
ident = match.group(0)
|
| 995 |
+
klass = Name.Variable if ident.upper() in lexer.REGISTERS else Name.Label
|
| 996 |
+
yield match.start(), klass, ident
|
| 997 |
+
|
| 998 |
+
tokens = {
|
| 999 |
+
'root': [
|
| 1000 |
+
include('whitespace'),
|
| 1001 |
+
(':' + identifier, Name.Label),
|
| 1002 |
+
(identifier + ':', Name.Label),
|
| 1003 |
+
(instruction, Name.Function, 'instruction-args'),
|
| 1004 |
+
(r'\.' + identifier, Name.Function, 'data-args'),
|
| 1005 |
+
(r'[\r\n]+', Whitespace)
|
| 1006 |
+
],
|
| 1007 |
+
|
| 1008 |
+
'numeric' : [
|
| 1009 |
+
(binary_number, Number.Integer),
|
| 1010 |
+
(number, Number.Integer),
|
| 1011 |
+
(single_char, String),
|
| 1012 |
+
],
|
| 1013 |
+
|
| 1014 |
+
'arg' : [
|
| 1015 |
+
(identifier, guess_identifier),
|
| 1016 |
+
include('numeric')
|
| 1017 |
+
],
|
| 1018 |
+
|
| 1019 |
+
'deref' : [
|
| 1020 |
+
(r'\+', Punctuation),
|
| 1021 |
+
(r'\]', Punctuation, '#pop'),
|
| 1022 |
+
include('arg'),
|
| 1023 |
+
include('whitespace')
|
| 1024 |
+
],
|
| 1025 |
+
|
| 1026 |
+
'instruction-line' : [
|
| 1027 |
+
(r'[\r\n]+', Whitespace, '#pop'),
|
| 1028 |
+
(r';.*?$', Comment, '#pop'),
|
| 1029 |
+
include('whitespace')
|
| 1030 |
+
],
|
| 1031 |
+
|
| 1032 |
+
'instruction-args': [
|
| 1033 |
+
(r',', Punctuation),
|
| 1034 |
+
(r'\[', Punctuation, 'deref'),
|
| 1035 |
+
include('arg'),
|
| 1036 |
+
include('instruction-line')
|
| 1037 |
+
],
|
| 1038 |
+
|
| 1039 |
+
'data-args' : [
|
| 1040 |
+
(r',', Punctuation),
|
| 1041 |
+
include('numeric'),
|
| 1042 |
+
(string, String),
|
| 1043 |
+
include('instruction-line')
|
| 1044 |
+
],
|
| 1045 |
+
|
| 1046 |
+
'whitespace': [
|
| 1047 |
+
(r'\n', Whitespace),
|
| 1048 |
+
(r'\s+', Whitespace),
|
| 1049 |
+
(r';.*?\n', Comment)
|
| 1050 |
+
],
|
| 1051 |
+
}
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/asn1.py
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pygments.lexers.asn1
|
| 3 |
+
~~~~~~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
Pygments lexers for ASN.1.
|
| 6 |
+
|
| 7 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 8 |
+
:license: BSD, see LICENSE for details.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
import re
|
| 12 |
+
|
| 13 |
+
from pygments.token import Comment, Operator, Keyword, Name, String, \
|
| 14 |
+
Number, Punctuation, Whitespace
|
| 15 |
+
from pygments.lexer import RegexLexer, words, bygroups
|
| 16 |
+
|
| 17 |
+
__all__ = ['Asn1Lexer']
|
| 18 |
+
|
| 19 |
+
SINGLE_WORD_KEYWORDS = [
|
| 20 |
+
"ENCODED",
|
| 21 |
+
"ABSTRACT-SYNTAX",
|
| 22 |
+
"END",
|
| 23 |
+
"APPLICATION",
|
| 24 |
+
"EXPLICIT",
|
| 25 |
+
"IMPLICIT",
|
| 26 |
+
"AUTOMATIC",
|
| 27 |
+
"TAGS",
|
| 28 |
+
"BEGIN",
|
| 29 |
+
"EXTENSIBILITY",
|
| 30 |
+
"BY",
|
| 31 |
+
"FROM",
|
| 32 |
+
"COMPONENT",
|
| 33 |
+
"UNIVERSAL",
|
| 34 |
+
"COMPONENTS",
|
| 35 |
+
"CONSTRAINED",
|
| 36 |
+
"IMPLIED",
|
| 37 |
+
"DEFINITIONS",
|
| 38 |
+
"INCLUDES",
|
| 39 |
+
"PRIVATE",
|
| 40 |
+
"WITH",
|
| 41 |
+
"OF",
|
| 42 |
+
]
|
| 43 |
+
|
| 44 |
+
OPERATOR_WORDS = [
|
| 45 |
+
"EXCEPT",
|
| 46 |
+
"UNION",
|
| 47 |
+
"INTERSECTION",
|
| 48 |
+
]
|
| 49 |
+
|
| 50 |
+
SINGLE_WORD_NAMESPACE_KEYWORDS = [
|
| 51 |
+
"EXPORTS",
|
| 52 |
+
"IMPORTS",
|
| 53 |
+
]
|
| 54 |
+
|
| 55 |
+
MULTI_WORDS_DECLARATIONS = [
|
| 56 |
+
"SEQUENCE OF",
|
| 57 |
+
"SET OF",
|
| 58 |
+
"INSTANCE OF",
|
| 59 |
+
"WITH SYNTAX",
|
| 60 |
+
]
|
| 61 |
+
|
| 62 |
+
SINGLE_WORDS_DECLARATIONS = [
|
| 63 |
+
"SIZE",
|
| 64 |
+
"SEQUENCE",
|
| 65 |
+
"SET",
|
| 66 |
+
"CLASS",
|
| 67 |
+
"UNIQUE",
|
| 68 |
+
"DEFAULT",
|
| 69 |
+
"CHOICE",
|
| 70 |
+
"PATTERN",
|
| 71 |
+
"OPTIONAL",
|
| 72 |
+
"PRESENT",
|
| 73 |
+
"ABSENT",
|
| 74 |
+
"CONTAINING",
|
| 75 |
+
"ENUMERATED",
|
| 76 |
+
"ALL",
|
| 77 |
+
]
|
| 78 |
+
|
| 79 |
+
TWO_WORDS_TYPES = [
|
| 80 |
+
"OBJECT IDENTIFIER",
|
| 81 |
+
"BIT STRING",
|
| 82 |
+
"OCTET STRING",
|
| 83 |
+
"CHARACTER STRING",
|
| 84 |
+
"EMBEDDED PDV",
|
| 85 |
+
]
|
| 86 |
+
|
| 87 |
+
SINGLE_WORD_TYPES = [
|
| 88 |
+
"RELATIVE-OID",
|
| 89 |
+
"TYPE-IDENTIFIER",
|
| 90 |
+
"ObjectDescriptor",
|
| 91 |
+
"IA5String",
|
| 92 |
+
"INTEGER",
|
| 93 |
+
"ISO646String",
|
| 94 |
+
"T61String",
|
| 95 |
+
"BMPString",
|
| 96 |
+
"NumericString",
|
| 97 |
+
"TeletexString",
|
| 98 |
+
"GeneralizedTime",
|
| 99 |
+
"REAL",
|
| 100 |
+
"BOOLEAN",
|
| 101 |
+
"GeneralString",
|
| 102 |
+
"GraphicString",
|
| 103 |
+
"UniversalString",
|
| 104 |
+
"UTCTime",
|
| 105 |
+
"VisibleString",
|
| 106 |
+
"UTF8String",
|
| 107 |
+
"PrintableString",
|
| 108 |
+
"VideotexString",
|
| 109 |
+
"EXTERNAL",
|
| 110 |
+
]
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
def word_sequences(tokens):
|
| 114 |
+
return "(" + '|'.join(token.replace(' ', r'\s+') for token in tokens) + r')\b'
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
class Asn1Lexer(RegexLexer):
|
| 118 |
+
|
| 119 |
+
"""
|
| 120 |
+
Lexer for ASN.1 module definition
|
| 121 |
+
"""
|
| 122 |
+
|
| 123 |
+
flags = re.MULTILINE
|
| 124 |
+
|
| 125 |
+
name = 'ASN.1'
|
| 126 |
+
aliases = ['asn1']
|
| 127 |
+
filenames = ["*.asn1"]
|
| 128 |
+
url = "https://www.itu.int/ITU-T/studygroups/com17/languages/X.680-0207.pdf"
|
| 129 |
+
version_added = '2.16'
|
| 130 |
+
|
| 131 |
+
tokens = {
|
| 132 |
+
'root': [
|
| 133 |
+
# Whitespace:
|
| 134 |
+
(r'\s+', Whitespace),
|
| 135 |
+
# Comments:
|
| 136 |
+
(r'--.*$', Comment.Single),
|
| 137 |
+
(r'/\*', Comment.Multiline, 'comment'),
|
| 138 |
+
# Numbers:
|
| 139 |
+
(r'\d+\.\d*([eE][-+]?\d+)?', Number.Float),
|
| 140 |
+
(r'\d+', Number.Integer),
|
| 141 |
+
# Identifier:
|
| 142 |
+
(r"&?[a-z][-a-zA-Z0-9]*[a-zA-Z0-9]\b", Name.Variable),
|
| 143 |
+
# Constants:
|
| 144 |
+
(words(("TRUE", "FALSE", "NULL", "MINUS-INFINITY", "PLUS-INFINITY", "MIN", "MAX"), suffix=r'\b'), Keyword.Constant),
|
| 145 |
+
# Builtin types:
|
| 146 |
+
(word_sequences(TWO_WORDS_TYPES), Keyword.Type),
|
| 147 |
+
(words(SINGLE_WORD_TYPES, suffix=r'\b'), Keyword.Type),
|
| 148 |
+
# Other keywords:
|
| 149 |
+
(r"EXPORTS\s+ALL\b", Keyword.Namespace),
|
| 150 |
+
(words(SINGLE_WORD_NAMESPACE_KEYWORDS, suffix=r'\b'), Operator.Namespace),
|
| 151 |
+
(word_sequences(MULTI_WORDS_DECLARATIONS), Keyword.Declaration),
|
| 152 |
+
(words(SINGLE_WORDS_DECLARATIONS, suffix=r'\b'), Keyword.Declaration),
|
| 153 |
+
(words(OPERATOR_WORDS, suffix=r'\b'), Operator.Word),
|
| 154 |
+
(words(SINGLE_WORD_KEYWORDS), Keyword),
|
| 155 |
+
# Type identifier:
|
| 156 |
+
(r"&?[A-Z][-a-zA-Z0-9]*[a-zA-Z0-9]\b", Name.Type),
|
| 157 |
+
# Operators:
|
| 158 |
+
(r"(::=|\.\.\.|\.\.|\[\[|\]\]|\||\^)", Operator),
|
| 159 |
+
# Punctuation:
|
| 160 |
+
(r"(\.|,|\{|\}|\(|\)|\[|\])", Punctuation),
|
| 161 |
+
# String:
|
| 162 |
+
(r'"', String, 'string'),
|
| 163 |
+
# Binary string:
|
| 164 |
+
(r"('[01 ]*')(B)\b", bygroups(String, String.Affix)),
|
| 165 |
+
(r"('[0-9A-F ]*')(H)\b",bygroups(String, String.Affix)),
|
| 166 |
+
],
|
| 167 |
+
'comment': [
|
| 168 |
+
(r'[^*/]+', Comment.Multiline),
|
| 169 |
+
(r'/\*', Comment.Multiline, '#push'),
|
| 170 |
+
(r'\*/', Comment.Multiline, '#pop'),
|
| 171 |
+
(r'[*/]', Comment.Multiline)
|
| 172 |
+
],
|
| 173 |
+
'string': [
|
| 174 |
+
(r'""', String),
|
| 175 |
+
(r'"', String, "#pop"),
|
| 176 |
+
(r'[^"]', String),
|
| 177 |
+
]
|
| 178 |
+
}
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/automation.py
ADDED
|
@@ -0,0 +1,379 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pygments.lexers.automation
|
| 3 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
Lexers for automation scripting languages.
|
| 6 |
+
|
| 7 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 8 |
+
:license: BSD, see LICENSE for details.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
from pygments.lexer import RegexLexer, include, bygroups, combined
|
| 12 |
+
from pygments.token import Text, Comment, Operator, Name, String, \
|
| 13 |
+
Number, Punctuation, Generic
|
| 14 |
+
|
| 15 |
+
__all__ = ['AutohotkeyLexer', 'AutoItLexer']
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
class AutohotkeyLexer(RegexLexer):
|
| 19 |
+
"""
|
| 20 |
+
For autohotkey source code.
|
| 21 |
+
"""
|
| 22 |
+
name = 'autohotkey'
|
| 23 |
+
url = 'http://www.autohotkey.com/'
|
| 24 |
+
aliases = ['autohotkey', 'ahk']
|
| 25 |
+
filenames = ['*.ahk', '*.ahkl']
|
| 26 |
+
mimetypes = ['text/x-autohotkey']
|
| 27 |
+
version_added = '1.4'
|
| 28 |
+
|
| 29 |
+
tokens = {
|
| 30 |
+
'root': [
|
| 31 |
+
(r'^(\s*)(/\*)', bygroups(Text, Comment.Multiline), 'incomment'),
|
| 32 |
+
(r'^(\s*)(\()', bygroups(Text, Generic), 'incontinuation'),
|
| 33 |
+
(r'\s+;.*?$', Comment.Single),
|
| 34 |
+
(r'^;.*?$', Comment.Single),
|
| 35 |
+
(r'[]{}(),;[]', Punctuation),
|
| 36 |
+
(r'(in|is|and|or|not)\b', Operator.Word),
|
| 37 |
+
(r'\%[a-zA-Z_#@$][\w#@$]*\%', Name.Variable),
|
| 38 |
+
(r'!=|==|:=|\.=|<<|>>|[-~+/*%=<>&^|?:!.]', Operator),
|
| 39 |
+
include('commands'),
|
| 40 |
+
include('labels'),
|
| 41 |
+
include('builtInFunctions'),
|
| 42 |
+
include('builtInVariables'),
|
| 43 |
+
(r'"', String, combined('stringescape', 'dqs')),
|
| 44 |
+
include('numbers'),
|
| 45 |
+
(r'[a-zA-Z_#@$][\w#@$]*', Name),
|
| 46 |
+
(r'\\|\'', Text),
|
| 47 |
+
(r'\`([,%`abfnrtv\-+;])', String.Escape),
|
| 48 |
+
include('garbage'),
|
| 49 |
+
],
|
| 50 |
+
'incomment': [
|
| 51 |
+
(r'^\s*\*/', Comment.Multiline, '#pop'),
|
| 52 |
+
(r'[^*]+', Comment.Multiline),
|
| 53 |
+
(r'\*', Comment.Multiline)
|
| 54 |
+
],
|
| 55 |
+
'incontinuation': [
|
| 56 |
+
(r'^\s*\)', Generic, '#pop'),
|
| 57 |
+
(r'[^)]', Generic),
|
| 58 |
+
(r'[)]', Generic),
|
| 59 |
+
],
|
| 60 |
+
'commands': [
|
| 61 |
+
(r'(?i)^(\s*)(global|local|static|'
|
| 62 |
+
r'#AllowSameLineComments|#ClipboardTimeout|#CommentFlag|'
|
| 63 |
+
r'#ErrorStdOut|#EscapeChar|#HotkeyInterval|#HotkeyModifierTimeout|'
|
| 64 |
+
r'#Hotstring|#IfWinActive|#IfWinExist|#IfWinNotActive|'
|
| 65 |
+
r'#IfWinNotExist|#IncludeAgain|#Include|#InstallKeybdHook|'
|
| 66 |
+
r'#InstallMouseHook|#KeyHistory|#LTrim|#MaxHotkeysPerInterval|'
|
| 67 |
+
r'#MaxMem|#MaxThreads|#MaxThreadsBuffer|#MaxThreadsPerHotkey|'
|
| 68 |
+
r'#NoEnv|#NoTrayIcon|#Persistent|#SingleInstance|#UseHook|'
|
| 69 |
+
r'#WinActivateForce|AutoTrim|BlockInput|Break|Click|ClipWait|'
|
| 70 |
+
r'Continue|Control|ControlClick|ControlFocus|ControlGetFocus|'
|
| 71 |
+
r'ControlGetPos|ControlGetText|ControlGet|ControlMove|ControlSend|'
|
| 72 |
+
r'ControlSendRaw|ControlSetText|CoordMode|Critical|'
|
| 73 |
+
r'DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|'
|
| 74 |
+
r'DriveSpaceFree|Edit|Else|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|'
|
| 75 |
+
r'EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|'
|
| 76 |
+
r'FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|'
|
| 77 |
+
r'FileDelete|FileGetAttrib|FileGetShortcut|FileGetSize|'
|
| 78 |
+
r'FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|'
|
| 79 |
+
r'FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|'
|
| 80 |
+
r'FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|'
|
| 81 |
+
r'FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|'
|
| 82 |
+
r'GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|'
|
| 83 |
+
r'GuiControlGet|Hotkey|IfEqual|IfExist|IfGreaterOrEqual|IfGreater|'
|
| 84 |
+
r'IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|'
|
| 85 |
+
r'IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|'
|
| 86 |
+
r'IfWinNotExist|If |ImageSearch|IniDelete|IniRead|IniWrite|'
|
| 87 |
+
r'InputBox|Input|KeyHistory|KeyWait|ListHotkeys|ListLines|'
|
| 88 |
+
r'ListVars|Loop|Menu|MouseClickDrag|MouseClick|MouseGetPos|'
|
| 89 |
+
r'MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|'
|
| 90 |
+
r'PixelSearch|PostMessage|Process|Progress|Random|RegDelete|'
|
| 91 |
+
r'RegRead|RegWrite|Reload|Repeat|Return|RunAs|RunWait|Run|'
|
| 92 |
+
r'SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|Send|'
|
| 93 |
+
r'SetBatchLines|SetCapslockState|SetControlDelay|'
|
| 94 |
+
r'SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|'
|
| 95 |
+
r'SetMouseDelay|SetNumlockState|SetScrollLockState|'
|
| 96 |
+
r'SetStoreCapslockMode|SetTimer|SetTitleMatchMode|'
|
| 97 |
+
r'SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|'
|
| 98 |
+
r'SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|'
|
| 99 |
+
r'SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|'
|
| 100 |
+
r'SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|'
|
| 101 |
+
r'StringGetPos|StringLeft|StringLen|StringLower|StringMid|'
|
| 102 |
+
r'StringReplace|StringRight|StringSplit|StringTrimLeft|'
|
| 103 |
+
r'StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|'
|
| 104 |
+
r'Transform|TrayTip|URLDownloadToFile|While|WinActivate|'
|
| 105 |
+
r'WinActivateBottom|WinClose|WinGetActiveStats|WinGetActiveTitle|'
|
| 106 |
+
r'WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinGet|WinHide|'
|
| 107 |
+
r'WinKill|WinMaximize|WinMenuSelectItem|WinMinimizeAllUndo|'
|
| 108 |
+
r'WinMinimizeAll|WinMinimize|WinMove|WinRestore|WinSetTitle|'
|
| 109 |
+
r'WinSet|WinShow|WinWaitActive|WinWaitClose|WinWaitNotActive|'
|
| 110 |
+
r'WinWait)\b', bygroups(Text, Name.Builtin)),
|
| 111 |
+
],
|
| 112 |
+
'builtInFunctions': [
|
| 113 |
+
(r'(?i)(Abs|ACos|Asc|ASin|ATan|Ceil|Chr|Cos|DllCall|Exp|FileExist|'
|
| 114 |
+
r'Floor|GetKeyState|IL_Add|IL_Create|IL_Destroy|InStr|IsFunc|'
|
| 115 |
+
r'IsLabel|Ln|Log|LV_Add|LV_Delete|LV_DeleteCol|LV_GetCount|'
|
| 116 |
+
r'LV_GetNext|LV_GetText|LV_Insert|LV_InsertCol|LV_Modify|'
|
| 117 |
+
r'LV_ModifyCol|LV_SetImageList|Mod|NumGet|NumPut|OnMessage|'
|
| 118 |
+
r'RegExMatch|RegExReplace|RegisterCallback|Round|SB_SetIcon|'
|
| 119 |
+
r'SB_SetParts|SB_SetText|Sin|Sqrt|StrLen|SubStr|Tan|TV_Add|'
|
| 120 |
+
r'TV_Delete|TV_GetChild|TV_GetCount|TV_GetNext|TV_Get|'
|
| 121 |
+
r'TV_GetParent|TV_GetPrev|TV_GetSelection|TV_GetText|TV_Modify|'
|
| 122 |
+
r'VarSetCapacity|WinActive|WinExist|Object|ComObjActive|'
|
| 123 |
+
r'ComObjArray|ComObjEnwrap|ComObjUnwrap|ComObjParameter|'
|
| 124 |
+
r'ComObjType|ComObjConnect|ComObjCreate|ComObjGet|ComObjError|'
|
| 125 |
+
r'ComObjValue|Insert|MinIndex|MaxIndex|Remove|SetCapacity|'
|
| 126 |
+
r'GetCapacity|GetAddress|_NewEnum|FileOpen|Read|Write|ReadLine|'
|
| 127 |
+
r'WriteLine|ReadNumType|WriteNumType|RawRead|RawWrite|Seek|Tell|'
|
| 128 |
+
r'Close|Next|IsObject|StrPut|StrGet|Trim|LTrim|RTrim)\b',
|
| 129 |
+
Name.Function),
|
| 130 |
+
],
|
| 131 |
+
'builtInVariables': [
|
| 132 |
+
(r'(?i)(A_AhkPath|A_AhkVersion|A_AppData|A_AppDataCommon|'
|
| 133 |
+
r'A_AutoTrim|A_BatchLines|A_CaretX|A_CaretY|A_ComputerName|'
|
| 134 |
+
r'A_ControlDelay|A_Cursor|A_DDDD|A_DDD|A_DD|A_DefaultMouseSpeed|'
|
| 135 |
+
r'A_Desktop|A_DesktopCommon|A_DetectHiddenText|'
|
| 136 |
+
r'A_DetectHiddenWindows|A_EndChar|A_EventInfo|A_ExitReason|'
|
| 137 |
+
r'A_FormatFloat|A_FormatInteger|A_Gui|A_GuiEvent|A_GuiControl|'
|
| 138 |
+
r'A_GuiControlEvent|A_GuiHeight|A_GuiWidth|A_GuiX|A_GuiY|A_Hour|'
|
| 139 |
+
r'A_IconFile|A_IconHidden|A_IconNumber|A_IconTip|A_Index|'
|
| 140 |
+
r'A_IPAddress1|A_IPAddress2|A_IPAddress3|A_IPAddress4|A_ISAdmin|'
|
| 141 |
+
r'A_IsCompiled|A_IsCritical|A_IsPaused|A_IsSuspended|A_KeyDelay|'
|
| 142 |
+
r'A_Language|A_LastError|A_LineFile|A_LineNumber|A_LoopField|'
|
| 143 |
+
r'A_LoopFileAttrib|A_LoopFileDir|A_LoopFileExt|A_LoopFileFullPath|'
|
| 144 |
+
r'A_LoopFileLongPath|A_LoopFileName|A_LoopFileShortName|'
|
| 145 |
+
r'A_LoopFileShortPath|A_LoopFileSize|A_LoopFileSizeKB|'
|
| 146 |
+
r'A_LoopFileSizeMB|A_LoopFileTimeAccessed|A_LoopFileTimeCreated|'
|
| 147 |
+
r'A_LoopFileTimeModified|A_LoopReadLine|A_LoopRegKey|'
|
| 148 |
+
r'A_LoopRegName|A_LoopRegSubkey|A_LoopRegTimeModified|'
|
| 149 |
+
r'A_LoopRegType|A_MDAY|A_Min|A_MM|A_MMM|A_MMMM|A_Mon|A_MouseDelay|'
|
| 150 |
+
r'A_MSec|A_MyDocuments|A_Now|A_NowUTC|A_NumBatchLines|A_OSType|'
|
| 151 |
+
r'A_OSVersion|A_PriorHotkey|A_ProgramFiles|A_Programs|'
|
| 152 |
+
r'A_ProgramsCommon|A_ScreenHeight|A_ScreenWidth|A_ScriptDir|'
|
| 153 |
+
r'A_ScriptFullPath|A_ScriptName|A_Sec|A_Space|A_StartMenu|'
|
| 154 |
+
r'A_StartMenuCommon|A_Startup|A_StartupCommon|A_StringCaseSense|'
|
| 155 |
+
r'A_Tab|A_Temp|A_ThisFunc|A_ThisHotkey|A_ThisLabel|A_ThisMenu|'
|
| 156 |
+
r'A_ThisMenuItem|A_ThisMenuItemPos|A_TickCount|A_TimeIdle|'
|
| 157 |
+
r'A_TimeIdlePhysical|A_TimeSincePriorHotkey|A_TimeSinceThisHotkey|'
|
| 158 |
+
r'A_TitleMatchMode|A_TitleMatchModeSpeed|A_UserName|A_WDay|'
|
| 159 |
+
r'A_WinDelay|A_WinDir|A_WorkingDir|A_YDay|A_YEAR|A_YWeek|A_YYYY|'
|
| 160 |
+
r'Clipboard|ClipboardAll|ComSpec|ErrorLevel|ProgramFiles|True|'
|
| 161 |
+
r'False|A_IsUnicode|A_FileEncoding|A_OSVersion|A_PtrSize)\b',
|
| 162 |
+
Name.Variable),
|
| 163 |
+
],
|
| 164 |
+
'labels': [
|
| 165 |
+
# hotkeys and labels
|
| 166 |
+
# technically, hotkey names are limited to named keys and buttons
|
| 167 |
+
(r'(^\s*)([^:\s("]+?:{1,2})', bygroups(Text, Name.Label)),
|
| 168 |
+
(r'(^\s*)(::[^:\s]+?::)', bygroups(Text, Name.Label)),
|
| 169 |
+
],
|
| 170 |
+
'numbers': [
|
| 171 |
+
(r'(\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?', Number.Float),
|
| 172 |
+
(r'\d+[eE][+-]?[0-9]+', Number.Float),
|
| 173 |
+
(r'0\d+', Number.Oct),
|
| 174 |
+
(r'0[xX][a-fA-F0-9]+', Number.Hex),
|
| 175 |
+
(r'\d+L', Number.Integer.Long),
|
| 176 |
+
(r'\d+', Number.Integer)
|
| 177 |
+
],
|
| 178 |
+
'stringescape': [
|
| 179 |
+
(r'\"\"|\`([,%`abfnrtv])', String.Escape),
|
| 180 |
+
],
|
| 181 |
+
'strings': [
|
| 182 |
+
(r'[^"\n]+', String),
|
| 183 |
+
],
|
| 184 |
+
'dqs': [
|
| 185 |
+
(r'"', String, '#pop'),
|
| 186 |
+
include('strings')
|
| 187 |
+
],
|
| 188 |
+
'garbage': [
|
| 189 |
+
(r'[^\S\n]', Text),
|
| 190 |
+
# (r'.', Text), # no cheating
|
| 191 |
+
],
|
| 192 |
+
}
|
| 193 |
+
|
| 194 |
+
|
| 195 |
+
class AutoItLexer(RegexLexer):
|
| 196 |
+
"""
|
| 197 |
+
For AutoIt files.
|
| 198 |
+
|
| 199 |
+
AutoIt is a freeware BASIC-like scripting language
|
| 200 |
+
designed for automating the Windows GUI and general scripting
|
| 201 |
+
"""
|
| 202 |
+
name = 'AutoIt'
|
| 203 |
+
url = 'http://www.autoitscript.com/site/autoit/'
|
| 204 |
+
aliases = ['autoit']
|
| 205 |
+
filenames = ['*.au3']
|
| 206 |
+
mimetypes = ['text/x-autoit']
|
| 207 |
+
version_added = '1.6'
|
| 208 |
+
|
| 209 |
+
# Keywords, functions, macros from au3.keywords.properties
|
| 210 |
+
# which can be found in AutoIt installed directory, e.g.
|
| 211 |
+
# c:\Program Files (x86)\AutoIt3\SciTE\au3.keywords.properties
|
| 212 |
+
|
| 213 |
+
keywords = """\
|
| 214 |
+
#include-once #include #endregion #forcedef #forceref #region
|
| 215 |
+
and byref case continueloop dim do else elseif endfunc endif
|
| 216 |
+
endselect exit exitloop for func global
|
| 217 |
+
if local next not or return select step
|
| 218 |
+
then to until wend while exit""".split()
|
| 219 |
+
|
| 220 |
+
functions = """\
|
| 221 |
+
abs acos adlibregister adlibunregister asc ascw asin assign atan
|
| 222 |
+
autoitsetoption autoitwingettitle autoitwinsettitle beep binary binarylen
|
| 223 |
+
binarymid binarytostring bitand bitnot bitor bitrotate bitshift bitxor
|
| 224 |
+
blockinput break call cdtray ceiling chr chrw clipget clipput consoleread
|
| 225 |
+
consolewrite consolewriteerror controlclick controlcommand controldisable
|
| 226 |
+
controlenable controlfocus controlgetfocus controlgethandle controlgetpos
|
| 227 |
+
controlgettext controlhide controllistview controlmove controlsend
|
| 228 |
+
controlsettext controlshow controltreeview cos dec dircopy dircreate
|
| 229 |
+
dirgetsize dirmove dirremove dllcall dllcalladdress dllcallbackfree
|
| 230 |
+
dllcallbackgetptr dllcallbackregister dllclose dllopen dllstructcreate
|
| 231 |
+
dllstructgetdata dllstructgetptr dllstructgetsize dllstructsetdata
|
| 232 |
+
drivegetdrive drivegetfilesystem drivegetlabel drivegetserial drivegettype
|
| 233 |
+
drivemapadd drivemapdel drivemapget drivesetlabel drivespacefree
|
| 234 |
+
drivespacetotal drivestatus envget envset envupdate eval execute exp
|
| 235 |
+
filechangedir fileclose filecopy filecreatentfslink filecreateshortcut
|
| 236 |
+
filedelete fileexists filefindfirstfile filefindnextfile fileflush
|
| 237 |
+
filegetattrib filegetencoding filegetlongname filegetpos filegetshortcut
|
| 238 |
+
filegetshortname filegetsize filegettime filegetversion fileinstall filemove
|
| 239 |
+
fileopen fileopendialog fileread filereadline filerecycle filerecycleempty
|
| 240 |
+
filesavedialog fileselectfolder filesetattrib filesetpos filesettime
|
| 241 |
+
filewrite filewriteline floor ftpsetproxy guicreate guictrlcreateavi
|
| 242 |
+
guictrlcreatebutton guictrlcreatecheckbox guictrlcreatecombo
|
| 243 |
+
guictrlcreatecontextmenu guictrlcreatedate guictrlcreatedummy
|
| 244 |
+
guictrlcreateedit guictrlcreategraphic guictrlcreategroup guictrlcreateicon
|
| 245 |
+
guictrlcreateinput guictrlcreatelabel guictrlcreatelist
|
| 246 |
+
guictrlcreatelistview guictrlcreatelistviewitem guictrlcreatemenu
|
| 247 |
+
guictrlcreatemenuitem guictrlcreatemonthcal guictrlcreateobj
|
| 248 |
+
guictrlcreatepic guictrlcreateprogress guictrlcreateradio
|
| 249 |
+
guictrlcreateslider guictrlcreatetab guictrlcreatetabitem
|
| 250 |
+
guictrlcreatetreeview guictrlcreatetreeviewitem guictrlcreateupdown
|
| 251 |
+
guictrldelete guictrlgethandle guictrlgetstate guictrlread guictrlrecvmsg
|
| 252 |
+
guictrlregisterlistviewsort guictrlsendmsg guictrlsendtodummy
|
| 253 |
+
guictrlsetbkcolor guictrlsetcolor guictrlsetcursor guictrlsetdata
|
| 254 |
+
guictrlsetdefbkcolor guictrlsetdefcolor guictrlsetfont guictrlsetgraphic
|
| 255 |
+
guictrlsetimage guictrlsetlimit guictrlsetonevent guictrlsetpos
|
| 256 |
+
guictrlsetresizing guictrlsetstate guictrlsetstyle guictrlsettip guidelete
|
| 257 |
+
guigetcursorinfo guigetmsg guigetstyle guiregistermsg guisetaccelerators
|
| 258 |
+
guisetbkcolor guisetcoord guisetcursor guisetfont guisethelp guiseticon
|
| 259 |
+
guisetonevent guisetstate guisetstyle guistartgroup guiswitch hex hotkeyset
|
| 260 |
+
httpsetproxy httpsetuseragent hwnd inetclose inetget inetgetinfo inetgetsize
|
| 261 |
+
inetread inidelete iniread inireadsection inireadsectionnames
|
| 262 |
+
inirenamesection iniwrite iniwritesection inputbox int isadmin isarray
|
| 263 |
+
isbinary isbool isdeclared isdllstruct isfloat ishwnd isint iskeyword
|
| 264 |
+
isnumber isobj isptr isstring log memgetstats mod mouseclick mouseclickdrag
|
| 265 |
+
mousedown mousegetcursor mousegetpos mousemove mouseup mousewheel msgbox
|
| 266 |
+
number objcreate objcreateinterface objevent objevent objget objname
|
| 267 |
+
onautoitexitregister onautoitexitunregister opt ping pixelchecksum
|
| 268 |
+
pixelgetcolor pixelsearch pluginclose pluginopen processclose processexists
|
| 269 |
+
processgetstats processlist processsetpriority processwait processwaitclose
|
| 270 |
+
progressoff progresson progressset ptr random regdelete regenumkey
|
| 271 |
+
regenumval regread regwrite round run runas runaswait runwait send
|
| 272 |
+
sendkeepactive seterror setextended shellexecute shellexecutewait shutdown
|
| 273 |
+
sin sleep soundplay soundsetwavevolume splashimageon splashoff splashtexton
|
| 274 |
+
sqrt srandom statusbargettext stderrread stdinwrite stdioclose stdoutread
|
| 275 |
+
string stringaddcr stringcompare stringformat stringfromasciiarray
|
| 276 |
+
stringinstr stringisalnum stringisalpha stringisascii stringisdigit
|
| 277 |
+
stringisfloat stringisint stringislower stringisspace stringisupper
|
| 278 |
+
stringisxdigit stringleft stringlen stringlower stringmid stringregexp
|
| 279 |
+
stringregexpreplace stringreplace stringright stringsplit stringstripcr
|
| 280 |
+
stringstripws stringtoasciiarray stringtobinary stringtrimleft
|
| 281 |
+
stringtrimright stringupper tan tcpaccept tcpclosesocket tcpconnect
|
| 282 |
+
tcplisten tcpnametoip tcprecv tcpsend tcpshutdown tcpstartup timerdiff
|
| 283 |
+
timerinit tooltip traycreateitem traycreatemenu traygetmsg trayitemdelete
|
| 284 |
+
trayitemgethandle trayitemgetstate trayitemgettext trayitemsetonevent
|
| 285 |
+
trayitemsetstate trayitemsettext traysetclick trayseticon traysetonevent
|
| 286 |
+
traysetpauseicon traysetstate traysettooltip traytip ubound udpbind
|
| 287 |
+
udpclosesocket udpopen udprecv udpsend udpshutdown udpstartup vargettype
|
| 288 |
+
winactivate winactive winclose winexists winflash wingetcaretpos
|
| 289 |
+
wingetclasslist wingetclientsize wingethandle wingetpos wingetprocess
|
| 290 |
+
wingetstate wingettext wingettitle winkill winlist winmenuselectitem
|
| 291 |
+
winminimizeall winminimizeallundo winmove winsetontop winsetstate
|
| 292 |
+
winsettitle winsettrans winwait winwaitactive winwaitclose
|
| 293 |
+
winwaitnotactive""".split()
|
| 294 |
+
|
| 295 |
+
macros = """\
|
| 296 |
+
@appdatacommondir @appdatadir @autoitexe @autoitpid @autoitversion
|
| 297 |
+
@autoitx64 @com_eventobj @commonfilesdir @compiled @computername @comspec
|
| 298 |
+
@cpuarch @cr @crlf @desktopcommondir @desktopdepth @desktopdir
|
| 299 |
+
@desktopheight @desktoprefresh @desktopwidth @documentscommondir @error
|
| 300 |
+
@exitcode @exitmethod @extended @favoritescommondir @favoritesdir
|
| 301 |
+
@gui_ctrlhandle @gui_ctrlid @gui_dragfile @gui_dragid @gui_dropid
|
| 302 |
+
@gui_winhandle @homedrive @homepath @homeshare @hotkeypressed @hour
|
| 303 |
+
@ipaddress1 @ipaddress2 @ipaddress3 @ipaddress4 @kblayout @lf
|
| 304 |
+
@logondnsdomain @logondomain @logonserver @mday @min @mon @msec @muilang
|
| 305 |
+
@mydocumentsdir @numparams @osarch @osbuild @oslang @osservicepack @ostype
|
| 306 |
+
@osversion @programfilesdir @programscommondir @programsdir @scriptdir
|
| 307 |
+
@scriptfullpath @scriptlinenumber @scriptname @sec @startmenucommondir
|
| 308 |
+
@startmenudir @startupcommondir @startupdir @sw_disable @sw_enable @sw_hide
|
| 309 |
+
@sw_lock @sw_maximize @sw_minimize @sw_restore @sw_show @sw_showdefault
|
| 310 |
+
@sw_showmaximized @sw_showminimized @sw_showminnoactive @sw_showna
|
| 311 |
+
@sw_shownoactivate @sw_shownormal @sw_unlock @systemdir @tab @tempdir
|
| 312 |
+
@tray_id @trayiconflashing @trayiconvisible @username @userprofiledir @wday
|
| 313 |
+
@windowsdir @workingdir @yday @year""".split()
|
| 314 |
+
|
| 315 |
+
tokens = {
|
| 316 |
+
'root': [
|
| 317 |
+
(r';.*\n', Comment.Single),
|
| 318 |
+
(r'(#comments-start|#cs)(.|\n)*?(#comments-end|#ce)',
|
| 319 |
+
Comment.Multiline),
|
| 320 |
+
(r'[\[\]{}(),;]', Punctuation),
|
| 321 |
+
(r'(and|or|not)\b', Operator.Word),
|
| 322 |
+
(r'[$|@][a-zA-Z_]\w*', Name.Variable),
|
| 323 |
+
(r'!=|==|:=|\.=|<<|>>|[-~+/*%=<>&^|?:!.]', Operator),
|
| 324 |
+
include('commands'),
|
| 325 |
+
include('labels'),
|
| 326 |
+
include('builtInFunctions'),
|
| 327 |
+
include('builtInMarcros'),
|
| 328 |
+
(r'"', String, combined('stringescape', 'dqs')),
|
| 329 |
+
(r"'", String, 'sqs'),
|
| 330 |
+
include('numbers'),
|
| 331 |
+
(r'[a-zA-Z_#@$][\w#@$]*', Name),
|
| 332 |
+
(r'\\|\'', Text),
|
| 333 |
+
(r'\`([,%`abfnrtv\-+;])', String.Escape),
|
| 334 |
+
(r'_\n', Text), # Line continuation
|
| 335 |
+
include('garbage'),
|
| 336 |
+
],
|
| 337 |
+
'commands': [
|
| 338 |
+
(r'(?i)(\s*)({})\b'.format('|'.join(keywords)),
|
| 339 |
+
bygroups(Text, Name.Builtin)),
|
| 340 |
+
],
|
| 341 |
+
'builtInFunctions': [
|
| 342 |
+
(r'(?i)({})\b'.format('|'.join(functions)),
|
| 343 |
+
Name.Function),
|
| 344 |
+
],
|
| 345 |
+
'builtInMarcros': [
|
| 346 |
+
(r'(?i)({})\b'.format('|'.join(macros)),
|
| 347 |
+
Name.Variable.Global),
|
| 348 |
+
],
|
| 349 |
+
'labels': [
|
| 350 |
+
# sendkeys
|
| 351 |
+
(r'(^\s*)(\{\S+?\})', bygroups(Text, Name.Label)),
|
| 352 |
+
],
|
| 353 |
+
'numbers': [
|
| 354 |
+
(r'(\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?', Number.Float),
|
| 355 |
+
(r'\d+[eE][+-]?[0-9]+', Number.Float),
|
| 356 |
+
(r'0\d+', Number.Oct),
|
| 357 |
+
(r'0[xX][a-fA-F0-9]+', Number.Hex),
|
| 358 |
+
(r'\d+L', Number.Integer.Long),
|
| 359 |
+
(r'\d+', Number.Integer)
|
| 360 |
+
],
|
| 361 |
+
'stringescape': [
|
| 362 |
+
(r'\"\"|\`([,%`abfnrtv])', String.Escape),
|
| 363 |
+
],
|
| 364 |
+
'strings': [
|
| 365 |
+
(r'[^"\n]+', String),
|
| 366 |
+
],
|
| 367 |
+
'dqs': [
|
| 368 |
+
(r'"', String, '#pop'),
|
| 369 |
+
include('strings')
|
| 370 |
+
],
|
| 371 |
+
'sqs': [
|
| 372 |
+
(r'\'\'|\`([,%`abfnrtv])', String.Escape),
|
| 373 |
+
(r"'", String, '#pop'),
|
| 374 |
+
(r"[^'\n]+", String)
|
| 375 |
+
],
|
| 376 |
+
'garbage': [
|
| 377 |
+
(r'[^\S\n]', Text),
|
| 378 |
+
],
|
| 379 |
+
}
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/business.py
ADDED
|
@@ -0,0 +1,625 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pygments.lexers.business
|
| 3 |
+
~~~~~~~~~~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
Lexers for "business-oriented" languages.
|
| 6 |
+
|
| 7 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 8 |
+
:license: BSD, see LICENSE for details.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
import re
|
| 12 |
+
|
| 13 |
+
from pygments.lexer import RegexLexer, include, words, bygroups
|
| 14 |
+
from pygments.token import Text, Comment, Operator, Keyword, Name, String, \
|
| 15 |
+
Number, Punctuation, Error, Whitespace
|
| 16 |
+
|
| 17 |
+
from pygments.lexers._openedge_builtins import OPENEDGEKEYWORDS
|
| 18 |
+
|
| 19 |
+
__all__ = ['CobolLexer', 'CobolFreeformatLexer', 'ABAPLexer', 'OpenEdgeLexer',
|
| 20 |
+
'GoodDataCLLexer', 'MaqlLexer']
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
class CobolLexer(RegexLexer):
|
| 24 |
+
"""
|
| 25 |
+
Lexer for OpenCOBOL code.
|
| 26 |
+
"""
|
| 27 |
+
name = 'COBOL'
|
| 28 |
+
aliases = ['cobol']
|
| 29 |
+
filenames = ['*.cob', '*.COB', '*.cpy', '*.CPY']
|
| 30 |
+
mimetypes = ['text/x-cobol']
|
| 31 |
+
url = 'https://en.wikipedia.org/wiki/COBOL'
|
| 32 |
+
version_added = '1.6'
|
| 33 |
+
|
| 34 |
+
flags = re.IGNORECASE | re.MULTILINE
|
| 35 |
+
|
| 36 |
+
# Data Types: by PICTURE and USAGE
|
| 37 |
+
# Operators: **, *, +, -, /, <, >, <=, >=, =, <>
|
| 38 |
+
# Logical (?): NOT, AND, OR
|
| 39 |
+
|
| 40 |
+
# Reserved words:
|
| 41 |
+
# http://opencobol.add1tocobol.com/#reserved-words
|
| 42 |
+
# Intrinsics:
|
| 43 |
+
# http://opencobol.add1tocobol.com/#does-opencobol-implement-any-intrinsic-functions
|
| 44 |
+
|
| 45 |
+
tokens = {
|
| 46 |
+
'root': [
|
| 47 |
+
include('comment'),
|
| 48 |
+
include('strings'),
|
| 49 |
+
include('core'),
|
| 50 |
+
include('nums'),
|
| 51 |
+
(r'[a-z0-9]([\w\-]*[a-z0-9]+)?', Name.Variable),
|
| 52 |
+
# (r'[\s]+', Text),
|
| 53 |
+
(r'[ \t]+', Whitespace),
|
| 54 |
+
],
|
| 55 |
+
'comment': [
|
| 56 |
+
(r'(^.{6}[*/].*\n|^.{6}|\*>.*\n)', Comment),
|
| 57 |
+
],
|
| 58 |
+
'core': [
|
| 59 |
+
# Figurative constants
|
| 60 |
+
(r'(^|(?<=[^\w\-]))(ALL\s+)?'
|
| 61 |
+
r'((ZEROES)|(HIGH-VALUE|LOW-VALUE|QUOTE|SPACE|ZERO)(S)?)'
|
| 62 |
+
r'\s*($|(?=[^\w\-]))',
|
| 63 |
+
Name.Constant),
|
| 64 |
+
|
| 65 |
+
# Reserved words STATEMENTS and other bolds
|
| 66 |
+
(words((
|
| 67 |
+
'ACCEPT', 'ADD', 'ALLOCATE', 'CALL', 'CANCEL', 'CLOSE', 'COMPUTE',
|
| 68 |
+
'CONFIGURATION', 'CONTINUE', 'DATA', 'DELETE', 'DISPLAY', 'DIVIDE',
|
| 69 |
+
'DIVISION', 'ELSE', 'END', 'END-ACCEPT',
|
| 70 |
+
'END-ADD', 'END-CALL', 'END-COMPUTE', 'END-DELETE', 'END-DISPLAY',
|
| 71 |
+
'END-DIVIDE', 'END-EVALUATE', 'END-IF', 'END-MULTIPLY', 'END-OF-PAGE',
|
| 72 |
+
'END-PERFORM', 'END-READ', 'END-RETURN', 'END-REWRITE', 'END-SEARCH',
|
| 73 |
+
'END-START', 'END-STRING', 'END-SUBTRACT', 'END-UNSTRING', 'END-WRITE',
|
| 74 |
+
'ENVIRONMENT', 'EVALUATE', 'EXIT', 'FD', 'FILE', 'FILE-CONTROL', 'FOREVER',
|
| 75 |
+
'FREE', 'GENERATE', 'GO', 'GOBACK', 'IDENTIFICATION', 'IF', 'INITIALIZE',
|
| 76 |
+
'INITIATE', 'INPUT-OUTPUT', 'INSPECT', 'INVOKE', 'I-O-CONTROL', 'LINKAGE',
|
| 77 |
+
'LOCAL-STORAGE', 'MERGE', 'MOVE', 'MULTIPLY', 'OPEN', 'PERFORM',
|
| 78 |
+
'PROCEDURE', 'PROGRAM-ID', 'RAISE', 'READ', 'RELEASE', 'RESUME',
|
| 79 |
+
'RETURN', 'REWRITE', 'SCREEN', 'SD', 'SEARCH', 'SECTION', 'SET',
|
| 80 |
+
'SORT', 'START', 'STOP', 'STRING', 'SUBTRACT', 'SUPPRESS',
|
| 81 |
+
'TERMINATE', 'THEN', 'UNLOCK', 'UNSTRING', 'USE', 'VALIDATE',
|
| 82 |
+
'WORKING-STORAGE', 'WRITE'), prefix=r'(^|(?<=[^\w\-]))',
|
| 83 |
+
suffix=r'\s*($|(?=[^\w\-]))'),
|
| 84 |
+
Keyword.Reserved),
|
| 85 |
+
|
| 86 |
+
# Reserved words
|
| 87 |
+
(words((
|
| 88 |
+
'ACCESS', 'ADDRESS', 'ADVANCING', 'AFTER', 'ALL',
|
| 89 |
+
'ALPHABET', 'ALPHABETIC', 'ALPHABETIC-LOWER', 'ALPHABETIC-UPPER',
|
| 90 |
+
'ALPHANUMERIC', 'ALPHANUMERIC-EDITED', 'ALSO', 'ALTER', 'ALTERNATE'
|
| 91 |
+
'ANY', 'ARE', 'AREA', 'AREAS', 'ARGUMENT-NUMBER', 'ARGUMENT-VALUE', 'AS',
|
| 92 |
+
'ASCENDING', 'ASSIGN', 'AT', 'AUTO', 'AUTO-SKIP', 'AUTOMATIC',
|
| 93 |
+
'AUTOTERMINATE', 'BACKGROUND-COLOR', 'BASED', 'BEEP', 'BEFORE', 'BELL',
|
| 94 |
+
'BLANK', 'BLINK', 'BLOCK', 'BOTTOM', 'BY', 'BYTE-LENGTH', 'CHAINING',
|
| 95 |
+
'CHARACTER', 'CHARACTERS', 'CLASS', 'CODE', 'CODE-SET', 'COL',
|
| 96 |
+
'COLLATING', 'COLS', 'COLUMN', 'COLUMNS', 'COMMA', 'COMMAND-LINE',
|
| 97 |
+
'COMMIT', 'COMMON', 'CONSTANT', 'CONTAINS', 'CONTENT', 'CONTROL',
|
| 98 |
+
'CONTROLS', 'CONVERTING', 'COPY', 'CORR', 'CORRESPONDING', 'COUNT', 'CRT',
|
| 99 |
+
'CURRENCY', 'CURSOR', 'CYCLE', 'DATE', 'DAY', 'DAY-OF-WEEK', 'DE',
|
| 100 |
+
'DEBUGGING', 'DECIMAL-POINT', 'DECLARATIVES', 'DEFAULT', 'DELIMITED',
|
| 101 |
+
'DELIMITER', 'DEPENDING', 'DESCENDING', 'DETAIL', 'DISK',
|
| 102 |
+
'DOWN', 'DUPLICATES', 'DYNAMIC', 'EBCDIC',
|
| 103 |
+
'ENTRY', 'ENVIRONMENT-NAME', 'ENVIRONMENT-VALUE', 'EOL', 'EOP',
|
| 104 |
+
'EOS', 'ERASE', 'ERROR', 'ESCAPE', 'EXCEPTION',
|
| 105 |
+
'EXCLUSIVE', 'EXTEND', 'EXTERNAL', 'FILE-ID', 'FILLER', 'FINAL',
|
| 106 |
+
'FIRST', 'FIXED', 'FLOAT-LONG', 'FLOAT-SHORT',
|
| 107 |
+
'FOOTING', 'FOR', 'FOREGROUND-COLOR', 'FORMAT', 'FROM', 'FULL',
|
| 108 |
+
'FUNCTION', 'FUNCTION-ID', 'GIVING', 'GLOBAL', 'GROUP',
|
| 109 |
+
'HEADING', 'HIGHLIGHT', 'I-O', 'ID',
|
| 110 |
+
'IGNORE', 'IGNORING', 'IN', 'INDEX', 'INDEXED', 'INDICATE',
|
| 111 |
+
'INITIAL', 'INITIALIZED', 'INPUT', 'INTO', 'INTRINSIC', 'INVALID',
|
| 112 |
+
'IS', 'JUST', 'JUSTIFIED', 'KEY', 'LABEL',
|
| 113 |
+
'LAST', 'LEADING', 'LEFT', 'LENGTH', 'LIMIT', 'LIMITS', 'LINAGE',
|
| 114 |
+
'LINAGE-COUNTER', 'LINE', 'LINES', 'LOCALE', 'LOCK',
|
| 115 |
+
'LOWLIGHT', 'MANUAL', 'MEMORY', 'MINUS', 'MODE', 'MULTIPLE',
|
| 116 |
+
'NATIONAL', 'NATIONAL-EDITED', 'NATIVE', 'NEGATIVE', 'NEXT', 'NO',
|
| 117 |
+
'NULL', 'NULLS', 'NUMBER', 'NUMBERS', 'NUMERIC', 'NUMERIC-EDITED',
|
| 118 |
+
'OBJECT-COMPUTER', 'OCCURS', 'OF', 'OFF', 'OMITTED', 'ON', 'ONLY',
|
| 119 |
+
'OPTIONAL', 'ORDER', 'ORGANIZATION', 'OTHER', 'OUTPUT', 'OVERFLOW',
|
| 120 |
+
'OVERLINE', 'PACKED-DECIMAL', 'PADDING', 'PAGE', 'PARAGRAPH',
|
| 121 |
+
'PLUS', 'POINTER', 'POSITION', 'POSITIVE', 'PRESENT', 'PREVIOUS',
|
| 122 |
+
'PRINTER', 'PRINTING', 'PROCEDURE-POINTER', 'PROCEDURES',
|
| 123 |
+
'PROCEED', 'PROGRAM', 'PROGRAM-POINTER', 'PROMPT', 'QUOTE',
|
| 124 |
+
'QUOTES', 'RANDOM', 'RD', 'RECORD', 'RECORDING', 'RECORDS', 'RECURSIVE',
|
| 125 |
+
'REDEFINES', 'REEL', 'REFERENCE', 'RELATIVE', 'REMAINDER', 'REMOVAL',
|
| 126 |
+
'RENAMES', 'REPLACING', 'REPORT', 'REPORTING', 'REPORTS', 'REPOSITORY',
|
| 127 |
+
'REQUIRED', 'RESERVE', 'RETURNING', 'REVERSE-VIDEO', 'REWIND',
|
| 128 |
+
'RIGHT', 'ROLLBACK', 'ROUNDED', 'RUN', 'SAME', 'SCROLL',
|
| 129 |
+
'SECURE', 'SEGMENT-LIMIT', 'SELECT', 'SENTENCE', 'SEPARATE',
|
| 130 |
+
'SEQUENCE', 'SEQUENTIAL', 'SHARING', 'SIGN', 'SIGNED', 'SIGNED-INT',
|
| 131 |
+
'SIGNED-LONG', 'SIGNED-SHORT', 'SIZE', 'SORT-MERGE', 'SOURCE',
|
| 132 |
+
'SOURCE-COMPUTER', 'SPECIAL-NAMES', 'STANDARD',
|
| 133 |
+
'STANDARD-1', 'STANDARD-2', 'STATUS', 'SUBKEY', 'SUM',
|
| 134 |
+
'SYMBOLIC', 'SYNC', 'SYNCHRONIZED', 'TALLYING', 'TAPE',
|
| 135 |
+
'TEST', 'THROUGH', 'THRU', 'TIME', 'TIMES', 'TO', 'TOP', 'TRAILING',
|
| 136 |
+
'TRANSFORM', 'TYPE', 'UNDERLINE', 'UNIT', 'UNSIGNED',
|
| 137 |
+
'UNSIGNED-INT', 'UNSIGNED-LONG', 'UNSIGNED-SHORT', 'UNTIL', 'UP',
|
| 138 |
+
'UPDATE', 'UPON', 'USAGE', 'USING', 'VALUE', 'VALUES', 'VARYING',
|
| 139 |
+
'WAIT', 'WHEN', 'WITH', 'WORDS', 'YYYYDDD', 'YYYYMMDD'),
|
| 140 |
+
prefix=r'(^|(?<=[^\w\-]))', suffix=r'\s*($|(?=[^\w\-]))'),
|
| 141 |
+
Keyword.Pseudo),
|
| 142 |
+
|
| 143 |
+
# inactive reserved words
|
| 144 |
+
(words((
|
| 145 |
+
'ACTIVE-CLASS', 'ALIGNED', 'ANYCASE', 'ARITHMETIC', 'ATTRIBUTE',
|
| 146 |
+
'B-AND', 'B-NOT', 'B-OR', 'B-XOR', 'BIT', 'BOOLEAN', 'CD', 'CENTER',
|
| 147 |
+
'CF', 'CH', 'CHAIN', 'CLASS-ID', 'CLASSIFICATION', 'COMMUNICATION',
|
| 148 |
+
'CONDITION', 'DATA-POINTER', 'DESTINATION', 'DISABLE', 'EC', 'EGI',
|
| 149 |
+
'EMI', 'ENABLE', 'END-RECEIVE', 'ENTRY-CONVENTION', 'EO', 'ESI',
|
| 150 |
+
'EXCEPTION-OBJECT', 'EXPANDS', 'FACTORY', 'FLOAT-BINARY-16',
|
| 151 |
+
'FLOAT-BINARY-34', 'FLOAT-BINARY-7', 'FLOAT-DECIMAL-16',
|
| 152 |
+
'FLOAT-DECIMAL-34', 'FLOAT-EXTENDED', 'FORMAT', 'FUNCTION-POINTER',
|
| 153 |
+
'GET', 'GROUP-USAGE', 'IMPLEMENTS', 'INFINITY', 'INHERITS',
|
| 154 |
+
'INTERFACE', 'INTERFACE-ID', 'INVOKE', 'LC_ALL', 'LC_COLLATE',
|
| 155 |
+
'LC_CTYPE', 'LC_MESSAGES', 'LC_MONETARY', 'LC_NUMERIC', 'LC_TIME',
|
| 156 |
+
'LINE-COUNTER', 'MESSAGE', 'METHOD', 'METHOD-ID', 'NESTED', 'NONE',
|
| 157 |
+
'NORMAL', 'OBJECT', 'OBJECT-REFERENCE', 'OPTIONS', 'OVERRIDE',
|
| 158 |
+
'PAGE-COUNTER', 'PF', 'PH', 'PROPERTY', 'PROTOTYPE', 'PURGE',
|
| 159 |
+
'QUEUE', 'RAISE', 'RAISING', 'RECEIVE', 'RELATION', 'REPLACE',
|
| 160 |
+
'REPRESENTS-NOT-A-NUMBER', 'RESET', 'RESUME', 'RETRY', 'RF', 'RH',
|
| 161 |
+
'SECONDS', 'SEGMENT', 'SELF', 'SEND', 'SOURCES', 'STATEMENT',
|
| 162 |
+
'STEP', 'STRONG', 'SUB-QUEUE-1', 'SUB-QUEUE-2', 'SUB-QUEUE-3',
|
| 163 |
+
'SUPER', 'SYMBOL', 'SYSTEM-DEFAULT', 'TABLE', 'TERMINAL', 'TEXT',
|
| 164 |
+
'TYPEDEF', 'UCS-4', 'UNIVERSAL', 'USER-DEFAULT', 'UTF-16', 'UTF-8',
|
| 165 |
+
'VAL-STATUS', 'VALID', 'VALIDATE', 'VALIDATE-STATUS'),
|
| 166 |
+
prefix=r'(^|(?<=[^\w\-]))', suffix=r'\s*($|(?=[^\w\-]))'),
|
| 167 |
+
Error),
|
| 168 |
+
|
| 169 |
+
# Data Types
|
| 170 |
+
(r'(^|(?<=[^\w\-]))'
|
| 171 |
+
r'(PIC\s+.+?(?=(\s|\.\s))|PICTURE\s+.+?(?=(\s|\.\s))|'
|
| 172 |
+
r'(COMPUTATIONAL)(-[1-5X])?|(COMP)(-[1-5X])?|'
|
| 173 |
+
r'BINARY-C-LONG|'
|
| 174 |
+
r'BINARY-CHAR|BINARY-DOUBLE|BINARY-LONG|BINARY-SHORT|'
|
| 175 |
+
r'BINARY)\s*($|(?=[^\w\-]))', Keyword.Type),
|
| 176 |
+
|
| 177 |
+
# Operators
|
| 178 |
+
(r'(\*\*|\*|\+|-|/|<=|>=|<|>|==|/=|=)', Operator),
|
| 179 |
+
|
| 180 |
+
# (r'(::)', Keyword.Declaration),
|
| 181 |
+
|
| 182 |
+
(r'([(),;:&%.])', Punctuation),
|
| 183 |
+
|
| 184 |
+
# Intrinsics
|
| 185 |
+
(r'(^|(?<=[^\w\-]))(ABS|ACOS|ANNUITY|ASIN|ATAN|BYTE-LENGTH|'
|
| 186 |
+
r'CHAR|COMBINED-DATETIME|CONCATENATE|COS|CURRENT-DATE|'
|
| 187 |
+
r'DATE-OF-INTEGER|DATE-TO-YYYYMMDD|DAY-OF-INTEGER|DAY-TO-YYYYDDD|'
|
| 188 |
+
r'EXCEPTION-(?:FILE|LOCATION|STATEMENT|STATUS)|EXP10|EXP|E|'
|
| 189 |
+
r'FACTORIAL|FRACTION-PART|INTEGER-OF-(?:DATE|DAY|PART)|INTEGER|'
|
| 190 |
+
r'LENGTH|LOCALE-(?:DATE|TIME(?:-FROM-SECONDS)?)|LOG(?:10)?|'
|
| 191 |
+
r'LOWER-CASE|MAX|MEAN|MEDIAN|MIDRANGE|MIN|MOD|NUMVAL(?:-C)?|'
|
| 192 |
+
r'ORD(?:-MAX|-MIN)?|PI|PRESENT-VALUE|RANDOM|RANGE|REM|REVERSE|'
|
| 193 |
+
r'SECONDS-FROM-FORMATTED-TIME|SECONDS-PAST-MIDNIGHT|SIGN|SIN|SQRT|'
|
| 194 |
+
r'STANDARD-DEVIATION|STORED-CHAR-LENGTH|SUBSTITUTE(?:-CASE)?|'
|
| 195 |
+
r'SUM|TAN|TEST-DATE-YYYYMMDD|TEST-DAY-YYYYDDD|TRIM|'
|
| 196 |
+
r'UPPER-CASE|VARIANCE|WHEN-COMPILED|YEAR-TO-YYYY)\s*'
|
| 197 |
+
r'($|(?=[^\w\-]))', Name.Function),
|
| 198 |
+
|
| 199 |
+
# Booleans
|
| 200 |
+
(r'(^|(?<=[^\w\-]))(true|false)\s*($|(?=[^\w\-]))', Name.Builtin),
|
| 201 |
+
# Comparing Operators
|
| 202 |
+
(r'(^|(?<=[^\w\-]))(equal|equals|ne|lt|le|gt|ge|'
|
| 203 |
+
r'greater|less|than|not|and|or)\s*($|(?=[^\w\-]))', Operator.Word),
|
| 204 |
+
],
|
| 205 |
+
|
| 206 |
+
# \"[^\"\n]*\"|\'[^\'\n]*\'
|
| 207 |
+
'strings': [
|
| 208 |
+
# apparently strings can be delimited by EOL if they are continued
|
| 209 |
+
# in the next line
|
| 210 |
+
(r'"[^"\n]*("|\n)', String.Double),
|
| 211 |
+
(r"'[^'\n]*('|\n)", String.Single),
|
| 212 |
+
],
|
| 213 |
+
|
| 214 |
+
'nums': [
|
| 215 |
+
(r'\d+(\s*|\.$|$)', Number.Integer),
|
| 216 |
+
(r'[+-]?\d*\.\d+(E[-+]?\d+)?', Number.Float),
|
| 217 |
+
(r'[+-]?\d+\.\d*(E[-+]?\d+)?', Number.Float),
|
| 218 |
+
],
|
| 219 |
+
}
|
| 220 |
+
|
| 221 |
+
|
| 222 |
+
class CobolFreeformatLexer(CobolLexer):
|
| 223 |
+
"""
|
| 224 |
+
Lexer for Free format OpenCOBOL code.
|
| 225 |
+
"""
|
| 226 |
+
name = 'COBOLFree'
|
| 227 |
+
aliases = ['cobolfree']
|
| 228 |
+
filenames = ['*.cbl', '*.CBL']
|
| 229 |
+
mimetypes = []
|
| 230 |
+
url = 'https://opencobol.add1tocobol.com'
|
| 231 |
+
version_added = '1.6'
|
| 232 |
+
|
| 233 |
+
flags = re.IGNORECASE | re.MULTILINE
|
| 234 |
+
|
| 235 |
+
tokens = {
|
| 236 |
+
'comment': [
|
| 237 |
+
(r'(\*>.*\n|^\w*\*.*$)', Comment),
|
| 238 |
+
],
|
| 239 |
+
}
|
| 240 |
+
|
| 241 |
+
|
| 242 |
+
class ABAPLexer(RegexLexer):
|
| 243 |
+
"""
|
| 244 |
+
Lexer for ABAP, SAP's integrated language.
|
| 245 |
+
"""
|
| 246 |
+
name = 'ABAP'
|
| 247 |
+
aliases = ['abap']
|
| 248 |
+
filenames = ['*.abap', '*.ABAP']
|
| 249 |
+
mimetypes = ['text/x-abap']
|
| 250 |
+
url = 'https://community.sap.com/topics/abap'
|
| 251 |
+
version_added = '1.1'
|
| 252 |
+
|
| 253 |
+
flags = re.IGNORECASE | re.MULTILINE
|
| 254 |
+
|
| 255 |
+
tokens = {
|
| 256 |
+
'common': [
|
| 257 |
+
(r'\s+', Whitespace),
|
| 258 |
+
(r'^\*.*$', Comment.Single),
|
| 259 |
+
(r'\".*?\n', Comment.Single),
|
| 260 |
+
(r'##\w+', Comment.Special),
|
| 261 |
+
],
|
| 262 |
+
'variable-names': [
|
| 263 |
+
(r'<\S+>', Name.Variable),
|
| 264 |
+
(r'\w[\w~]*(?:(\[\])|->\*)?', Name.Variable),
|
| 265 |
+
],
|
| 266 |
+
'root': [
|
| 267 |
+
include('common'),
|
| 268 |
+
# function calls
|
| 269 |
+
(r'CALL\s+(?:BADI|CUSTOMER-FUNCTION|FUNCTION)',
|
| 270 |
+
Keyword),
|
| 271 |
+
(r'(CALL\s+(?:DIALOG|SCREEN|SUBSCREEN|SELECTION-SCREEN|'
|
| 272 |
+
r'TRANSACTION|TRANSFORMATION))\b',
|
| 273 |
+
Keyword),
|
| 274 |
+
(r'(FORM|PERFORM)(\s+)(\w+)',
|
| 275 |
+
bygroups(Keyword, Whitespace, Name.Function)),
|
| 276 |
+
(r'(PERFORM)(\s+)(\()(\w+)(\))',
|
| 277 |
+
bygroups(Keyword, Whitespace, Punctuation, Name.Variable, Punctuation)),
|
| 278 |
+
(r'(MODULE)(\s+)(\S+)(\s+)(INPUT|OUTPUT)',
|
| 279 |
+
bygroups(Keyword, Whitespace, Name.Function, Whitespace, Keyword)),
|
| 280 |
+
|
| 281 |
+
# method implementation
|
| 282 |
+
(r'(METHOD)(\s+)([\w~]+)',
|
| 283 |
+
bygroups(Keyword, Whitespace, Name.Function)),
|
| 284 |
+
# method calls
|
| 285 |
+
(r'(\s+)([\w\-]+)([=\-]>)([\w\-~]+)',
|
| 286 |
+
bygroups(Whitespace, Name.Variable, Operator, Name.Function)),
|
| 287 |
+
# call methodnames returning style
|
| 288 |
+
(r'(?<=(=|-)>)([\w\-~]+)(?=\()', Name.Function),
|
| 289 |
+
|
| 290 |
+
# text elements
|
| 291 |
+
(r'(TEXT)(-)(\d{3})',
|
| 292 |
+
bygroups(Keyword, Punctuation, Number.Integer)),
|
| 293 |
+
(r'(TEXT)(-)(\w{3})',
|
| 294 |
+
bygroups(Keyword, Punctuation, Name.Variable)),
|
| 295 |
+
|
| 296 |
+
# keywords with dashes in them.
|
| 297 |
+
# these need to be first, because for instance the -ID part
|
| 298 |
+
# of MESSAGE-ID wouldn't get highlighted if MESSAGE was
|
| 299 |
+
# first in the list of keywords.
|
| 300 |
+
(r'(ADD-CORRESPONDING|AUTHORITY-CHECK|'
|
| 301 |
+
r'CLASS-DATA|CLASS-EVENTS|CLASS-METHODS|CLASS-POOL|'
|
| 302 |
+
r'DELETE-ADJACENT|DIVIDE-CORRESPONDING|'
|
| 303 |
+
r'EDITOR-CALL|ENHANCEMENT-POINT|ENHANCEMENT-SECTION|EXIT-COMMAND|'
|
| 304 |
+
r'FIELD-GROUPS|FIELD-SYMBOLS|FIELD-SYMBOL|FUNCTION-POOL|'
|
| 305 |
+
r'INTERFACE-POOL|INVERTED-DATE|'
|
| 306 |
+
r'LOAD-OF-PROGRAM|LOG-POINT|'
|
| 307 |
+
r'MESSAGE-ID|MOVE-CORRESPONDING|MULTIPLY-CORRESPONDING|'
|
| 308 |
+
r'NEW-LINE|NEW-PAGE|NEW-SECTION|NO-EXTENSION|'
|
| 309 |
+
r'OUTPUT-LENGTH|PRINT-CONTROL|'
|
| 310 |
+
r'SELECT-OPTIONS|START-OF-SELECTION|SUBTRACT-CORRESPONDING|'
|
| 311 |
+
r'SYNTAX-CHECK|SYSTEM-EXCEPTIONS|'
|
| 312 |
+
r'TYPE-POOL|TYPE-POOLS|NO-DISPLAY'
|
| 313 |
+
r')\b', Keyword),
|
| 314 |
+
|
| 315 |
+
# keyword kombinations
|
| 316 |
+
(r'(?<![-\>])(CREATE\s+(PUBLIC|PRIVATE|DATA|OBJECT)|'
|
| 317 |
+
r'(PUBLIC|PRIVATE|PROTECTED)\s+SECTION|'
|
| 318 |
+
r'(TYPE|LIKE)\s+((LINE\s+OF|REF\s+TO|'
|
| 319 |
+
r'(SORTED|STANDARD|HASHED)\s+TABLE\s+OF))?|'
|
| 320 |
+
r'FROM\s+(DATABASE|MEMORY)|CALL\s+METHOD|'
|
| 321 |
+
r'(GROUP|ORDER) BY|HAVING|SEPARATED BY|'
|
| 322 |
+
r'GET\s+(BADI|BIT|CURSOR|DATASET|LOCALE|PARAMETER|'
|
| 323 |
+
r'PF-STATUS|(PROPERTY|REFERENCE)\s+OF|'
|
| 324 |
+
r'RUN\s+TIME|TIME\s+(STAMP)?)?|'
|
| 325 |
+
r'SET\s+(BIT|BLANK\s+LINES|COUNTRY|CURSOR|DATASET|EXTENDED\s+CHECK|'
|
| 326 |
+
r'HANDLER|HOLD\s+DATA|LANGUAGE|LEFT\s+SCROLL-BOUNDARY|'
|
| 327 |
+
r'LOCALE|MARGIN|PARAMETER|PF-STATUS|PROPERTY\s+OF|'
|
| 328 |
+
r'RUN\s+TIME\s+(ANALYZER|CLOCK\s+RESOLUTION)|SCREEN|'
|
| 329 |
+
r'TITLEBAR|UPADTE\s+TASK\s+LOCAL|USER-COMMAND)|'
|
| 330 |
+
r'CONVERT\s+((INVERTED-)?DATE|TIME|TIME\s+STAMP|TEXT)|'
|
| 331 |
+
r'(CLOSE|OPEN)\s+(DATASET|CURSOR)|'
|
| 332 |
+
r'(TO|FROM)\s+(DATA BUFFER|INTERNAL TABLE|MEMORY ID|'
|
| 333 |
+
r'DATABASE|SHARED\s+(MEMORY|BUFFER))|'
|
| 334 |
+
r'DESCRIBE\s+(DISTANCE\s+BETWEEN|FIELD|LIST|TABLE)|'
|
| 335 |
+
r'FREE\s(MEMORY|OBJECT)?|'
|
| 336 |
+
r'PROCESS\s+(BEFORE\s+OUTPUT|AFTER\s+INPUT|'
|
| 337 |
+
r'ON\s+(VALUE-REQUEST|HELP-REQUEST))|'
|
| 338 |
+
r'AT\s+(LINE-SELECTION|USER-COMMAND|END\s+OF|NEW)|'
|
| 339 |
+
r'AT\s+SELECTION-SCREEN(\s+(ON(\s+(BLOCK|(HELP|VALUE)-REQUEST\s+FOR|'
|
| 340 |
+
r'END\s+OF|RADIOBUTTON\s+GROUP))?|OUTPUT))?|'
|
| 341 |
+
r'SELECTION-SCREEN:?\s+((BEGIN|END)\s+OF\s+((TABBED\s+)?BLOCK|LINE|'
|
| 342 |
+
r'SCREEN)|COMMENT|FUNCTION\s+KEY|'
|
| 343 |
+
r'INCLUDE\s+BLOCKS|POSITION|PUSHBUTTON|'
|
| 344 |
+
r'SKIP|ULINE)|'
|
| 345 |
+
r'LEAVE\s+(LIST-PROCESSING|PROGRAM|SCREEN|'
|
| 346 |
+
r'TO LIST-PROCESSING|TO TRANSACTION)'
|
| 347 |
+
r'(ENDING|STARTING)\s+AT|'
|
| 348 |
+
r'FORMAT\s+(COLOR|INTENSIFIED|INVERSE|HOTSPOT|INPUT|FRAMES|RESET)|'
|
| 349 |
+
r'AS\s+(CHECKBOX|SUBSCREEN|WINDOW)|'
|
| 350 |
+
r'WITH\s+(((NON-)?UNIQUE)?\s+KEY|FRAME)|'
|
| 351 |
+
r'(BEGIN|END)\s+OF|'
|
| 352 |
+
r'DELETE(\s+ADJACENT\s+DUPLICATES\sFROM)?|'
|
| 353 |
+
r'COMPARING(\s+ALL\s+FIELDS)?|'
|
| 354 |
+
r'(INSERT|APPEND)(\s+INITIAL\s+LINE\s+(IN)?TO|\s+LINES\s+OF)?|'
|
| 355 |
+
r'IN\s+((BYTE|CHARACTER)\s+MODE|PROGRAM)|'
|
| 356 |
+
r'END-OF-(DEFINITION|PAGE|SELECTION)|'
|
| 357 |
+
r'WITH\s+FRAME(\s+TITLE)|'
|
| 358 |
+
r'(REPLACE|FIND)\s+((FIRST|ALL)\s+OCCURRENCES?\s+OF\s+)?(SUBSTRING|REGEX)?|'
|
| 359 |
+
r'MATCH\s+(LENGTH|COUNT|LINE|OFFSET)|'
|
| 360 |
+
r'(RESPECTING|IGNORING)\s+CASE|'
|
| 361 |
+
r'IN\s+UPDATE\s+TASK|'
|
| 362 |
+
r'(SOURCE|RESULT)\s+(XML)?|'
|
| 363 |
+
r'REFERENCE\s+INTO|'
|
| 364 |
+
|
| 365 |
+
# simple kombinations
|
| 366 |
+
r'AND\s+(MARK|RETURN)|CLIENT\s+SPECIFIED|CORRESPONDING\s+FIELDS\s+OF|'
|
| 367 |
+
r'IF\s+FOUND|FOR\s+EVENT|INHERITING\s+FROM|LEAVE\s+TO\s+SCREEN|'
|
| 368 |
+
r'LOOP\s+AT\s+(SCREEN)?|LOWER\s+CASE|MATCHCODE\s+OBJECT|MODIF\s+ID|'
|
| 369 |
+
r'MODIFY\s+SCREEN|NESTING\s+LEVEL|NO\s+INTERVALS|OF\s+STRUCTURE|'
|
| 370 |
+
r'RADIOBUTTON\s+GROUP|RANGE\s+OF|REF\s+TO|SUPPRESS DIALOG|'
|
| 371 |
+
r'TABLE\s+OF|UPPER\s+CASE|TRANSPORTING\s+NO\s+FIELDS|'
|
| 372 |
+
r'VALUE\s+CHECK|VISIBLE\s+LENGTH|HEADER\s+LINE|COMMON\s+PART)\b', Keyword),
|
| 373 |
+
|
| 374 |
+
# single word keywords.
|
| 375 |
+
(r'(^|(?<=(\s|\.)))(ABBREVIATED|ABSTRACT|ADD|ALIASES|ALIGN|ALPHA|'
|
| 376 |
+
r'ASSERT|AS|ASSIGN(ING)?|AT(\s+FIRST)?|'
|
| 377 |
+
r'BACK|BLOCK|BREAK-POINT|'
|
| 378 |
+
r'CASE|CAST|CATCH|CHANGING|CHECK|CLASS|CLEAR|COLLECT|COLOR|COMMIT|COND|CONV|'
|
| 379 |
+
r'CREATE|COMMUNICATION|COMPONENTS?|COMPUTE|CONCATENATE|CONDENSE|'
|
| 380 |
+
r'CONSTANTS|CONTEXTS|CONTINUE|CONTROLS|COUNTRY|CURRENCY|'
|
| 381 |
+
r'DATA|DATE|DECIMALS|DEFAULT|DEFINE|DEFINITION|DEFERRED|DEMAND|'
|
| 382 |
+
r'DETAIL|DIRECTORY|DIVIDE|DO|DUMMY|'
|
| 383 |
+
r'ELSE(IF)?|ENDAT|ENDCASE|ENDCATCH|ENDCLASS|ENDDO|ENDFORM|ENDFUNCTION|'
|
| 384 |
+
r'ENDIF|ENDINTERFACE|ENDLOOP|ENDMETHOD|ENDMODULE|ENDSELECT|ENDTRY|ENDWHILE|'
|
| 385 |
+
r'ENHANCEMENT|EVENTS|EXACT|EXCEPTIONS?|EXIT|EXPONENT|EXPORT|EXPORTING|EXTRACT|'
|
| 386 |
+
r'FETCH|FIELDS?|FOR|FORM|FORMAT|FREE|FROM|FUNCTION|'
|
| 387 |
+
r'HIDE|'
|
| 388 |
+
r'ID|IF|IMPORT|IMPLEMENTATION|IMPORTING|IN|INCLUDE|INCLUDING|'
|
| 389 |
+
r'INDEX|INFOTYPES|INITIALIZATION|INTERFACE|INTERFACES|INTO|'
|
| 390 |
+
r'LANGUAGE|LEAVE|LENGTH|LINES|LOAD|LOCAL|'
|
| 391 |
+
r'JOIN|'
|
| 392 |
+
r'KEY|'
|
| 393 |
+
r'NEW|NEXT|'
|
| 394 |
+
r'MAXIMUM|MESSAGE|METHOD[S]?|MINIMUM|MODULE|MODIFIER|MODIFY|MOVE|MULTIPLY|'
|
| 395 |
+
r'NODES|NUMBER|'
|
| 396 |
+
r'OBLIGATORY|OBJECT|OF|OFF|ON|OTHERS|OVERLAY|'
|
| 397 |
+
r'PACK|PAD|PARAMETERS|PERCENTAGE|POSITION|PROGRAM|PROVIDE|PUBLIC|PUT|PF\d\d|'
|
| 398 |
+
r'RAISE|RAISING|RANGES?|READ|RECEIVE|REDEFINITION|REFRESH|REJECT|REPORT|RESERVE|'
|
| 399 |
+
r'REF|RESUME|RETRY|RETURN|RETURNING|RIGHT|ROLLBACK|REPLACE|'
|
| 400 |
+
r'SCROLL|SEARCH|SELECT|SHIFT|SIGN|SINGLE|SIZE|SKIP|SORT|SPLIT|STATICS|STOP|'
|
| 401 |
+
r'STYLE|SUBMATCHES|SUBMIT|SUBTRACT|SUM(?!\()|SUMMARY|SUMMING|SUPPLY|SWITCH|'
|
| 402 |
+
r'TABLE|TABLES|TIMESTAMP|TIMES?|TIMEZONE|TITLE|\??TO|'
|
| 403 |
+
r'TOP-OF-PAGE|TRANSFER|TRANSLATE|TRY|TYPES|'
|
| 404 |
+
r'ULINE|UNDER|UNPACK|UPDATE|USING|'
|
| 405 |
+
r'VALUE|VALUES|VIA|VARYING|VARY|'
|
| 406 |
+
r'WAIT|WHEN|WHERE|WIDTH|WHILE|WITH|WINDOW|WRITE|XSD|ZERO)\b', Keyword),
|
| 407 |
+
|
| 408 |
+
# builtins
|
| 409 |
+
(r'(abs|acos|asin|atan|'
|
| 410 |
+
r'boolc|boolx|bit_set|'
|
| 411 |
+
r'char_off|charlen|ceil|cmax|cmin|condense|contains|'
|
| 412 |
+
r'contains_any_of|contains_any_not_of|concat_lines_of|cos|cosh|'
|
| 413 |
+
r'count|count_any_of|count_any_not_of|'
|
| 414 |
+
r'dbmaxlen|distance|'
|
| 415 |
+
r'escape|exp|'
|
| 416 |
+
r'find|find_end|find_any_of|find_any_not_of|floor|frac|from_mixed|'
|
| 417 |
+
r'insert|'
|
| 418 |
+
r'lines|log|log10|'
|
| 419 |
+
r'match|matches|'
|
| 420 |
+
r'nmax|nmin|numofchar|'
|
| 421 |
+
r'repeat|replace|rescale|reverse|round|'
|
| 422 |
+
r'segment|shift_left|shift_right|sign|sin|sinh|sqrt|strlen|'
|
| 423 |
+
r'substring|substring_after|substring_from|substring_before|substring_to|'
|
| 424 |
+
r'tan|tanh|to_upper|to_lower|to_mixed|translate|trunc|'
|
| 425 |
+
r'xstrlen)(\()\b', bygroups(Name.Builtin, Punctuation)),
|
| 426 |
+
|
| 427 |
+
(r'&[0-9]', Name),
|
| 428 |
+
(r'[0-9]+', Number.Integer),
|
| 429 |
+
|
| 430 |
+
# operators which look like variable names before
|
| 431 |
+
# parsing variable names.
|
| 432 |
+
(r'(?<=(\s|.))(AND|OR|EQ|NE|GT|LT|GE|LE|CO|CN|CA|NA|CS|NOT|NS|CP|NP|'
|
| 433 |
+
r'BYTE-CO|BYTE-CN|BYTE-CA|BYTE-NA|BYTE-CS|BYTE-NS|'
|
| 434 |
+
r'IS\s+(NOT\s+)?(INITIAL|ASSIGNED|REQUESTED|BOUND))\b', Operator.Word),
|
| 435 |
+
|
| 436 |
+
include('variable-names'),
|
| 437 |
+
|
| 438 |
+
# standard operators after variable names,
|
| 439 |
+
# because < and > are part of field symbols.
|
| 440 |
+
(r'[?*<>=\-+&]', Operator),
|
| 441 |
+
(r"'(''|[^'])*'", String.Single),
|
| 442 |
+
(r"`([^`])*`", String.Single),
|
| 443 |
+
(r"([|}])([^{}|]*?)([|{])",
|
| 444 |
+
bygroups(Punctuation, String.Single, Punctuation)),
|
| 445 |
+
(r'[/;:()\[\],.]', Punctuation),
|
| 446 |
+
(r'(!)(\w+)', bygroups(Operator, Name)),
|
| 447 |
+
],
|
| 448 |
+
}
|
| 449 |
+
|
| 450 |
+
|
| 451 |
+
class OpenEdgeLexer(RegexLexer):
|
| 452 |
+
"""
|
| 453 |
+
Lexer for OpenEdge ABL (formerly Progress) source code.
|
| 454 |
+
"""
|
| 455 |
+
name = 'OpenEdge ABL'
|
| 456 |
+
aliases = ['openedge', 'abl', 'progress']
|
| 457 |
+
filenames = ['*.p', '*.cls']
|
| 458 |
+
mimetypes = ['text/x-openedge', 'application/x-openedge']
|
| 459 |
+
url = 'https://www.progress.com/openedge/features/abl'
|
| 460 |
+
version_added = '1.5'
|
| 461 |
+
|
| 462 |
+
types = (r'(?i)(^|(?<=[^\w\-]))(CHARACTER|CHAR|CHARA|CHARAC|CHARACT|CHARACTE|'
|
| 463 |
+
r'COM-HANDLE|DATE|DATETIME|DATETIME-TZ|'
|
| 464 |
+
r'DECIMAL|DEC|DECI|DECIM|DECIMA|HANDLE|'
|
| 465 |
+
r'INT64|INTEGER|INT|INTE|INTEG|INTEGE|'
|
| 466 |
+
r'LOGICAL|LONGCHAR|MEMPTR|RAW|RECID|ROWID)\s*($|(?=[^\w\-]))')
|
| 467 |
+
|
| 468 |
+
keywords = words(OPENEDGEKEYWORDS,
|
| 469 |
+
prefix=r'(?i)(^|(?<=[^\w\-]))',
|
| 470 |
+
suffix=r'\s*($|(?=[^\w\-]))')
|
| 471 |
+
|
| 472 |
+
tokens = {
|
| 473 |
+
'root': [
|
| 474 |
+
(r'/\*', Comment.Multiline, 'comment'),
|
| 475 |
+
(r'\{', Comment.Preproc, 'preprocessor'),
|
| 476 |
+
(r'\s*&.*', Comment.Preproc),
|
| 477 |
+
(r'0[xX][0-9a-fA-F]+[LlUu]*', Number.Hex),
|
| 478 |
+
(r'(?i)(DEFINE|DEF|DEFI|DEFIN)\b', Keyword.Declaration),
|
| 479 |
+
(types, Keyword.Type),
|
| 480 |
+
(keywords, Name.Builtin),
|
| 481 |
+
(r'"(\\\\|\\[^\\]|[^"\\])*"', String.Double),
|
| 482 |
+
(r"'(\\\\|\\[^\\]|[^'\\])*'", String.Single),
|
| 483 |
+
(r'[0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?', Number.Float),
|
| 484 |
+
(r'[0-9]+', Number.Integer),
|
| 485 |
+
(r'\s+', Whitespace),
|
| 486 |
+
(r'[+*/=-]', Operator),
|
| 487 |
+
(r'[.:()]', Punctuation),
|
| 488 |
+
(r'.', Name.Variable), # Lazy catch-all
|
| 489 |
+
],
|
| 490 |
+
'comment': [
|
| 491 |
+
(r'[^*/]', Comment.Multiline),
|
| 492 |
+
(r'/\*', Comment.Multiline, '#push'),
|
| 493 |
+
(r'\*/', Comment.Multiline, '#pop'),
|
| 494 |
+
(r'[*/]', Comment.Multiline)
|
| 495 |
+
],
|
| 496 |
+
'preprocessor': [
|
| 497 |
+
(r'[^{}]', Comment.Preproc),
|
| 498 |
+
(r'\{', Comment.Preproc, '#push'),
|
| 499 |
+
(r'\}', Comment.Preproc, '#pop'),
|
| 500 |
+
],
|
| 501 |
+
}
|
| 502 |
+
|
| 503 |
+
def analyse_text(text):
|
| 504 |
+
"""Try to identify OpenEdge ABL based on a few common constructs."""
|
| 505 |
+
result = 0
|
| 506 |
+
|
| 507 |
+
if 'END.' in text:
|
| 508 |
+
result += 0.05
|
| 509 |
+
|
| 510 |
+
if 'END PROCEDURE.' in text:
|
| 511 |
+
result += 0.05
|
| 512 |
+
|
| 513 |
+
if 'ELSE DO:' in text:
|
| 514 |
+
result += 0.05
|
| 515 |
+
|
| 516 |
+
return result
|
| 517 |
+
|
| 518 |
+
|
| 519 |
+
class GoodDataCLLexer(RegexLexer):
|
| 520 |
+
"""
|
| 521 |
+
Lexer for GoodData-CL script files.
|
| 522 |
+
"""
|
| 523 |
+
|
| 524 |
+
name = 'GoodData-CL'
|
| 525 |
+
aliases = ['gooddata-cl']
|
| 526 |
+
filenames = ['*.gdc']
|
| 527 |
+
mimetypes = ['text/x-gooddata-cl']
|
| 528 |
+
url = 'https://github.com/gooddata/GoodData-CL'
|
| 529 |
+
version_added = '1.4'
|
| 530 |
+
|
| 531 |
+
flags = re.IGNORECASE
|
| 532 |
+
|
| 533 |
+
# Syntax:
|
| 534 |
+
# https://github.com/gooddata/GoodData-CL/raw/master/cli/src/main/resources/com/gooddata/processor/COMMANDS.txt
|
| 535 |
+
tokens = {
|
| 536 |
+
'root': [
|
| 537 |
+
# Comments
|
| 538 |
+
(r'#.*', Comment.Single),
|
| 539 |
+
# Function call
|
| 540 |
+
(r'[a-z]\w*', Name.Function),
|
| 541 |
+
# Argument list
|
| 542 |
+
(r'\(', Punctuation, 'args-list'),
|
| 543 |
+
# Punctuation
|
| 544 |
+
(r';', Punctuation),
|
| 545 |
+
# Space is not significant
|
| 546 |
+
(r'\s+', Text)
|
| 547 |
+
],
|
| 548 |
+
'args-list': [
|
| 549 |
+
(r'\)', Punctuation, '#pop'),
|
| 550 |
+
(r',', Punctuation),
|
| 551 |
+
(r'[a-z]\w*', Name.Variable),
|
| 552 |
+
(r'=', Operator),
|
| 553 |
+
(r'"', String, 'string-literal'),
|
| 554 |
+
(r'[0-9]+(?:\.[0-9]+)?(?:e[+-]?[0-9]{1,3})?', Number),
|
| 555 |
+
# Space is not significant
|
| 556 |
+
(r'\s', Whitespace)
|
| 557 |
+
],
|
| 558 |
+
'string-literal': [
|
| 559 |
+
(r'\\[tnrfbae"\\]', String.Escape),
|
| 560 |
+
(r'"', String, '#pop'),
|
| 561 |
+
(r'[^\\"]+', String)
|
| 562 |
+
]
|
| 563 |
+
}
|
| 564 |
+
|
| 565 |
+
|
| 566 |
+
class MaqlLexer(RegexLexer):
|
| 567 |
+
"""
|
| 568 |
+
Lexer for GoodData MAQL scripts.
|
| 569 |
+
"""
|
| 570 |
+
|
| 571 |
+
name = 'MAQL'
|
| 572 |
+
aliases = ['maql']
|
| 573 |
+
filenames = ['*.maql']
|
| 574 |
+
mimetypes = ['text/x-gooddata-maql', 'application/x-gooddata-maql']
|
| 575 |
+
url = 'https://help.gooddata.com/doc/enterprise/en/dashboards-and-insights/maql-analytical-query-language'
|
| 576 |
+
version_added = '1.4'
|
| 577 |
+
|
| 578 |
+
flags = re.IGNORECASE
|
| 579 |
+
tokens = {
|
| 580 |
+
'root': [
|
| 581 |
+
# IDENTITY
|
| 582 |
+
(r'IDENTIFIER\b', Name.Builtin),
|
| 583 |
+
# IDENTIFIER
|
| 584 |
+
(r'\{[^}]+\}', Name.Variable),
|
| 585 |
+
# NUMBER
|
| 586 |
+
(r'[0-9]+(?:\.[0-9]+)?(?:e[+-]?[0-9]{1,3})?', Number),
|
| 587 |
+
# STRING
|
| 588 |
+
(r'"', String, 'string-literal'),
|
| 589 |
+
# RELATION
|
| 590 |
+
(r'\<\>|\!\=', Operator),
|
| 591 |
+
(r'\=|\>\=|\>|\<\=|\<', Operator),
|
| 592 |
+
# :=
|
| 593 |
+
(r'\:\=', Operator),
|
| 594 |
+
# OBJECT
|
| 595 |
+
(r'\[[^]]+\]', Name.Variable.Class),
|
| 596 |
+
# keywords
|
| 597 |
+
(words((
|
| 598 |
+
'DIMENSION', 'DIMENSIONS', 'BOTTOM', 'METRIC', 'COUNT', 'OTHER',
|
| 599 |
+
'FACT', 'WITH', 'TOP', 'OR', 'ATTRIBUTE', 'CREATE', 'PARENT',
|
| 600 |
+
'FALSE', 'ROW', 'ROWS', 'FROM', 'ALL', 'AS', 'PF', 'COLUMN',
|
| 601 |
+
'COLUMNS', 'DEFINE', 'REPORT', 'LIMIT', 'TABLE', 'LIKE', 'AND',
|
| 602 |
+
'BY', 'BETWEEN', 'EXCEPT', 'SELECT', 'MATCH', 'WHERE', 'TRUE',
|
| 603 |
+
'FOR', 'IN', 'WITHOUT', 'FILTER', 'ALIAS', 'WHEN', 'NOT', 'ON',
|
| 604 |
+
'KEYS', 'KEY', 'FULLSET', 'PRIMARY', 'LABELS', 'LABEL',
|
| 605 |
+
'VISUAL', 'TITLE', 'DESCRIPTION', 'FOLDER', 'ALTER', 'DROP',
|
| 606 |
+
'ADD', 'DATASET', 'DATATYPE', 'INT', 'BIGINT', 'DOUBLE', 'DATE',
|
| 607 |
+
'VARCHAR', 'DECIMAL', 'SYNCHRONIZE', 'TYPE', 'DEFAULT', 'ORDER',
|
| 608 |
+
'ASC', 'DESC', 'HYPERLINK', 'INCLUDE', 'TEMPLATE', 'MODIFY'),
|
| 609 |
+
suffix=r'\b'),
|
| 610 |
+
Keyword),
|
| 611 |
+
# FUNCNAME
|
| 612 |
+
(r'[a-z]\w*\b', Name.Function),
|
| 613 |
+
# Comments
|
| 614 |
+
(r'#.*', Comment.Single),
|
| 615 |
+
# Punctuation
|
| 616 |
+
(r'[,;()]', Punctuation),
|
| 617 |
+
# Space is not significant
|
| 618 |
+
(r'\s+', Whitespace)
|
| 619 |
+
],
|
| 620 |
+
'string-literal': [
|
| 621 |
+
(r'\\[tnrfbae"\\]', String.Escape),
|
| 622 |
+
(r'"', String, '#pop'),
|
| 623 |
+
(r'[^\\"]+', String)
|
| 624 |
+
],
|
| 625 |
+
}
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/d.py
ADDED
|
@@ -0,0 +1,259 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pygments.lexers.d
|
| 3 |
+
~~~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
Lexers for D languages.
|
| 6 |
+
|
| 7 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 8 |
+
:license: BSD, see LICENSE for details.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
from pygments.lexer import RegexLexer, include, words, bygroups
|
| 12 |
+
from pygments.token import Comment, Keyword, Name, String, Number, \
|
| 13 |
+
Punctuation, Whitespace
|
| 14 |
+
|
| 15 |
+
__all__ = ['DLexer', 'CrocLexer', 'MiniDLexer']
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
class DLexer(RegexLexer):
|
| 19 |
+
"""
|
| 20 |
+
For D source.
|
| 21 |
+
"""
|
| 22 |
+
name = 'D'
|
| 23 |
+
url = 'https://dlang.org/'
|
| 24 |
+
filenames = ['*.d', '*.di']
|
| 25 |
+
aliases = ['d']
|
| 26 |
+
mimetypes = ['text/x-dsrc']
|
| 27 |
+
version_added = '1.2'
|
| 28 |
+
|
| 29 |
+
tokens = {
|
| 30 |
+
'root': [
|
| 31 |
+
(r'\n', Whitespace),
|
| 32 |
+
(r'\s+', Whitespace),
|
| 33 |
+
# (r'\\\n', Text), # line continuations
|
| 34 |
+
# Comments
|
| 35 |
+
(r'(//.*?)(\n)', bygroups(Comment.Single, Whitespace)),
|
| 36 |
+
(r'/(\\\n)?[*](.|\n)*?[*](\\\n)?/', Comment.Multiline),
|
| 37 |
+
(r'/\+', Comment.Multiline, 'nested_comment'),
|
| 38 |
+
# Keywords
|
| 39 |
+
(words((
|
| 40 |
+
'abstract', 'alias', 'align', 'asm', 'assert', 'auto', 'body',
|
| 41 |
+
'break', 'case', 'cast', 'catch', 'class', 'const', 'continue',
|
| 42 |
+
'debug', 'default', 'delegate', 'delete', 'deprecated', 'do', 'else',
|
| 43 |
+
'enum', 'export', 'extern', 'finally', 'final', 'foreach_reverse',
|
| 44 |
+
'foreach', 'for', 'function', 'goto', 'if', 'immutable', 'import',
|
| 45 |
+
'interface', 'invariant', 'inout', 'in', 'is', 'lazy', 'mixin',
|
| 46 |
+
'module', 'new', 'nothrow', 'out', 'override', 'package', 'pragma',
|
| 47 |
+
'private', 'protected', 'public', 'pure', 'ref', 'return', 'scope',
|
| 48 |
+
'shared', 'static', 'struct', 'super', 'switch', 'synchronized',
|
| 49 |
+
'template', 'this', 'throw', 'try', 'typeid', 'typeof',
|
| 50 |
+
'union', 'unittest', 'version', 'volatile', 'while', 'with',
|
| 51 |
+
'__gshared', '__traits', '__vector', '__parameters'),
|
| 52 |
+
suffix=r'\b'),
|
| 53 |
+
Keyword),
|
| 54 |
+
(words((
|
| 55 |
+
# Removed in 2.072
|
| 56 |
+
'typedef', ),
|
| 57 |
+
suffix=r'\b'),
|
| 58 |
+
Keyword.Removed),
|
| 59 |
+
(words((
|
| 60 |
+
'bool', 'byte', 'cdouble', 'cent', 'cfloat', 'char', 'creal',
|
| 61 |
+
'dchar', 'double', 'float', 'idouble', 'ifloat', 'int', 'ireal',
|
| 62 |
+
'long', 'real', 'short', 'ubyte', 'ucent', 'uint', 'ulong',
|
| 63 |
+
'ushort', 'void', 'wchar'), suffix=r'\b'),
|
| 64 |
+
Keyword.Type),
|
| 65 |
+
(r'(false|true|null)\b', Keyword.Constant),
|
| 66 |
+
(words((
|
| 67 |
+
'__FILE__', '__FILE_FULL_PATH__', '__MODULE__', '__LINE__', '__FUNCTION__',
|
| 68 |
+
'__PRETTY_FUNCTION__', '__DATE__', '__EOF__', '__TIME__', '__TIMESTAMP__',
|
| 69 |
+
'__VENDOR__', '__VERSION__'), suffix=r'\b'),
|
| 70 |
+
Keyword.Pseudo),
|
| 71 |
+
(r'macro\b', Keyword.Reserved),
|
| 72 |
+
(r'(string|wstring|dstring|size_t|ptrdiff_t)\b', Name.Builtin),
|
| 73 |
+
# FloatLiteral
|
| 74 |
+
# -- HexFloat
|
| 75 |
+
(r'0[xX]([0-9a-fA-F_]*\.[0-9a-fA-F_]+|[0-9a-fA-F_]+)'
|
| 76 |
+
r'[pP][+\-]?[0-9_]+[fFL]?[i]?', Number.Float),
|
| 77 |
+
# -- DecimalFloat
|
| 78 |
+
(r'[0-9_]+(\.[0-9_]+[eE][+\-]?[0-9_]+|'
|
| 79 |
+
r'\.[0-9_]*|[eE][+\-]?[0-9_]+)[fFL]?[i]?', Number.Float),
|
| 80 |
+
(r'\.(0|[1-9][0-9_]*)([eE][+\-]?[0-9_]+)?[fFL]?[i]?', Number.Float),
|
| 81 |
+
# IntegerLiteral
|
| 82 |
+
# -- Binary
|
| 83 |
+
(r'0[Bb][01_]+', Number.Bin),
|
| 84 |
+
# -- Octal
|
| 85 |
+
(r'0[0-7_]+', Number.Oct),
|
| 86 |
+
# -- Hexadecimal
|
| 87 |
+
(r'0[xX][0-9a-fA-F_]+', Number.Hex),
|
| 88 |
+
# -- Decimal
|
| 89 |
+
(r'(0|[1-9][0-9_]*)([LUu]|Lu|LU|uL|UL)?', Number.Integer),
|
| 90 |
+
# CharacterLiteral
|
| 91 |
+
(r"""'(\\['"?\\abfnrtv]|\\x[0-9a-fA-F]{2}|\\[0-7]{1,3}"""
|
| 92 |
+
r"""|\\u[0-9a-fA-F]{4}|\\U[0-9a-fA-F]{8}|\\&\w+;|.)'""",
|
| 93 |
+
String.Char),
|
| 94 |
+
# StringLiteral
|
| 95 |
+
# -- WysiwygString
|
| 96 |
+
(r'r"[^"]*"[cwd]?', String),
|
| 97 |
+
# -- AlternateWysiwygString
|
| 98 |
+
(r'`[^`]*`[cwd]?', String),
|
| 99 |
+
# -- DoubleQuotedString
|
| 100 |
+
(r'"(\\\\|\\[^\\]|[^"\\])*"[cwd]?', String),
|
| 101 |
+
# -- EscapeSequence
|
| 102 |
+
(r"\\(['\"?\\abfnrtv]|x[0-9a-fA-F]{2}|[0-7]{1,3}"
|
| 103 |
+
r"|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8}|&\w+;)",
|
| 104 |
+
String),
|
| 105 |
+
# -- HexString
|
| 106 |
+
(r'x"[0-9a-fA-F_\s]*"[cwd]?', String),
|
| 107 |
+
# -- DelimitedString
|
| 108 |
+
(r'q"\[', String, 'delimited_bracket'),
|
| 109 |
+
(r'q"\(', String, 'delimited_parenthesis'),
|
| 110 |
+
(r'q"<', String, 'delimited_angle'),
|
| 111 |
+
(r'q"\{', String, 'delimited_curly'),
|
| 112 |
+
(r'q"([a-zA-Z_]\w*)\n.*?\n\1"', String),
|
| 113 |
+
(r'q"(.).*?\1"', String),
|
| 114 |
+
# -- TokenString
|
| 115 |
+
(r'q\{', String, 'token_string'),
|
| 116 |
+
# Attributes
|
| 117 |
+
(r'@([a-zA-Z_]\w*)?', Name.Decorator),
|
| 118 |
+
# Tokens
|
| 119 |
+
(r'(~=|\^=|%=|\*=|==|!>=|!<=|!<>=|!<>|!<|!>|!=|>>>=|>>>|>>=|>>|>='
|
| 120 |
+
r'|<>=|<>|<<=|<<|<=|\+\+|\+=|--|-=|\|\||\|=|&&|&=|\.\.\.|\.\.|/=)'
|
| 121 |
+
r'|[/.&|\-+<>!()\[\]{}?,;:$=*%^~]', Punctuation),
|
| 122 |
+
# Identifier
|
| 123 |
+
(r'[a-zA-Z_]\w*', Name),
|
| 124 |
+
# Line
|
| 125 |
+
(r'(#line)(\s)(.*)(\n)', bygroups(Comment.Special, Whitespace,
|
| 126 |
+
Comment.Special, Whitespace)),
|
| 127 |
+
],
|
| 128 |
+
'nested_comment': [
|
| 129 |
+
(r'[^+/]+', Comment.Multiline),
|
| 130 |
+
(r'/\+', Comment.Multiline, '#push'),
|
| 131 |
+
(r'\+/', Comment.Multiline, '#pop'),
|
| 132 |
+
(r'[+/]', Comment.Multiline),
|
| 133 |
+
],
|
| 134 |
+
'token_string': [
|
| 135 |
+
(r'\{', Punctuation, 'token_string_nest'),
|
| 136 |
+
(r'\}', String, '#pop'),
|
| 137 |
+
include('root'),
|
| 138 |
+
],
|
| 139 |
+
'token_string_nest': [
|
| 140 |
+
(r'\{', Punctuation, '#push'),
|
| 141 |
+
(r'\}', Punctuation, '#pop'),
|
| 142 |
+
include('root'),
|
| 143 |
+
],
|
| 144 |
+
'delimited_bracket': [
|
| 145 |
+
(r'[^\[\]]+', String),
|
| 146 |
+
(r'\[', String, 'delimited_inside_bracket'),
|
| 147 |
+
(r'\]"', String, '#pop'),
|
| 148 |
+
],
|
| 149 |
+
'delimited_inside_bracket': [
|
| 150 |
+
(r'[^\[\]]+', String),
|
| 151 |
+
(r'\[', String, '#push'),
|
| 152 |
+
(r'\]', String, '#pop'),
|
| 153 |
+
],
|
| 154 |
+
'delimited_parenthesis': [
|
| 155 |
+
(r'[^()]+', String),
|
| 156 |
+
(r'\(', String, 'delimited_inside_parenthesis'),
|
| 157 |
+
(r'\)"', String, '#pop'),
|
| 158 |
+
],
|
| 159 |
+
'delimited_inside_parenthesis': [
|
| 160 |
+
(r'[^()]+', String),
|
| 161 |
+
(r'\(', String, '#push'),
|
| 162 |
+
(r'\)', String, '#pop'),
|
| 163 |
+
],
|
| 164 |
+
'delimited_angle': [
|
| 165 |
+
(r'[^<>]+', String),
|
| 166 |
+
(r'<', String, 'delimited_inside_angle'),
|
| 167 |
+
(r'>"', String, '#pop'),
|
| 168 |
+
],
|
| 169 |
+
'delimited_inside_angle': [
|
| 170 |
+
(r'[^<>]+', String),
|
| 171 |
+
(r'<', String, '#push'),
|
| 172 |
+
(r'>', String, '#pop'),
|
| 173 |
+
],
|
| 174 |
+
'delimited_curly': [
|
| 175 |
+
(r'[^{}]+', String),
|
| 176 |
+
(r'\{', String, 'delimited_inside_curly'),
|
| 177 |
+
(r'\}"', String, '#pop'),
|
| 178 |
+
],
|
| 179 |
+
'delimited_inside_curly': [
|
| 180 |
+
(r'[^{}]+', String),
|
| 181 |
+
(r'\{', String, '#push'),
|
| 182 |
+
(r'\}', String, '#pop'),
|
| 183 |
+
],
|
| 184 |
+
}
|
| 185 |
+
|
| 186 |
+
|
| 187 |
+
class CrocLexer(RegexLexer):
|
| 188 |
+
"""
|
| 189 |
+
For Croc source.
|
| 190 |
+
"""
|
| 191 |
+
name = 'Croc'
|
| 192 |
+
url = 'http://jfbillingsley.com/croc'
|
| 193 |
+
filenames = ['*.croc']
|
| 194 |
+
aliases = ['croc']
|
| 195 |
+
mimetypes = ['text/x-crocsrc']
|
| 196 |
+
version_added = ''
|
| 197 |
+
|
| 198 |
+
tokens = {
|
| 199 |
+
'root': [
|
| 200 |
+
(r'\n', Whitespace),
|
| 201 |
+
(r'\s+', Whitespace),
|
| 202 |
+
# Comments
|
| 203 |
+
(r'(//.*?)(\n)', bygroups(Comment.Single, Whitespace)),
|
| 204 |
+
(r'/\*', Comment.Multiline, 'nestedcomment'),
|
| 205 |
+
# Keywords
|
| 206 |
+
(words((
|
| 207 |
+
'as', 'assert', 'break', 'case', 'catch', 'class', 'continue',
|
| 208 |
+
'default', 'do', 'else', 'finally', 'for', 'foreach', 'function',
|
| 209 |
+
'global', 'namespace', 'if', 'import', 'in', 'is', 'local',
|
| 210 |
+
'module', 'return', 'scope', 'super', 'switch', 'this', 'throw',
|
| 211 |
+
'try', 'vararg', 'while', 'with', 'yield'), suffix=r'\b'),
|
| 212 |
+
Keyword),
|
| 213 |
+
(r'(false|true|null)\b', Keyword.Constant),
|
| 214 |
+
# FloatLiteral
|
| 215 |
+
(r'([0-9][0-9_]*)(?=[.eE])(\.[0-9][0-9_]*)?([eE][+\-]?[0-9_]+)?',
|
| 216 |
+
Number.Float),
|
| 217 |
+
# IntegerLiteral
|
| 218 |
+
# -- Binary
|
| 219 |
+
(r'0[bB][01][01_]*', Number.Bin),
|
| 220 |
+
# -- Hexadecimal
|
| 221 |
+
(r'0[xX][0-9a-fA-F][0-9a-fA-F_]*', Number.Hex),
|
| 222 |
+
# -- Decimal
|
| 223 |
+
(r'([0-9][0-9_]*)(?![.eE])', Number.Integer),
|
| 224 |
+
# CharacterLiteral
|
| 225 |
+
(r"""'(\\['"\\nrt]|\\x[0-9a-fA-F]{2}|\\[0-9]{1,3}"""
|
| 226 |
+
r"""|\\u[0-9a-fA-F]{4}|\\U[0-9a-fA-F]{8}|.)'""",
|
| 227 |
+
String.Char),
|
| 228 |
+
# StringLiteral
|
| 229 |
+
# -- WysiwygString
|
| 230 |
+
(r'@"(""|[^"])*"', String),
|
| 231 |
+
(r'@`(``|[^`])*`', String),
|
| 232 |
+
(r"@'(''|[^'])*'", String),
|
| 233 |
+
# -- DoubleQuotedString
|
| 234 |
+
(r'"(\\\\|\\[^\\]|[^"\\])*"', String),
|
| 235 |
+
# Tokens
|
| 236 |
+
(r'(~=|\^=|%=|\*=|==|!=|>>>=|>>>|>>=|>>|>=|<=>|\?=|-\>'
|
| 237 |
+
r'|<<=|<<|<=|\+\+|\+=|--|-=|\|\||\|=|&&|&=|\.\.|/=)'
|
| 238 |
+
r'|[-/.&$@|\+<>!()\[\]{}?,;:=*%^~#\\]', Punctuation),
|
| 239 |
+
# Identifier
|
| 240 |
+
(r'[a-zA-Z_]\w*', Name),
|
| 241 |
+
],
|
| 242 |
+
'nestedcomment': [
|
| 243 |
+
(r'[^*/]+', Comment.Multiline),
|
| 244 |
+
(r'/\*', Comment.Multiline, '#push'),
|
| 245 |
+
(r'\*/', Comment.Multiline, '#pop'),
|
| 246 |
+
(r'[*/]', Comment.Multiline),
|
| 247 |
+
],
|
| 248 |
+
}
|
| 249 |
+
|
| 250 |
+
|
| 251 |
+
class MiniDLexer(CrocLexer):
|
| 252 |
+
"""
|
| 253 |
+
For MiniD source. MiniD is now known as Croc.
|
| 254 |
+
"""
|
| 255 |
+
name = 'MiniD'
|
| 256 |
+
filenames = [] # don't lex .md as MiniD, reserve for Markdown
|
| 257 |
+
aliases = ['minid']
|
| 258 |
+
mimetypes = ['text/x-minidsrc']
|
| 259 |
+
version_added = ''
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/eiffel.py
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pygments.lexers.eiffel
|
| 3 |
+
~~~~~~~~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
Lexer for the Eiffel language.
|
| 6 |
+
|
| 7 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 8 |
+
:license: BSD, see LICENSE for details.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
from pygments.lexer import RegexLexer, include, words, bygroups
|
| 12 |
+
from pygments.token import Comment, Operator, Keyword, Name, String, Number, \
|
| 13 |
+
Punctuation, Whitespace
|
| 14 |
+
|
| 15 |
+
__all__ = ['EiffelLexer']
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
class EiffelLexer(RegexLexer):
|
| 19 |
+
"""
|
| 20 |
+
For Eiffel source code.
|
| 21 |
+
"""
|
| 22 |
+
name = 'Eiffel'
|
| 23 |
+
url = 'https://www.eiffel.com'
|
| 24 |
+
aliases = ['eiffel']
|
| 25 |
+
filenames = ['*.e']
|
| 26 |
+
mimetypes = ['text/x-eiffel']
|
| 27 |
+
version_added = '2.0'
|
| 28 |
+
|
| 29 |
+
tokens = {
|
| 30 |
+
'root': [
|
| 31 |
+
(r'[^\S\n]+', Whitespace),
|
| 32 |
+
(r'--.*?$', Comment.Single),
|
| 33 |
+
(r'[^\S\n]+', Whitespace),
|
| 34 |
+
# Please note that keyword and operator are case insensitive.
|
| 35 |
+
(r'(?i)(true|false|void|current|result|precursor)\b', Keyword.Constant),
|
| 36 |
+
(r'(?i)(not|xor|implies|or)\b', Operator.Word),
|
| 37 |
+
(r'(?i)(and)(?:(\s+)(then))?\b',
|
| 38 |
+
bygroups(Operator.Word, Whitespace, Operator.Word)),
|
| 39 |
+
(r'(?i)(or)(?:(\s+)(else))?\b',
|
| 40 |
+
bygroups(Operator.Word, Whitespace, Operator.Word)),
|
| 41 |
+
(words((
|
| 42 |
+
'across', 'agent', 'alias', 'all', 'as', 'assign', 'attached',
|
| 43 |
+
'attribute', 'check', 'class', 'convert', 'create', 'debug',
|
| 44 |
+
'deferred', 'detachable', 'do', 'else', 'elseif', 'end', 'ensure',
|
| 45 |
+
'expanded', 'export', 'external', 'feature', 'from', 'frozen', 'if',
|
| 46 |
+
'inherit', 'inspect', 'invariant', 'like', 'local', 'loop', 'none',
|
| 47 |
+
'note', 'obsolete', 'old', 'once', 'only', 'redefine', 'rename',
|
| 48 |
+
'require', 'rescue', 'retry', 'select', 'separate', 'then',
|
| 49 |
+
'undefine', 'until', 'variant', 'when'), prefix=r'(?i)\b', suffix=r'\b'),
|
| 50 |
+
Keyword.Reserved),
|
| 51 |
+
(r'"\[([^\]%]|%(.|\n)|\][^"])*?\]"', String),
|
| 52 |
+
(r'"([^"%\n]|%.)*?"', String),
|
| 53 |
+
include('numbers'),
|
| 54 |
+
(r"'([^'%]|%'|%%)'", String.Char),
|
| 55 |
+
(r"(//|\\\\|>=|<=|:=|/=|~|/~|[\\?!#%&@|+/\-=>*$<^\[\]])", Operator),
|
| 56 |
+
(r"([{}():;,.])", Punctuation),
|
| 57 |
+
(r'([a-z]\w*)|([A-Z][A-Z0-9_]*[a-z]\w*)', Name),
|
| 58 |
+
(r'([A-Z][A-Z0-9_]*)', Name.Class),
|
| 59 |
+
(r'\n+', Whitespace),
|
| 60 |
+
],
|
| 61 |
+
'numbers': [
|
| 62 |
+
(r'0[xX][a-fA-F0-9]+', Number.Hex),
|
| 63 |
+
(r'0[bB][01]+', Number.Bin),
|
| 64 |
+
(r'0[cC][0-7]+', Number.Oct),
|
| 65 |
+
(r'([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)', Number.Float),
|
| 66 |
+
(r'[0-9]+', Number.Integer),
|
| 67 |
+
],
|
| 68 |
+
}
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/elm.py
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pygments.lexers.elm
|
| 3 |
+
~~~~~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
Lexer for the Elm programming language.
|
| 6 |
+
|
| 7 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 8 |
+
:license: BSD, see LICENSE for details.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
from pygments.lexer import RegexLexer, words, include, bygroups
|
| 12 |
+
from pygments.token import Comment, Keyword, Name, Number, Punctuation, \
|
| 13 |
+
String, Whitespace
|
| 14 |
+
|
| 15 |
+
__all__ = ['ElmLexer']
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
class ElmLexer(RegexLexer):
|
| 19 |
+
"""
|
| 20 |
+
For Elm source code.
|
| 21 |
+
"""
|
| 22 |
+
|
| 23 |
+
name = 'Elm'
|
| 24 |
+
url = 'https://elm-lang.org/'
|
| 25 |
+
aliases = ['elm']
|
| 26 |
+
filenames = ['*.elm']
|
| 27 |
+
mimetypes = ['text/x-elm']
|
| 28 |
+
version_added = '2.1'
|
| 29 |
+
|
| 30 |
+
validName = r'[a-z_][a-zA-Z0-9_\']*'
|
| 31 |
+
|
| 32 |
+
specialName = r'^main '
|
| 33 |
+
|
| 34 |
+
builtinOps = (
|
| 35 |
+
'~', '||', '|>', '|', '`', '^', '\\', '\'', '>>', '>=', '>', '==',
|
| 36 |
+
'=', '<~', '<|', '<=', '<<', '<-', '<', '::', ':', '/=', '//', '/',
|
| 37 |
+
'..', '.', '->', '-', '++', '+', '*', '&&', '%',
|
| 38 |
+
)
|
| 39 |
+
|
| 40 |
+
reservedWords = words((
|
| 41 |
+
'alias', 'as', 'case', 'else', 'if', 'import', 'in',
|
| 42 |
+
'let', 'module', 'of', 'port', 'then', 'type', 'where',
|
| 43 |
+
), suffix=r'\b')
|
| 44 |
+
|
| 45 |
+
tokens = {
|
| 46 |
+
'root': [
|
| 47 |
+
|
| 48 |
+
# Comments
|
| 49 |
+
(r'\{-', Comment.Multiline, 'comment'),
|
| 50 |
+
(r'--.*', Comment.Single),
|
| 51 |
+
|
| 52 |
+
# Whitespace
|
| 53 |
+
(r'\s+', Whitespace),
|
| 54 |
+
|
| 55 |
+
# Strings
|
| 56 |
+
(r'"', String, 'doublequote'),
|
| 57 |
+
|
| 58 |
+
# Modules
|
| 59 |
+
(r'^(\s*)(module)(\s*)', bygroups(Whitespace, Keyword.Namespace,
|
| 60 |
+
Whitespace), 'imports'),
|
| 61 |
+
|
| 62 |
+
# Imports
|
| 63 |
+
(r'^(\s*)(import)(\s*)', bygroups(Whitespace, Keyword.Namespace,
|
| 64 |
+
Whitespace), 'imports'),
|
| 65 |
+
|
| 66 |
+
# Shaders
|
| 67 |
+
(r'\[glsl\|.*', Name.Entity, 'shader'),
|
| 68 |
+
|
| 69 |
+
# Keywords
|
| 70 |
+
(reservedWords, Keyword.Reserved),
|
| 71 |
+
|
| 72 |
+
# Types
|
| 73 |
+
(r'[A-Z][a-zA-Z0-9_]*', Keyword.Type),
|
| 74 |
+
|
| 75 |
+
# Main
|
| 76 |
+
(specialName, Keyword.Reserved),
|
| 77 |
+
|
| 78 |
+
# Prefix Operators
|
| 79 |
+
(words((builtinOps), prefix=r'\(', suffix=r'\)'), Name.Function),
|
| 80 |
+
|
| 81 |
+
# Infix Operators
|
| 82 |
+
(words(builtinOps), Name.Function),
|
| 83 |
+
|
| 84 |
+
# Numbers
|
| 85 |
+
include('numbers'),
|
| 86 |
+
|
| 87 |
+
# Variable Names
|
| 88 |
+
(validName, Name.Variable),
|
| 89 |
+
|
| 90 |
+
# Parens
|
| 91 |
+
(r'[,()\[\]{}]', Punctuation),
|
| 92 |
+
|
| 93 |
+
],
|
| 94 |
+
|
| 95 |
+
'comment': [
|
| 96 |
+
(r'-(?!\})', Comment.Multiline),
|
| 97 |
+
(r'\{-', Comment.Multiline, 'comment'),
|
| 98 |
+
(r'[^-}]', Comment.Multiline),
|
| 99 |
+
(r'-\}', Comment.Multiline, '#pop'),
|
| 100 |
+
],
|
| 101 |
+
|
| 102 |
+
'doublequote': [
|
| 103 |
+
(r'\\u[0-9a-fA-F]{4}', String.Escape),
|
| 104 |
+
(r'\\[nrfvb\\"]', String.Escape),
|
| 105 |
+
(r'[^"]', String),
|
| 106 |
+
(r'"', String, '#pop'),
|
| 107 |
+
],
|
| 108 |
+
|
| 109 |
+
'imports': [
|
| 110 |
+
(r'\w+(\.\w+)*', Name.Class, '#pop'),
|
| 111 |
+
],
|
| 112 |
+
|
| 113 |
+
'numbers': [
|
| 114 |
+
(r'_?\d+\.(?=\d+)', Number.Float),
|
| 115 |
+
(r'_?\d+', Number.Integer),
|
| 116 |
+
],
|
| 117 |
+
|
| 118 |
+
'shader': [
|
| 119 |
+
(r'\|(?!\])', Name.Entity),
|
| 120 |
+
(r'\|\]', Name.Entity, '#pop'),
|
| 121 |
+
(r'(.*)(\n)', bygroups(Name.Entity, Whitespace)),
|
| 122 |
+
],
|
| 123 |
+
}
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/email.py
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pygments.lexers.email
|
| 3 |
+
~~~~~~~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
Lexer for the raw E-mail.
|
| 6 |
+
|
| 7 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 8 |
+
:license: BSD, see LICENSE for details.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
from pygments.lexer import RegexLexer, DelegatingLexer, bygroups
|
| 12 |
+
from pygments.lexers.mime import MIMELexer
|
| 13 |
+
from pygments.token import Text, Keyword, Name, String, Number, Comment
|
| 14 |
+
from pygments.util import get_bool_opt
|
| 15 |
+
|
| 16 |
+
__all__ = ["EmailLexer"]
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
class EmailHeaderLexer(RegexLexer):
|
| 20 |
+
"""
|
| 21 |
+
Sub-lexer for raw E-mail. This lexer only process header part of e-mail.
|
| 22 |
+
|
| 23 |
+
.. versionadded:: 2.5
|
| 24 |
+
"""
|
| 25 |
+
|
| 26 |
+
def __init__(self, **options):
|
| 27 |
+
super().__init__(**options)
|
| 28 |
+
self.highlight_x = get_bool_opt(options, "highlight-X-header", False)
|
| 29 |
+
|
| 30 |
+
def get_x_header_tokens(self, match):
|
| 31 |
+
if self.highlight_x:
|
| 32 |
+
# field
|
| 33 |
+
yield match.start(1), Name.Tag, match.group(1)
|
| 34 |
+
|
| 35 |
+
# content
|
| 36 |
+
default_actions = self.get_tokens_unprocessed(
|
| 37 |
+
match.group(2), stack=("root", "header"))
|
| 38 |
+
yield from default_actions
|
| 39 |
+
else:
|
| 40 |
+
# lowlight
|
| 41 |
+
yield match.start(1), Comment.Special, match.group(1)
|
| 42 |
+
yield match.start(2), Comment.Multiline, match.group(2)
|
| 43 |
+
|
| 44 |
+
tokens = {
|
| 45 |
+
"root": [
|
| 46 |
+
(r"^(?:[A-WYZ]|X400)[\w\-]*:", Name.Tag, "header"),
|
| 47 |
+
(r"^(X-(?:\w[\w\-]*:))([\s\S]*?\n)(?![ \t])", get_x_header_tokens),
|
| 48 |
+
],
|
| 49 |
+
"header": [
|
| 50 |
+
# folding
|
| 51 |
+
(r"\n[ \t]", Text.Whitespace),
|
| 52 |
+
(r"\n(?![ \t])", Text.Whitespace, "#pop"),
|
| 53 |
+
|
| 54 |
+
# keywords
|
| 55 |
+
(r"\bE?SMTPS?\b", Keyword),
|
| 56 |
+
(r"\b(?:HE|EH)LO\b", Keyword),
|
| 57 |
+
|
| 58 |
+
# mailbox
|
| 59 |
+
(r"[\w\.\-\+=]+@[\w\.\-]+", Name.Label),
|
| 60 |
+
(r"<[\w\.\-\+=]+@[\w\.\-]+>", Name.Label),
|
| 61 |
+
|
| 62 |
+
# domain
|
| 63 |
+
(r"\b(\w[\w\.-]*\.[\w\.-]*\w[a-zA-Z]+)\b", Name.Function),
|
| 64 |
+
|
| 65 |
+
# IPv4
|
| 66 |
+
(r"(?<=\b)(?:(?:25[0-5]|2[0-4][0-9]|1?[0-9][0-9]?)\.){3}(?:25[0"
|
| 67 |
+
r"-5]|2[0-4][0-9]|1?[0-9][0-9]?)(?=\b)",
|
| 68 |
+
Number.Integer),
|
| 69 |
+
|
| 70 |
+
# IPv6
|
| 71 |
+
(r"(?<=\b)([0-9a-fA-F]{1,4}:){1,7}:(?!\b)", Number.Hex),
|
| 72 |
+
(r"(?<=\b):((:[0-9a-fA-F]{1,4}){1,7}|:)(?=\b)", Number.Hex),
|
| 73 |
+
(r"(?<=\b)([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}(?=\b)", Number.Hex),
|
| 74 |
+
(r"(?<=\b)([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}(?=\b)", Number.Hex),
|
| 75 |
+
(r"(?<=\b)[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})(?=\b)", Number.Hex),
|
| 76 |
+
(r"(?<=\b)fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}(?=\b)", Number.Hex),
|
| 77 |
+
(r"(?<=\b)([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}(?=\b)", Number.Hex),
|
| 78 |
+
(r"(?<=\b)([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}(?=\b)",
|
| 79 |
+
Number.Hex),
|
| 80 |
+
(r"(?<=\b)([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}(?=\b)",
|
| 81 |
+
Number.Hex),
|
| 82 |
+
(r"(?<=\b)([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}(?=\b)",
|
| 83 |
+
Number.Hex),
|
| 84 |
+
(r"(?<=\b)::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}"
|
| 85 |
+
r"[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}"
|
| 86 |
+
r"[0-9])(?=\b)",
|
| 87 |
+
Number.Hex),
|
| 88 |
+
(r"(?<=\b)([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9])"
|
| 89 |
+
r"{0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])(?=\b)",
|
| 90 |
+
Number.Hex),
|
| 91 |
+
|
| 92 |
+
# Date time
|
| 93 |
+
(r"(?:(Sun|Mon|Tue|Wed|Thu|Fri|Sat),\s+)?(0[1-9]|[1-2]?[0-9]|3["
|
| 94 |
+
r"01])\s+(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s+("
|
| 95 |
+
r"19[0-9]{2}|[2-9][0-9]{3})\s+(2[0-3]|[0-1][0-9]):([0-5][0-9])"
|
| 96 |
+
r"(?::(60|[0-5][0-9]))?(?:\.\d{1,5})?\s+([-\+][0-9]{2}[0-5][0-"
|
| 97 |
+
r"9]|\(?(?:UTC?|GMT|(?:E|C|M|P)(?:ST|ET|DT)|[A-IK-Z])\)?)",
|
| 98 |
+
Name.Decorator),
|
| 99 |
+
|
| 100 |
+
# RFC-2047 encoded string
|
| 101 |
+
(r"(=\?)([\w-]+)(\?)([BbQq])(\?)([\[\w!\"#$%&\'()*+,-./:;<=>@[\\"
|
| 102 |
+
r"\]^_`{|}~]+)(\?=)",
|
| 103 |
+
bygroups(String.Affix, Name.Constant, String.Affix, Keyword.Constant,
|
| 104 |
+
String.Affix, Number.Hex, String.Affix)),
|
| 105 |
+
|
| 106 |
+
# others
|
| 107 |
+
(r'[\s]+', Text.Whitespace),
|
| 108 |
+
(r'[\S]', Text),
|
| 109 |
+
],
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
class EmailLexer(DelegatingLexer):
|
| 114 |
+
"""
|
| 115 |
+
Lexer for raw E-mail.
|
| 116 |
+
|
| 117 |
+
Additional options accepted:
|
| 118 |
+
|
| 119 |
+
`highlight-X-header`
|
| 120 |
+
Highlight the fields of ``X-`` user-defined email header. (default:
|
| 121 |
+
``False``).
|
| 122 |
+
"""
|
| 123 |
+
|
| 124 |
+
name = "E-mail"
|
| 125 |
+
aliases = ["email", "eml"]
|
| 126 |
+
filenames = ["*.eml"]
|
| 127 |
+
mimetypes = ["message/rfc822"]
|
| 128 |
+
url = "https://en.wikipedia.org/wiki/Email#Message_format"
|
| 129 |
+
version_added = '2.5'
|
| 130 |
+
|
| 131 |
+
def __init__(self, **options):
|
| 132 |
+
super().__init__(EmailHeaderLexer, MIMELexer, Comment, **options)
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/erlang.py
ADDED
|
@@ -0,0 +1,526 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pygments.lexers.erlang
|
| 3 |
+
~~~~~~~~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
Lexers for Erlang.
|
| 6 |
+
|
| 7 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 8 |
+
:license: BSD, see LICENSE for details.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
import re
|
| 12 |
+
|
| 13 |
+
from pygments.lexer import Lexer, RegexLexer, bygroups, words, do_insertions, \
|
| 14 |
+
include, default, line_re
|
| 15 |
+
from pygments.token import Comment, Operator, Keyword, Name, String, \
|
| 16 |
+
Number, Punctuation, Generic, Whitespace
|
| 17 |
+
|
| 18 |
+
__all__ = ['ErlangLexer', 'ErlangShellLexer', 'ElixirConsoleLexer',
|
| 19 |
+
'ElixirLexer']
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
class ErlangLexer(RegexLexer):
|
| 23 |
+
"""
|
| 24 |
+
For the Erlang functional programming language.
|
| 25 |
+
"""
|
| 26 |
+
|
| 27 |
+
name = 'Erlang'
|
| 28 |
+
url = 'https://www.erlang.org/'
|
| 29 |
+
aliases = ['erlang']
|
| 30 |
+
filenames = ['*.erl', '*.hrl', '*.es', '*.escript']
|
| 31 |
+
mimetypes = ['text/x-erlang']
|
| 32 |
+
version_added = '0.9'
|
| 33 |
+
|
| 34 |
+
keywords = (
|
| 35 |
+
'after', 'begin', 'case', 'catch', 'cond', 'end', 'fun', 'if',
|
| 36 |
+
'let', 'of', 'query', 'receive', 'try', 'when',
|
| 37 |
+
)
|
| 38 |
+
|
| 39 |
+
builtins = ( # See erlang(3) man page
|
| 40 |
+
'abs', 'append_element', 'apply', 'atom_to_list', 'binary_to_list',
|
| 41 |
+
'bitstring_to_list', 'binary_to_term', 'bit_size', 'bump_reductions',
|
| 42 |
+
'byte_size', 'cancel_timer', 'check_process_code', 'delete_module',
|
| 43 |
+
'demonitor', 'disconnect_node', 'display', 'element', 'erase', 'exit',
|
| 44 |
+
'float', 'float_to_list', 'fun_info', 'fun_to_list',
|
| 45 |
+
'function_exported', 'garbage_collect', 'get', 'get_keys',
|
| 46 |
+
'group_leader', 'hash', 'hd', 'integer_to_list', 'iolist_to_binary',
|
| 47 |
+
'iolist_size', 'is_atom', 'is_binary', 'is_bitstring', 'is_boolean',
|
| 48 |
+
'is_builtin', 'is_float', 'is_function', 'is_integer', 'is_list',
|
| 49 |
+
'is_number', 'is_pid', 'is_port', 'is_process_alive', 'is_record',
|
| 50 |
+
'is_reference', 'is_tuple', 'length', 'link', 'list_to_atom',
|
| 51 |
+
'list_to_binary', 'list_to_bitstring', 'list_to_existing_atom',
|
| 52 |
+
'list_to_float', 'list_to_integer', 'list_to_pid', 'list_to_tuple',
|
| 53 |
+
'load_module', 'localtime_to_universaltime', 'make_tuple', 'md5',
|
| 54 |
+
'md5_final', 'md5_update', 'memory', 'module_loaded', 'monitor',
|
| 55 |
+
'monitor_node', 'node', 'nodes', 'open_port', 'phash', 'phash2',
|
| 56 |
+
'pid_to_list', 'port_close', 'port_command', 'port_connect',
|
| 57 |
+
'port_control', 'port_call', 'port_info', 'port_to_list',
|
| 58 |
+
'process_display', 'process_flag', 'process_info', 'purge_module',
|
| 59 |
+
'put', 'read_timer', 'ref_to_list', 'register', 'resume_process',
|
| 60 |
+
'round', 'send', 'send_after', 'send_nosuspend', 'set_cookie',
|
| 61 |
+
'setelement', 'size', 'spawn', 'spawn_link', 'spawn_monitor',
|
| 62 |
+
'spawn_opt', 'split_binary', 'start_timer', 'statistics',
|
| 63 |
+
'suspend_process', 'system_flag', 'system_info', 'system_monitor',
|
| 64 |
+
'system_profile', 'term_to_binary', 'tl', 'trace', 'trace_delivered',
|
| 65 |
+
'trace_info', 'trace_pattern', 'trunc', 'tuple_size', 'tuple_to_list',
|
| 66 |
+
'universaltime_to_localtime', 'unlink', 'unregister', 'whereis'
|
| 67 |
+
)
|
| 68 |
+
|
| 69 |
+
operators = r'(\+\+?|--?|\*|/|<|>|/=|=:=|=/=|=<|>=|==?|<-|!|\?)'
|
| 70 |
+
word_operators = (
|
| 71 |
+
'and', 'andalso', 'band', 'bnot', 'bor', 'bsl', 'bsr', 'bxor',
|
| 72 |
+
'div', 'not', 'or', 'orelse', 'rem', 'xor'
|
| 73 |
+
)
|
| 74 |
+
|
| 75 |
+
atom_re = r"(?:[a-z]\w*|'[^\n']*[^\\]')"
|
| 76 |
+
|
| 77 |
+
variable_re = r'(?:[A-Z_]\w*)'
|
| 78 |
+
|
| 79 |
+
esc_char_re = r'[bdefnrstv\'"\\]'
|
| 80 |
+
esc_octal_re = r'[0-7][0-7]?[0-7]?'
|
| 81 |
+
esc_hex_re = r'(?:x[0-9a-fA-F]{2}|x\{[0-9a-fA-F]+\})'
|
| 82 |
+
esc_ctrl_re = r'\^[a-zA-Z]'
|
| 83 |
+
escape_re = r'(?:\\(?:'+esc_char_re+r'|'+esc_octal_re+r'|'+esc_hex_re+r'|'+esc_ctrl_re+r'))'
|
| 84 |
+
|
| 85 |
+
macro_re = r'(?:'+variable_re+r'|'+atom_re+r')'
|
| 86 |
+
|
| 87 |
+
base_re = r'(?:[2-9]|[12][0-9]|3[0-6])'
|
| 88 |
+
|
| 89 |
+
tokens = {
|
| 90 |
+
'root': [
|
| 91 |
+
(r'\s+', Whitespace),
|
| 92 |
+
(r'(%.*)(\n)', bygroups(Comment, Whitespace)),
|
| 93 |
+
(words(keywords, suffix=r'\b'), Keyword),
|
| 94 |
+
(words(builtins, suffix=r'\b'), Name.Builtin),
|
| 95 |
+
(words(word_operators, suffix=r'\b'), Operator.Word),
|
| 96 |
+
(r'^-', Punctuation, 'directive'),
|
| 97 |
+
(operators, Operator),
|
| 98 |
+
(r'"', String, 'string'),
|
| 99 |
+
(r'<<', Name.Label),
|
| 100 |
+
(r'>>', Name.Label),
|
| 101 |
+
('(' + atom_re + ')(:)', bygroups(Name.Namespace, Punctuation)),
|
| 102 |
+
('(?:^|(?<=:))(' + atom_re + r')(\s*)(\()',
|
| 103 |
+
bygroups(Name.Function, Whitespace, Punctuation)),
|
| 104 |
+
(r'[+-]?' + base_re + r'#[0-9a-zA-Z]+', Number.Integer),
|
| 105 |
+
(r'[+-]?\d+', Number.Integer),
|
| 106 |
+
(r'[+-]?\d+.\d+', Number.Float),
|
| 107 |
+
(r'[]\[:_@\".{}()|;,]', Punctuation),
|
| 108 |
+
(variable_re, Name.Variable),
|
| 109 |
+
(atom_re, Name),
|
| 110 |
+
(r'\?'+macro_re, Name.Constant),
|
| 111 |
+
(r'\$(?:'+escape_re+r'|\\[ %]|[^\\])', String.Char),
|
| 112 |
+
(r'#'+atom_re+r'(:?\.'+atom_re+r')?', Name.Label),
|
| 113 |
+
|
| 114 |
+
# Erlang script shebang
|
| 115 |
+
(r'\A#!.+\n', Comment.Hashbang),
|
| 116 |
+
|
| 117 |
+
# EEP 43: Maps
|
| 118 |
+
# http://www.erlang.org/eeps/eep-0043.html
|
| 119 |
+
(r'#\{', Punctuation, 'map_key'),
|
| 120 |
+
],
|
| 121 |
+
'string': [
|
| 122 |
+
(escape_re, String.Escape),
|
| 123 |
+
(r'"', String, '#pop'),
|
| 124 |
+
(r'~[0-9.*]*[~#+BPWXb-ginpswx]', String.Interpol),
|
| 125 |
+
(r'[^"\\~]+', String),
|
| 126 |
+
(r'~', String),
|
| 127 |
+
],
|
| 128 |
+
'directive': [
|
| 129 |
+
(r'(define)(\s*)(\()('+macro_re+r')',
|
| 130 |
+
bygroups(Name.Entity, Whitespace, Punctuation, Name.Constant), '#pop'),
|
| 131 |
+
(r'(record)(\s*)(\()('+macro_re+r')',
|
| 132 |
+
bygroups(Name.Entity, Whitespace, Punctuation, Name.Label), '#pop'),
|
| 133 |
+
(atom_re, Name.Entity, '#pop'),
|
| 134 |
+
],
|
| 135 |
+
'map_key': [
|
| 136 |
+
include('root'),
|
| 137 |
+
(r'=>', Punctuation, 'map_val'),
|
| 138 |
+
(r':=', Punctuation, 'map_val'),
|
| 139 |
+
(r'\}', Punctuation, '#pop'),
|
| 140 |
+
],
|
| 141 |
+
'map_val': [
|
| 142 |
+
include('root'),
|
| 143 |
+
(r',', Punctuation, '#pop'),
|
| 144 |
+
(r'(?=\})', Punctuation, '#pop'),
|
| 145 |
+
],
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
class ErlangShellLexer(Lexer):
|
| 150 |
+
"""
|
| 151 |
+
Shell sessions in erl (for Erlang code).
|
| 152 |
+
"""
|
| 153 |
+
name = 'Erlang erl session'
|
| 154 |
+
aliases = ['erl']
|
| 155 |
+
filenames = ['*.erl-sh']
|
| 156 |
+
mimetypes = ['text/x-erl-shellsession']
|
| 157 |
+
url = 'https://www.erlang.org/'
|
| 158 |
+
version_added = '1.1'
|
| 159 |
+
|
| 160 |
+
_prompt_re = re.compile(r'(?:\([\w@_.]+\))?\d+>(?=\s|\Z)')
|
| 161 |
+
|
| 162 |
+
def get_tokens_unprocessed(self, text):
|
| 163 |
+
erlexer = ErlangLexer(**self.options)
|
| 164 |
+
|
| 165 |
+
curcode = ''
|
| 166 |
+
insertions = []
|
| 167 |
+
for match in line_re.finditer(text):
|
| 168 |
+
line = match.group()
|
| 169 |
+
m = self._prompt_re.match(line)
|
| 170 |
+
if m is not None:
|
| 171 |
+
end = m.end()
|
| 172 |
+
insertions.append((len(curcode),
|
| 173 |
+
[(0, Generic.Prompt, line[:end])]))
|
| 174 |
+
curcode += line[end:]
|
| 175 |
+
else:
|
| 176 |
+
if curcode:
|
| 177 |
+
yield from do_insertions(insertions,
|
| 178 |
+
erlexer.get_tokens_unprocessed(curcode))
|
| 179 |
+
curcode = ''
|
| 180 |
+
insertions = []
|
| 181 |
+
if line.startswith('*'):
|
| 182 |
+
yield match.start(), Generic.Traceback, line
|
| 183 |
+
else:
|
| 184 |
+
yield match.start(), Generic.Output, line
|
| 185 |
+
if curcode:
|
| 186 |
+
yield from do_insertions(insertions,
|
| 187 |
+
erlexer.get_tokens_unprocessed(curcode))
|
| 188 |
+
|
| 189 |
+
|
| 190 |
+
def gen_elixir_string_rules(name, symbol, token):
|
| 191 |
+
states = {}
|
| 192 |
+
states['string_' + name] = [
|
| 193 |
+
(rf'[^#{symbol}\\]+', token),
|
| 194 |
+
include('escapes'),
|
| 195 |
+
(r'\\.', token),
|
| 196 |
+
(rf'({symbol})', bygroups(token), "#pop"),
|
| 197 |
+
include('interpol')
|
| 198 |
+
]
|
| 199 |
+
return states
|
| 200 |
+
|
| 201 |
+
|
| 202 |
+
def gen_elixir_sigstr_rules(term, term_class, token, interpol=True):
|
| 203 |
+
if interpol:
|
| 204 |
+
return [
|
| 205 |
+
(rf'[^#{term_class}\\]+', token),
|
| 206 |
+
include('escapes'),
|
| 207 |
+
(r'\\.', token),
|
| 208 |
+
(rf'{term}[a-zA-Z]*', token, '#pop'),
|
| 209 |
+
include('interpol')
|
| 210 |
+
]
|
| 211 |
+
else:
|
| 212 |
+
return [
|
| 213 |
+
(rf'[^{term_class}\\]+', token),
|
| 214 |
+
(r'\\.', token),
|
| 215 |
+
(rf'{term}[a-zA-Z]*', token, '#pop'),
|
| 216 |
+
]
|
| 217 |
+
|
| 218 |
+
|
| 219 |
+
class ElixirLexer(RegexLexer):
|
| 220 |
+
"""
|
| 221 |
+
For the Elixir language.
|
| 222 |
+
"""
|
| 223 |
+
|
| 224 |
+
name = 'Elixir'
|
| 225 |
+
url = 'https://elixir-lang.org'
|
| 226 |
+
aliases = ['elixir', 'ex', 'exs']
|
| 227 |
+
filenames = ['*.ex', '*.eex', '*.exs', '*.leex']
|
| 228 |
+
mimetypes = ['text/x-elixir']
|
| 229 |
+
version_added = '1.5'
|
| 230 |
+
|
| 231 |
+
KEYWORD = ('fn', 'do', 'end', 'after', 'else', 'rescue', 'catch')
|
| 232 |
+
KEYWORD_OPERATOR = ('not', 'and', 'or', 'when', 'in')
|
| 233 |
+
BUILTIN = (
|
| 234 |
+
'case', 'cond', 'for', 'if', 'unless', 'try', 'receive', 'raise',
|
| 235 |
+
'quote', 'unquote', 'unquote_splicing', 'throw', 'super',
|
| 236 |
+
)
|
| 237 |
+
BUILTIN_DECLARATION = (
|
| 238 |
+
'def', 'defp', 'defmodule', 'defprotocol', 'defmacro', 'defmacrop',
|
| 239 |
+
'defdelegate', 'defexception', 'defstruct', 'defimpl', 'defcallback',
|
| 240 |
+
)
|
| 241 |
+
|
| 242 |
+
BUILTIN_NAMESPACE = ('import', 'require', 'use', 'alias')
|
| 243 |
+
CONSTANT = ('nil', 'true', 'false')
|
| 244 |
+
|
| 245 |
+
PSEUDO_VAR = ('_', '__MODULE__', '__DIR__', '__ENV__', '__CALLER__')
|
| 246 |
+
|
| 247 |
+
OPERATORS3 = (
|
| 248 |
+
'<<<', '>>>', '|||', '&&&', '^^^', '~~~', '===', '!==',
|
| 249 |
+
'~>>', '<~>', '|~>', '<|>',
|
| 250 |
+
)
|
| 251 |
+
OPERATORS2 = (
|
| 252 |
+
'==', '!=', '<=', '>=', '&&', '||', '<>', '++', '--', '|>', '=~',
|
| 253 |
+
'->', '<-', '|', '.', '=', '~>', '<~',
|
| 254 |
+
)
|
| 255 |
+
OPERATORS1 = ('<', '>', '+', '-', '*', '/', '!', '^', '&')
|
| 256 |
+
|
| 257 |
+
PUNCTUATION = (
|
| 258 |
+
'\\\\', '<<', '>>', '=>', '(', ')', ':', ';', ',', '[', ']',
|
| 259 |
+
)
|
| 260 |
+
|
| 261 |
+
def get_tokens_unprocessed(self, text):
|
| 262 |
+
for index, token, value in RegexLexer.get_tokens_unprocessed(self, text):
|
| 263 |
+
if token is Name:
|
| 264 |
+
if value in self.KEYWORD:
|
| 265 |
+
yield index, Keyword, value
|
| 266 |
+
elif value in self.KEYWORD_OPERATOR:
|
| 267 |
+
yield index, Operator.Word, value
|
| 268 |
+
elif value in self.BUILTIN:
|
| 269 |
+
yield index, Keyword, value
|
| 270 |
+
elif value in self.BUILTIN_DECLARATION:
|
| 271 |
+
yield index, Keyword.Declaration, value
|
| 272 |
+
elif value in self.BUILTIN_NAMESPACE:
|
| 273 |
+
yield index, Keyword.Namespace, value
|
| 274 |
+
elif value in self.CONSTANT:
|
| 275 |
+
yield index, Name.Constant, value
|
| 276 |
+
elif value in self.PSEUDO_VAR:
|
| 277 |
+
yield index, Name.Builtin.Pseudo, value
|
| 278 |
+
else:
|
| 279 |
+
yield index, token, value
|
| 280 |
+
else:
|
| 281 |
+
yield index, token, value
|
| 282 |
+
|
| 283 |
+
def gen_elixir_sigil_rules():
|
| 284 |
+
# all valid sigil terminators (excluding heredocs)
|
| 285 |
+
terminators = [
|
| 286 |
+
(r'\{', r'\}', '}', 'cb'),
|
| 287 |
+
(r'\[', r'\]', r'\]', 'sb'),
|
| 288 |
+
(r'\(', r'\)', ')', 'pa'),
|
| 289 |
+
('<', '>', '>', 'ab'),
|
| 290 |
+
('/', '/', '/', 'slas'),
|
| 291 |
+
(r'\|', r'\|', '|', 'pipe'),
|
| 292 |
+
('"', '"', '"', 'quot'),
|
| 293 |
+
("'", "'", "'", 'apos'),
|
| 294 |
+
]
|
| 295 |
+
|
| 296 |
+
# heredocs have slightly different rules
|
| 297 |
+
triquotes = [(r'"""', 'triquot'), (r"'''", 'triapos')]
|
| 298 |
+
|
| 299 |
+
token = String.Other
|
| 300 |
+
states = {'sigils': []}
|
| 301 |
+
|
| 302 |
+
for term, name in triquotes:
|
| 303 |
+
states['sigils'] += [
|
| 304 |
+
(rf'(~[a-z])({term})', bygroups(token, String.Heredoc),
|
| 305 |
+
(name + '-end', name + '-intp')),
|
| 306 |
+
(rf'(~[A-Z])({term})', bygroups(token, String.Heredoc),
|
| 307 |
+
(name + '-end', name + '-no-intp')),
|
| 308 |
+
]
|
| 309 |
+
|
| 310 |
+
states[name + '-end'] = [
|
| 311 |
+
(r'[a-zA-Z]+', token, '#pop'),
|
| 312 |
+
default('#pop'),
|
| 313 |
+
]
|
| 314 |
+
states[name + '-intp'] = [
|
| 315 |
+
(r'^(\s*)(' + term + ')', bygroups(Whitespace, String.Heredoc), '#pop'),
|
| 316 |
+
include('heredoc_interpol'),
|
| 317 |
+
]
|
| 318 |
+
states[name + '-no-intp'] = [
|
| 319 |
+
(r'^(\s*)(' + term +')', bygroups(Whitespace, String.Heredoc), '#pop'),
|
| 320 |
+
include('heredoc_no_interpol'),
|
| 321 |
+
]
|
| 322 |
+
|
| 323 |
+
for lterm, rterm, rterm_class, name in terminators:
|
| 324 |
+
states['sigils'] += [
|
| 325 |
+
(r'~[a-z]' + lterm, token, name + '-intp'),
|
| 326 |
+
(r'~[A-Z]' + lterm, token, name + '-no-intp'),
|
| 327 |
+
]
|
| 328 |
+
states[name + '-intp'] = \
|
| 329 |
+
gen_elixir_sigstr_rules(rterm, rterm_class, token)
|
| 330 |
+
states[name + '-no-intp'] = \
|
| 331 |
+
gen_elixir_sigstr_rules(rterm, rterm_class, token, interpol=False)
|
| 332 |
+
|
| 333 |
+
return states
|
| 334 |
+
|
| 335 |
+
op3_re = "|".join(re.escape(s) for s in OPERATORS3)
|
| 336 |
+
op2_re = "|".join(re.escape(s) for s in OPERATORS2)
|
| 337 |
+
op1_re = "|".join(re.escape(s) for s in OPERATORS1)
|
| 338 |
+
ops_re = rf'(?:{op3_re}|{op2_re}|{op1_re})'
|
| 339 |
+
punctuation_re = "|".join(re.escape(s) for s in PUNCTUATION)
|
| 340 |
+
alnum = r'\w'
|
| 341 |
+
name_re = rf'(?:\.\.\.|[a-z_]{alnum}*[!?]?)'
|
| 342 |
+
modname_re = rf'[A-Z]{alnum}*(?:\.[A-Z]{alnum}*)*'
|
| 343 |
+
complex_name_re = rf'(?:{name_re}|{modname_re}|{ops_re})'
|
| 344 |
+
special_atom_re = r'(?:\.\.\.|<<>>|%\{\}|%|\{\})'
|
| 345 |
+
|
| 346 |
+
long_hex_char_re = r'(\\x\{)([\da-fA-F]+)(\})'
|
| 347 |
+
hex_char_re = r'(\\x[\da-fA-F]{1,2})'
|
| 348 |
+
escape_char_re = r'(\\[abdefnrstv])'
|
| 349 |
+
|
| 350 |
+
tokens = {
|
| 351 |
+
'root': [
|
| 352 |
+
(r'\s+', Whitespace),
|
| 353 |
+
(r'#.*$', Comment.Single),
|
| 354 |
+
|
| 355 |
+
# Various kinds of characters
|
| 356 |
+
(r'(\?)' + long_hex_char_re,
|
| 357 |
+
bygroups(String.Char,
|
| 358 |
+
String.Escape, Number.Hex, String.Escape)),
|
| 359 |
+
(r'(\?)' + hex_char_re,
|
| 360 |
+
bygroups(String.Char, String.Escape)),
|
| 361 |
+
(r'(\?)' + escape_char_re,
|
| 362 |
+
bygroups(String.Char, String.Escape)),
|
| 363 |
+
(r'\?\\?.', String.Char),
|
| 364 |
+
|
| 365 |
+
# '::' has to go before atoms
|
| 366 |
+
(r':::', String.Symbol),
|
| 367 |
+
(r'::', Operator),
|
| 368 |
+
|
| 369 |
+
# atoms
|
| 370 |
+
(r':' + special_atom_re, String.Symbol),
|
| 371 |
+
(r':' + complex_name_re, String.Symbol),
|
| 372 |
+
(r':"', String.Symbol, 'string_double_atom'),
|
| 373 |
+
(r":'", String.Symbol, 'string_single_atom'),
|
| 374 |
+
|
| 375 |
+
# [keywords: ...]
|
| 376 |
+
(rf'({special_atom_re}|{complex_name_re})(:)(?=\s|\n)',
|
| 377 |
+
bygroups(String.Symbol, Punctuation)),
|
| 378 |
+
|
| 379 |
+
# @attributes
|
| 380 |
+
(r'@' + name_re, Name.Attribute),
|
| 381 |
+
|
| 382 |
+
# identifiers
|
| 383 |
+
(name_re, Name),
|
| 384 |
+
(rf'(%?)({modname_re})', bygroups(Punctuation, Name.Class)),
|
| 385 |
+
|
| 386 |
+
# operators and punctuation
|
| 387 |
+
(op3_re, Operator),
|
| 388 |
+
(op2_re, Operator),
|
| 389 |
+
(punctuation_re, Punctuation),
|
| 390 |
+
(r'&\d', Name.Entity), # anon func arguments
|
| 391 |
+
(op1_re, Operator),
|
| 392 |
+
|
| 393 |
+
# numbers
|
| 394 |
+
(r'0b[01]+', Number.Bin),
|
| 395 |
+
(r'0o[0-7]+', Number.Oct),
|
| 396 |
+
(r'0x[\da-fA-F]+', Number.Hex),
|
| 397 |
+
(r'\d(_?\d)*\.\d(_?\d)*([eE][-+]?\d(_?\d)*)?', Number.Float),
|
| 398 |
+
(r'\d(_?\d)*', Number.Integer),
|
| 399 |
+
|
| 400 |
+
# strings and heredocs
|
| 401 |
+
(r'(""")(\s*)', bygroups(String.Heredoc, Whitespace),
|
| 402 |
+
'heredoc_double'),
|
| 403 |
+
(r"(''')(\s*)$", bygroups(String.Heredoc, Whitespace),
|
| 404 |
+
'heredoc_single'),
|
| 405 |
+
(r'"', String.Double, 'string_double'),
|
| 406 |
+
(r"'", String.Single, 'string_single'),
|
| 407 |
+
|
| 408 |
+
include('sigils'),
|
| 409 |
+
|
| 410 |
+
(r'%\{', Punctuation, 'map_key'),
|
| 411 |
+
(r'\{', Punctuation, 'tuple'),
|
| 412 |
+
],
|
| 413 |
+
'heredoc_double': [
|
| 414 |
+
(r'^(\s*)(""")', bygroups(Whitespace, String.Heredoc), '#pop'),
|
| 415 |
+
include('heredoc_interpol'),
|
| 416 |
+
],
|
| 417 |
+
'heredoc_single': [
|
| 418 |
+
(r"^\s*'''", String.Heredoc, '#pop'),
|
| 419 |
+
include('heredoc_interpol'),
|
| 420 |
+
],
|
| 421 |
+
'heredoc_interpol': [
|
| 422 |
+
(r'[^#\\\n]+', String.Heredoc),
|
| 423 |
+
include('escapes'),
|
| 424 |
+
(r'\\.', String.Heredoc),
|
| 425 |
+
(r'\n+', String.Heredoc),
|
| 426 |
+
include('interpol'),
|
| 427 |
+
],
|
| 428 |
+
'heredoc_no_interpol': [
|
| 429 |
+
(r'[^\\\n]+', String.Heredoc),
|
| 430 |
+
(r'\\.', String.Heredoc),
|
| 431 |
+
(r'\n+', Whitespace),
|
| 432 |
+
],
|
| 433 |
+
'escapes': [
|
| 434 |
+
(long_hex_char_re,
|
| 435 |
+
bygroups(String.Escape, Number.Hex, String.Escape)),
|
| 436 |
+
(hex_char_re, String.Escape),
|
| 437 |
+
(escape_char_re, String.Escape),
|
| 438 |
+
],
|
| 439 |
+
'interpol': [
|
| 440 |
+
(r'#\{', String.Interpol, 'interpol_string'),
|
| 441 |
+
],
|
| 442 |
+
'interpol_string': [
|
| 443 |
+
(r'\}', String.Interpol, "#pop"),
|
| 444 |
+
include('root')
|
| 445 |
+
],
|
| 446 |
+
'map_key': [
|
| 447 |
+
include('root'),
|
| 448 |
+
(r':', Punctuation, 'map_val'),
|
| 449 |
+
(r'=>', Punctuation, 'map_val'),
|
| 450 |
+
(r'\}', Punctuation, '#pop'),
|
| 451 |
+
],
|
| 452 |
+
'map_val': [
|
| 453 |
+
include('root'),
|
| 454 |
+
(r',', Punctuation, '#pop'),
|
| 455 |
+
(r'(?=\})', Punctuation, '#pop'),
|
| 456 |
+
],
|
| 457 |
+
'tuple': [
|
| 458 |
+
include('root'),
|
| 459 |
+
(r'\}', Punctuation, '#pop'),
|
| 460 |
+
],
|
| 461 |
+
}
|
| 462 |
+
tokens.update(gen_elixir_string_rules('double', '"', String.Double))
|
| 463 |
+
tokens.update(gen_elixir_string_rules('single', "'", String.Single))
|
| 464 |
+
tokens.update(gen_elixir_string_rules('double_atom', '"', String.Symbol))
|
| 465 |
+
tokens.update(gen_elixir_string_rules('single_atom', "'", String.Symbol))
|
| 466 |
+
tokens.update(gen_elixir_sigil_rules())
|
| 467 |
+
|
| 468 |
+
|
| 469 |
+
class ElixirConsoleLexer(Lexer):
|
| 470 |
+
"""
|
| 471 |
+
For Elixir interactive console (iex) output like:
|
| 472 |
+
|
| 473 |
+
.. sourcecode:: iex
|
| 474 |
+
|
| 475 |
+
iex> [head | tail] = [1,2,3]
|
| 476 |
+
[1,2,3]
|
| 477 |
+
iex> head
|
| 478 |
+
1
|
| 479 |
+
iex> tail
|
| 480 |
+
[2,3]
|
| 481 |
+
iex> [head | tail]
|
| 482 |
+
[1,2,3]
|
| 483 |
+
iex> length [head | tail]
|
| 484 |
+
3
|
| 485 |
+
"""
|
| 486 |
+
|
| 487 |
+
name = 'Elixir iex session'
|
| 488 |
+
aliases = ['iex']
|
| 489 |
+
mimetypes = ['text/x-elixir-shellsession']
|
| 490 |
+
url = 'https://elixir-lang.org'
|
| 491 |
+
version_added = '1.5'
|
| 492 |
+
|
| 493 |
+
_prompt_re = re.compile(r'(iex|\.{3})((?:\([\w@_.]+\))?\d+|\(\d+\))?> ')
|
| 494 |
+
|
| 495 |
+
def get_tokens_unprocessed(self, text):
|
| 496 |
+
exlexer = ElixirLexer(**self.options)
|
| 497 |
+
|
| 498 |
+
curcode = ''
|
| 499 |
+
in_error = False
|
| 500 |
+
insertions = []
|
| 501 |
+
for match in line_re.finditer(text):
|
| 502 |
+
line = match.group()
|
| 503 |
+
if line.startswith('** '):
|
| 504 |
+
in_error = True
|
| 505 |
+
insertions.append((len(curcode),
|
| 506 |
+
[(0, Generic.Error, line[:-1])]))
|
| 507 |
+
curcode += line[-1:]
|
| 508 |
+
else:
|
| 509 |
+
m = self._prompt_re.match(line)
|
| 510 |
+
if m is not None:
|
| 511 |
+
in_error = False
|
| 512 |
+
end = m.end()
|
| 513 |
+
insertions.append((len(curcode),
|
| 514 |
+
[(0, Generic.Prompt, line[:end])]))
|
| 515 |
+
curcode += line[end:]
|
| 516 |
+
else:
|
| 517 |
+
if curcode:
|
| 518 |
+
yield from do_insertions(
|
| 519 |
+
insertions, exlexer.get_tokens_unprocessed(curcode))
|
| 520 |
+
curcode = ''
|
| 521 |
+
insertions = []
|
| 522 |
+
token = Generic.Error if in_error else Generic.Output
|
| 523 |
+
yield match.start(), token, line
|
| 524 |
+
if curcode:
|
| 525 |
+
yield from do_insertions(
|
| 526 |
+
insertions, exlexer.get_tokens_unprocessed(curcode))
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/fantom.py
ADDED
|
@@ -0,0 +1,251 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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team, see AUTHORS.
|
| 8 |
+
:license: BSD, see LICENSE for details.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
from string import Template
|
| 12 |
+
|
| 13 |
+
from pygments.lexer import RegexLexer, include, bygroups, using, \
|
| 14 |
+
this, default, words
|
| 15 |
+
from pygments.token import Text, Comment, Operator, Keyword, Name, String, \
|
| 16 |
+
Number, Punctuation, Literal, Whitespace
|
| 17 |
+
|
| 18 |
+
__all__ = ['FantomLexer']
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class FantomLexer(RegexLexer):
|
| 22 |
+
"""
|
| 23 |
+
For Fantom source code.
|
| 24 |
+
"""
|
| 25 |
+
name = 'Fantom'
|
| 26 |
+
aliases = ['fan']
|
| 27 |
+
filenames = ['*.fan']
|
| 28 |
+
mimetypes = ['application/x-fantom']
|
| 29 |
+
url = 'https://www.fantom.org'
|
| 30 |
+
version_added = '1.5'
|
| 31 |
+
|
| 32 |
+
# often used regexes
|
| 33 |
+
def s(str):
|
| 34 |
+
return Template(str).substitute(
|
| 35 |
+
dict(
|
| 36 |
+
pod=r'[\"\w\.]+',
|
| 37 |
+
eos=r'\n|;',
|
| 38 |
+
id=r'[a-zA-Z_]\w*',
|
| 39 |
+
# all chars which can be part of type definition. Starts with
|
| 40 |
+
# either letter, or [ (maps), or | (funcs)
|
| 41 |
+
type=r'(?:\[|[a-zA-Z_]|\|)[:\w\[\]|\->?]*?',
|
| 42 |
+
)
|
| 43 |
+
)
|
| 44 |
+
|
| 45 |
+
tokens = {
|
| 46 |
+
'comments': [
|
| 47 |
+
(r'(?s)/\*.*?\*/', Comment.Multiline), # Multiline
|
| 48 |
+
(r'//.*?$', Comment.Single), # Single line
|
| 49 |
+
# TODO: highlight references in fandocs
|
| 50 |
+
(r'\*\*.*?$', Comment.Special), # Fandoc
|
| 51 |
+
(r'#.*$', Comment.Single) # Shell-style
|
| 52 |
+
],
|
| 53 |
+
'literals': [
|
| 54 |
+
(r'\b-?[\d_]+(ns|ms|sec|min|hr|day)', Number), # Duration
|
| 55 |
+
(r'\b-?[\d_]*\.[\d_]+(ns|ms|sec|min|hr|day)', Number), # Duration with dot
|
| 56 |
+
(r'\b-?(\d+)?\.\d+(f|F|d|D)?', Number.Float), # Float/Decimal
|
| 57 |
+
(r'\b-?0x[0-9a-fA-F_]+', Number.Hex), # Hex
|
| 58 |
+
(r'\b-?[\d_]+', Number.Integer), # Int
|
| 59 |
+
(r"'\\.'|'[^\\]'|'\\u[0-9a-f]{4}'", String.Char), # Char
|
| 60 |
+
(r'"', Punctuation, 'insideStr'), # Opening quote
|
| 61 |
+
(r'`', Punctuation, 'insideUri'), # Opening accent
|
| 62 |
+
(r'\b(true|false|null)\b', Keyword.Constant), # Bool & null
|
| 63 |
+
(r'(?:(\w+)(::))?(\w+)(<\|)(.*?)(\|>)', # DSL
|
| 64 |
+
bygroups(Name.Namespace, Punctuation, Name.Class,
|
| 65 |
+
Punctuation, String, Punctuation)),
|
| 66 |
+
(r'(?:(\w+)(::))?(\w+)?(#)(\w+)?', # Type/slot literal
|
| 67 |
+
bygroups(Name.Namespace, Punctuation, Name.Class,
|
| 68 |
+
Punctuation, Name.Function)),
|
| 69 |
+
(r'\[,\]', Literal), # Empty list
|
| 70 |
+
(s(r'($type)(\[,\])'), # Typed empty list
|
| 71 |
+
bygroups(using(this, state='inType'), Literal)),
|
| 72 |
+
(r'\[:\]', Literal), # Empty Map
|
| 73 |
+
(s(r'($type)(\[:\])'),
|
| 74 |
+
bygroups(using(this, state='inType'), Literal)),
|
| 75 |
+
],
|
| 76 |
+
'insideStr': [
|
| 77 |
+
(r'\\\\', String.Escape), # Escaped backslash
|
| 78 |
+
(r'\\"', String.Escape), # Escaped "
|
| 79 |
+
(r'\\`', String.Escape), # Escaped `
|
| 80 |
+
(r'\$\w+', String.Interpol), # Subst var
|
| 81 |
+
(r'\$\{.*?\}', String.Interpol), # Subst expr
|
| 82 |
+
(r'"', Punctuation, '#pop'), # Closing quot
|
| 83 |
+
(r'.', String) # String content
|
| 84 |
+
],
|
| 85 |
+
'insideUri': [ # TODO: remove copy/paste str/uri
|
| 86 |
+
(r'\\\\', String.Escape), # Escaped backslash
|
| 87 |
+
(r'\\"', String.Escape), # Escaped "
|
| 88 |
+
(r'\\`', String.Escape), # Escaped `
|
| 89 |
+
(r'\$\w+', String.Interpol), # Subst var
|
| 90 |
+
(r'\$\{.*?\}', String.Interpol), # Subst expr
|
| 91 |
+
(r'`', Punctuation, '#pop'), # Closing tick
|
| 92 |
+
(r'.', String.Backtick) # URI content
|
| 93 |
+
],
|
| 94 |
+
'protectionKeywords': [
|
| 95 |
+
(r'\b(public|protected|private|internal)\b', Keyword),
|
| 96 |
+
],
|
| 97 |
+
'typeKeywords': [
|
| 98 |
+
(r'\b(abstract|final|const|native|facet|enum)\b', Keyword),
|
| 99 |
+
],
|
| 100 |
+
'methodKeywords': [
|
| 101 |
+
(r'\b(abstract|native|once|override|static|virtual|final)\b',
|
| 102 |
+
Keyword),
|
| 103 |
+
],
|
| 104 |
+
'fieldKeywords': [
|
| 105 |
+
(r'\b(abstract|const|final|native|override|static|virtual|'
|
| 106 |
+
r'readonly)\b', Keyword)
|
| 107 |
+
],
|
| 108 |
+
'otherKeywords': [
|
| 109 |
+
(words((
|
| 110 |
+
'try', 'catch', 'throw', 'finally', 'for', 'if', 'else', 'while',
|
| 111 |
+
'as', 'is', 'isnot', 'switch', 'case', 'default', 'continue',
|
| 112 |
+
'break', 'do', 'return', 'get', 'set'), prefix=r'\b', suffix=r'\b'),
|
| 113 |
+
Keyword),
|
| 114 |
+
(r'\b(it|this|super)\b', Name.Builtin.Pseudo),
|
| 115 |
+
],
|
| 116 |
+
'operators': [
|
| 117 |
+
(r'\+\+|\-\-|\+|\-|\*|/|\|\||&&|<=>|<=|<|>=|>|=|!|\[|\]', Operator)
|
| 118 |
+
],
|
| 119 |
+
'inType': [
|
| 120 |
+
(r'[\[\]|\->:?]', Punctuation),
|
| 121 |
+
(s(r'$id'), Name.Class),
|
| 122 |
+
default('#pop'),
|
| 123 |
+
|
| 124 |
+
],
|
| 125 |
+
'root': [
|
| 126 |
+
include('comments'),
|
| 127 |
+
include('protectionKeywords'),
|
| 128 |
+
include('typeKeywords'),
|
| 129 |
+
include('methodKeywords'),
|
| 130 |
+
include('fieldKeywords'),
|
| 131 |
+
include('literals'),
|
| 132 |
+
include('otherKeywords'),
|
| 133 |
+
include('operators'),
|
| 134 |
+
(r'using\b', Keyword.Namespace, 'using'), # Using stmt
|
| 135 |
+
(r'@\w+', Name.Decorator, 'facet'), # Symbol
|
| 136 |
+
(r'(class|mixin)(\s+)(\w+)', bygroups(Keyword, Whitespace, Name.Class),
|
| 137 |
+
'inheritance'), # Inheritance list
|
| 138 |
+
|
| 139 |
+
# Type var := val
|
| 140 |
+
(s(r'($type)([ \t]+)($id)(\s*)(:=)'),
|
| 141 |
+
bygroups(using(this, state='inType'), Whitespace,
|
| 142 |
+
Name.Variable, Whitespace, Operator)),
|
| 143 |
+
|
| 144 |
+
# var := val
|
| 145 |
+
(s(r'($id)(\s*)(:=)'),
|
| 146 |
+
bygroups(Name.Variable, Whitespace, Operator)),
|
| 147 |
+
|
| 148 |
+
# .someId( or ->someId( ###
|
| 149 |
+
(s(r'(\.|(?:\->))($id)(\s*)(\()'),
|
| 150 |
+
bygroups(Operator, Name.Function, Whitespace, Punctuation),
|
| 151 |
+
'insideParen'),
|
| 152 |
+
|
| 153 |
+
# .someId or ->someId
|
| 154 |
+
(s(r'(\.|(?:\->))($id)'),
|
| 155 |
+
bygroups(Operator, Name.Function)),
|
| 156 |
+
|
| 157 |
+
# new makeXXX (
|
| 158 |
+
(r'(new)(\s+)(make\w*)(\s*)(\()',
|
| 159 |
+
bygroups(Keyword, Whitespace, Name.Function, Whitespace, Punctuation),
|
| 160 |
+
'insideMethodDeclArgs'),
|
| 161 |
+
|
| 162 |
+
# Type name (
|
| 163 |
+
(s(r'($type)([ \t]+)' # Return type and whitespace
|
| 164 |
+
r'($id)(\s*)(\()'), # method name + open brace
|
| 165 |
+
bygroups(using(this, state='inType'), Whitespace,
|
| 166 |
+
Name.Function, Whitespace, Punctuation),
|
| 167 |
+
'insideMethodDeclArgs'),
|
| 168 |
+
|
| 169 |
+
# ArgType argName,
|
| 170 |
+
(s(r'($type)(\s+)($id)(\s*)(,)'),
|
| 171 |
+
bygroups(using(this, state='inType'), Whitespace, Name.Variable,
|
| 172 |
+
Whitespace, Punctuation)),
|
| 173 |
+
|
| 174 |
+
# ArgType argName)
|
| 175 |
+
# Covered in 'insideParen' state
|
| 176 |
+
|
| 177 |
+
# ArgType argName -> ArgType|
|
| 178 |
+
(s(r'($type)(\s+)($id)(\s*)(\->)(\s*)($type)(\|)'),
|
| 179 |
+
bygroups(using(this, state='inType'), Whitespace, Name.Variable,
|
| 180 |
+
Whitespace, Punctuation, Whitespace, using(this, state='inType'),
|
| 181 |
+
Punctuation)),
|
| 182 |
+
|
| 183 |
+
# ArgType argName|
|
| 184 |
+
(s(r'($type)(\s+)($id)(\s*)(\|)'),
|
| 185 |
+
bygroups(using(this, state='inType'), Whitespace, Name.Variable,
|
| 186 |
+
Whitespace, Punctuation)),
|
| 187 |
+
|
| 188 |
+
# Type var
|
| 189 |
+
(s(r'($type)([ \t]+)($id)'),
|
| 190 |
+
bygroups(using(this, state='inType'), Whitespace,
|
| 191 |
+
Name.Variable)),
|
| 192 |
+
|
| 193 |
+
(r'\(', Punctuation, 'insideParen'),
|
| 194 |
+
(r'\{', Punctuation, 'insideBrace'),
|
| 195 |
+
(r'\s+', Whitespace),
|
| 196 |
+
(r'.', Text)
|
| 197 |
+
],
|
| 198 |
+
'insideParen': [
|
| 199 |
+
(r'\)', Punctuation, '#pop'),
|
| 200 |
+
include('root'),
|
| 201 |
+
],
|
| 202 |
+
'insideMethodDeclArgs': [
|
| 203 |
+
(r'\)', Punctuation, '#pop'),
|
| 204 |
+
(s(r'($type)(\s+)($id)(\s*)(\))'),
|
| 205 |
+
bygroups(using(this, state='inType'), Whitespace, Name.Variable,
|
| 206 |
+
Whitespace, Punctuation), '#pop'),
|
| 207 |
+
include('root'),
|
| 208 |
+
],
|
| 209 |
+
'insideBrace': [
|
| 210 |
+
(r'\}', Punctuation, '#pop'),
|
| 211 |
+
include('root'),
|
| 212 |
+
],
|
| 213 |
+
'inheritance': [
|
| 214 |
+
(r'\s+', Whitespace), # Whitespace
|
| 215 |
+
(r':|,', Punctuation),
|
| 216 |
+
(r'(?:(\w+)(::))?(\w+)',
|
| 217 |
+
bygroups(Name.Namespace, Punctuation, Name.Class)),
|
| 218 |
+
(r'\{', Punctuation, '#pop')
|
| 219 |
+
],
|
| 220 |
+
'using': [
|
| 221 |
+
(r'[ \t]+', Whitespace), # consume whitespaces
|
| 222 |
+
(r'(\[)(\w+)(\])',
|
| 223 |
+
bygroups(Punctuation, Comment.Special, Punctuation)), # ffi
|
| 224 |
+
(r'(\")?([\w.]+)(\")?',
|
| 225 |
+
bygroups(Punctuation, Name.Namespace, Punctuation)), # podname
|
| 226 |
+
(r'::', Punctuation, 'usingClass'),
|
| 227 |
+
default('#pop')
|
| 228 |
+
],
|
| 229 |
+
'usingClass': [
|
| 230 |
+
(r'[ \t]+', Whitespace), # consume whitespaces
|
| 231 |
+
(r'(as)(\s+)(\w+)',
|
| 232 |
+
bygroups(Keyword.Declaration, Whitespace, Name.Class), '#pop:2'),
|
| 233 |
+
(r'[\w$]+', Name.Class),
|
| 234 |
+
default('#pop:2') # jump out to root state
|
| 235 |
+
],
|
| 236 |
+
'facet': [
|
| 237 |
+
(r'\s+', Whitespace),
|
| 238 |
+
(r'\{', Punctuation, 'facetFields'),
|
| 239 |
+
default('#pop')
|
| 240 |
+
],
|
| 241 |
+
'facetFields': [
|
| 242 |
+
include('comments'),
|
| 243 |
+
include('literals'),
|
| 244 |
+
include('operators'),
|
| 245 |
+
(r'\s+', Whitespace),
|
| 246 |
+
(r'(\s*)(\w+)(\s*)(=)', bygroups(Whitespace, Name, Whitespace, Operator)),
|
| 247 |
+
(r'\}', Punctuation, '#pop'),
|
| 248 |
+
(r'\s+', Whitespace),
|
| 249 |
+
(r'.', Text)
|
| 250 |
+
],
|
| 251 |
+
}
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/floscript.py
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pygments.lexers.floscript
|
| 3 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
Lexer for FloScript
|
| 6 |
+
|
| 7 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 8 |
+
:license: BSD, see LICENSE for details.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
from pygments.lexer import RegexLexer, include, bygroups
|
| 12 |
+
from pygments.token import Text, Comment, Operator, Keyword, Name, String, \
|
| 13 |
+
Number, Punctuation, Whitespace
|
| 14 |
+
|
| 15 |
+
__all__ = ['FloScriptLexer']
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
class FloScriptLexer(RegexLexer):
|
| 19 |
+
"""
|
| 20 |
+
For FloScript configuration language source code.
|
| 21 |
+
"""
|
| 22 |
+
|
| 23 |
+
name = 'FloScript'
|
| 24 |
+
url = 'https://github.com/ioflo/ioflo'
|
| 25 |
+
aliases = ['floscript', 'flo']
|
| 26 |
+
filenames = ['*.flo']
|
| 27 |
+
version_added = '2.4'
|
| 28 |
+
|
| 29 |
+
def innerstring_rules(ttype):
|
| 30 |
+
return [
|
| 31 |
+
# the old style '%s' % (...) string formatting
|
| 32 |
+
(r'%(\(\w+\))?[-#0 +]*([0-9]+|[*])?(\.([0-9]+|[*]))?'
|
| 33 |
+
'[hlL]?[E-GXc-giorsux%]', String.Interpol),
|
| 34 |
+
# backslashes, quotes and formatting signs must be parsed one at a time
|
| 35 |
+
(r'[^\\\'"%\n]+', ttype),
|
| 36 |
+
(r'[\'"\\]', ttype),
|
| 37 |
+
# unhandled string formatting sign
|
| 38 |
+
(r'%', ttype),
|
| 39 |
+
# newlines are an error (use "nl" state)
|
| 40 |
+
]
|
| 41 |
+
|
| 42 |
+
tokens = {
|
| 43 |
+
'root': [
|
| 44 |
+
(r'\s+', Whitespace),
|
| 45 |
+
|
| 46 |
+
(r'[]{}:(),;[]', Punctuation),
|
| 47 |
+
(r'(\\)(\n)', bygroups(Text, Whitespace)),
|
| 48 |
+
(r'\\', Text),
|
| 49 |
+
(r'(to|by|with|from|per|for|cum|qua|via|as|at|in|of|on|re|is|if|be|into|'
|
| 50 |
+
r'and|not)\b', Operator.Word),
|
| 51 |
+
(r'!=|==|<<|>>|[-~+/*%=<>&^|.]', Operator),
|
| 52 |
+
(r'(load|init|server|logger|log|loggee|first|over|under|next|done|timeout|'
|
| 53 |
+
r'repeat|native|benter|enter|recur|exit|precur|renter|rexit|print|put|inc|'
|
| 54 |
+
r'copy|set|aux|rear|raze|go|let|do|bid|ready|start|stop|run|abort|use|flo|'
|
| 55 |
+
r'give|take)\b', Name.Builtin),
|
| 56 |
+
(r'(frame|framer|house)\b', Keyword),
|
| 57 |
+
('"', String, 'string'),
|
| 58 |
+
|
| 59 |
+
include('name'),
|
| 60 |
+
include('numbers'),
|
| 61 |
+
(r'#.+$', Comment.Single),
|
| 62 |
+
],
|
| 63 |
+
'string': [
|
| 64 |
+
('[^"]+', String),
|
| 65 |
+
('"', String, '#pop'),
|
| 66 |
+
],
|
| 67 |
+
'numbers': [
|
| 68 |
+
(r'(\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?j?', Number.Float),
|
| 69 |
+
(r'\d+[eE][+-]?[0-9]+j?', Number.Float),
|
| 70 |
+
(r'0[0-7]+j?', Number.Oct),
|
| 71 |
+
(r'0[bB][01]+', Number.Bin),
|
| 72 |
+
(r'0[xX][a-fA-F0-9]+', Number.Hex),
|
| 73 |
+
(r'\d+L', Number.Integer.Long),
|
| 74 |
+
(r'\d+j?', Number.Integer)
|
| 75 |
+
],
|
| 76 |
+
|
| 77 |
+
'name': [
|
| 78 |
+
(r'@[\w.]+', Name.Decorator),
|
| 79 |
+
(r'[a-zA-Z_]\w*', Name),
|
| 80 |
+
],
|
| 81 |
+
}
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/func.py
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pygments.lexers.func
|
| 3 |
+
~~~~~~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
Lexers for FunC.
|
| 6 |
+
|
| 7 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 8 |
+
:license: BSD, see LICENSE for details.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
from pygments.lexer import RegexLexer, include, words
|
| 12 |
+
from pygments.token import Text, Comment, Operator, Keyword, Name, String, \
|
| 13 |
+
Number, Whitespace, Punctuation
|
| 14 |
+
|
| 15 |
+
__all__ = ['FuncLexer']
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
class FuncLexer(RegexLexer):
|
| 19 |
+
"""
|
| 20 |
+
For FunC source code.
|
| 21 |
+
"""
|
| 22 |
+
|
| 23 |
+
name = 'FunC'
|
| 24 |
+
aliases = ['func', 'fc']
|
| 25 |
+
filenames = ['*.fc', '*.func']
|
| 26 |
+
url = 'https://docs.ton.org/develop/func/overview'
|
| 27 |
+
version_added = ''
|
| 28 |
+
|
| 29 |
+
# 1. Does not start from "
|
| 30 |
+
# 2. Can start from ` and end with `, containing any character
|
| 31 |
+
# 3. Starts with underscore or { or } and have more than 1 character after it
|
| 32 |
+
# 4. Starts with letter, contains letters, numbers and underscores
|
| 33 |
+
identifier = r'(?!")(`([^`]+)`|((?=_)_|(?=\{)\{|(?=\})\}|(?![_`{}]))([^;,\[\]\(\)\s~.]+))'
|
| 34 |
+
|
| 35 |
+
tokens = {
|
| 36 |
+
'root': [
|
| 37 |
+
(r'\n', Whitespace),
|
| 38 |
+
(r'\s+', Whitespace),
|
| 39 |
+
|
| 40 |
+
include('keywords'),
|
| 41 |
+
include('strings'),
|
| 42 |
+
include('directives'),
|
| 43 |
+
include('numeric'),
|
| 44 |
+
include('comments'),
|
| 45 |
+
include('storage'),
|
| 46 |
+
include('functions'),
|
| 47 |
+
include('variables'),
|
| 48 |
+
|
| 49 |
+
(r'[.;(),\[\]~{}]', Punctuation)
|
| 50 |
+
],
|
| 51 |
+
'keywords': [
|
| 52 |
+
(words((
|
| 53 |
+
'<=>', '>=', '<=', '!=', '==', '^>>', '~>>',
|
| 54 |
+
'>>', '<<', '/%', '^%', '~%', '^/', '~/', '+=',
|
| 55 |
+
'-=', '*=', '/=', '~/=', '^/=', '%=', '^%=', '<<=',
|
| 56 |
+
'>>=', '~>>=', '^>>=', '&=', '|=', '^=', '^', '=',
|
| 57 |
+
'~', '/', '%', '-', '*', '+','>',
|
| 58 |
+
'<', '&', '|', ':', '?'), prefix=r'(?<=\s)', suffix=r'(?=\s)'),
|
| 59 |
+
Operator),
|
| 60 |
+
(words((
|
| 61 |
+
'if', 'ifnot',
|
| 62 |
+
'else', 'elseif', 'elseifnot',
|
| 63 |
+
'while', 'do', 'until', 'repeat',
|
| 64 |
+
'return', 'impure', 'method_id',
|
| 65 |
+
'forall', 'asm', 'inline', 'inline_ref'), prefix=r'\b', suffix=r'\b'),
|
| 66 |
+
Keyword),
|
| 67 |
+
(words(('true', 'false'), prefix=r'\b', suffix=r'\b'), Keyword.Constant),
|
| 68 |
+
],
|
| 69 |
+
'directives': [
|
| 70 |
+
(r'#include|#pragma', Keyword, 'directive'),
|
| 71 |
+
],
|
| 72 |
+
'directive': [
|
| 73 |
+
include('strings'),
|
| 74 |
+
(r'\s+', Whitespace),
|
| 75 |
+
(r'version|not-version', Keyword),
|
| 76 |
+
(r'(>=|<=|=|>|<|\^)?([0-9]+)(.[0-9]+)?(.[0-9]+)?', Number), # version
|
| 77 |
+
(r';', Text, '#pop')
|
| 78 |
+
],
|
| 79 |
+
'strings': [
|
| 80 |
+
(r'\"([^\n\"]+)\"[Hhcusa]?', String),
|
| 81 |
+
],
|
| 82 |
+
'numeric': [
|
| 83 |
+
(r'\b(-?(?!_)([\d_]+|0x[\d_a-fA-F]+)|0b[1_0]+)(?<!_)(?=[\s\)\],;])', Number)
|
| 84 |
+
],
|
| 85 |
+
'comments': [
|
| 86 |
+
(r';;([^\n]*)', Comment.Singleline),
|
| 87 |
+
(r'\{-', Comment.Multiline, 'comment'),
|
| 88 |
+
],
|
| 89 |
+
'comment': [
|
| 90 |
+
(r'[^-}{]+', Comment.Multiline),
|
| 91 |
+
(r'\{-', Comment.Multiline, '#push'),
|
| 92 |
+
(r'-\}', Comment.Multiline, '#pop'),
|
| 93 |
+
(r'[-}{]', Comment.Multiline),
|
| 94 |
+
],
|
| 95 |
+
'storage': [
|
| 96 |
+
(words((
|
| 97 |
+
'var', 'int', 'slice', 'tuple',
|
| 98 |
+
'cell', 'builder', 'cont', '_'),
|
| 99 |
+
prefix=r'\b', suffix=r'(?=[\s\(\),\[\]])'),
|
| 100 |
+
Keyword.Type),
|
| 101 |
+
(words(('global', 'const'), prefix=r'\b', suffix=r'\b'), Keyword.Constant),
|
| 102 |
+
],
|
| 103 |
+
'variables': [
|
| 104 |
+
(identifier, Name.Variable),
|
| 105 |
+
],
|
| 106 |
+
'functions': [
|
| 107 |
+
# identifier followed by (
|
| 108 |
+
(identifier + r'(?=[\(])', Name.Function),
|
| 109 |
+
]
|
| 110 |
+
}
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/gleam.py
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pygments.lexers.gleam
|
| 3 |
+
~~~~~~~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
Lexer for the Gleam programming language.
|
| 6 |
+
|
| 7 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 8 |
+
:license: BSD, see LICENSE for details.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
from pygments.lexer import RegexLexer, words, bygroups
|
| 12 |
+
from pygments.token import Comment, Operator, Keyword, Name, String, \
|
| 13 |
+
Number, Punctuation, Whitespace
|
| 14 |
+
|
| 15 |
+
__all__ = ['GleamLexer']
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
class GleamLexer(RegexLexer):
|
| 19 |
+
"""
|
| 20 |
+
Lexer for the Gleam programming language (version 1.0.0).
|
| 21 |
+
"""
|
| 22 |
+
|
| 23 |
+
name = 'Gleam'
|
| 24 |
+
url = 'https://gleam.run/'
|
| 25 |
+
filenames = ['*.gleam']
|
| 26 |
+
aliases = ['gleam']
|
| 27 |
+
mimetypes = ['text/x-gleam']
|
| 28 |
+
version_added = '2.19'
|
| 29 |
+
|
| 30 |
+
keywords = words((
|
| 31 |
+
'as', 'assert', 'auto', 'case', 'const', 'delegate', 'derive', 'echo',
|
| 32 |
+
'else', 'fn', 'if', 'implement', 'import', 'let', 'macro', 'opaque',
|
| 33 |
+
'panic', 'pub', 'test', 'todo', 'type', 'use',
|
| 34 |
+
), suffix=r'\b')
|
| 35 |
+
|
| 36 |
+
tokens = {
|
| 37 |
+
'root': [
|
| 38 |
+
# Comments
|
| 39 |
+
(r'(///.*?)(\n)', bygroups(String.Doc, Whitespace)),
|
| 40 |
+
(r'(//.*?)(\n)', bygroups(Comment.Single, Whitespace)),
|
| 41 |
+
|
| 42 |
+
# Keywords
|
| 43 |
+
(keywords, Keyword),
|
| 44 |
+
(r'([a-zA-Z_]+)(\.)', bygroups(Keyword, Punctuation)),
|
| 45 |
+
|
| 46 |
+
# Punctuation
|
| 47 |
+
(r'[()\[\]{}:;,@]+', Punctuation),
|
| 48 |
+
(r'(#|!=|!|==|\|>|\|\||\||\->|<\-|&&|<<|>>|\.\.|\.|=)', Punctuation),
|
| 49 |
+
|
| 50 |
+
# Operators
|
| 51 |
+
(r'(<>|\+\.?|\-\.?|\*\.?|/\.?|%\.?|<=\.?|>=\.?|<\.?|>\.?|=)', Operator),
|
| 52 |
+
|
| 53 |
+
# Strings
|
| 54 |
+
(r'"(\\"|[^"])*"', String),
|
| 55 |
+
|
| 56 |
+
# Identifiers
|
| 57 |
+
(r'\b(let)(\s+)(\w+)', bygroups(Keyword, Whitespace, Name.Variable)),
|
| 58 |
+
(r'\b(fn)(\s+)(\w+)', bygroups(Keyword, Whitespace, Name.Function)),
|
| 59 |
+
(r'[a-zA-Z_/]\w*', Name),
|
| 60 |
+
|
| 61 |
+
# numbers
|
| 62 |
+
(r'(\d+(_\d+)*\.(?!\.)(\d+(_\d+)*)?|\.\d+(_\d+)*)([eEf][+-]?[0-9]+)?', Number.Float),
|
| 63 |
+
(r'\d+(_\d+)*[eEf][+-]?[0-9]+', Number.Float),
|
| 64 |
+
(r'0[xX][a-fA-F0-9]+(_[a-fA-F0-9]+)*(\.([a-fA-F0-9]+(_[a-fA-F0-9]+)*)?)?p[+-]?\d+', Number.Float),
|
| 65 |
+
(r'0[bB][01]+(_[01]+)*', Number.Bin),
|
| 66 |
+
(r'0[oO][0-7]+(_[0-7]+)*', Number.Oct),
|
| 67 |
+
(r'0[xX][a-fA-F0-9]+(_[a-fA-F0-9]+)*', Number.Hex),
|
| 68 |
+
(r'\d+(_\d+)*', Number.Integer),
|
| 69 |
+
|
| 70 |
+
# Whitespace
|
| 71 |
+
(r'\s+', Whitespace),
|
| 72 |
+
|
| 73 |
+
],
|
| 74 |
+
}
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/gsql.py
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pygments.lexers.gsql
|
| 3 |
+
~~~~~~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
Lexers for TigerGraph GSQL graph query language
|
| 6 |
+
|
| 7 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 8 |
+
:license: BSD, see LICENSE for details.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
import re
|
| 12 |
+
|
| 13 |
+
from pygments.lexer import RegexLexer, include, bygroups, using, this, words
|
| 14 |
+
from pygments.token import Keyword, Punctuation, Comment, Operator, Name, \
|
| 15 |
+
String, Number, Whitespace
|
| 16 |
+
|
| 17 |
+
__all__ = ["GSQLLexer"]
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
class GSQLLexer(RegexLexer):
|
| 21 |
+
|
| 22 |
+
"""
|
| 23 |
+
For GSQL queries (version 3.x).
|
| 24 |
+
"""
|
| 25 |
+
|
| 26 |
+
name = 'GSQL'
|
| 27 |
+
url = 'https://docs.tigergraph.com/dev/gsql-ref'
|
| 28 |
+
aliases = ['gsql']
|
| 29 |
+
filenames = ['*.gsql']
|
| 30 |
+
version_added = '2.10'
|
| 31 |
+
|
| 32 |
+
flags = re.MULTILINE | re.IGNORECASE
|
| 33 |
+
|
| 34 |
+
tokens = {
|
| 35 |
+
'root': [
|
| 36 |
+
include('comment'),
|
| 37 |
+
include('keywords'),
|
| 38 |
+
include('clauses'),
|
| 39 |
+
include('accums'),
|
| 40 |
+
include('relations'),
|
| 41 |
+
include('strings'),
|
| 42 |
+
include('whitespace'),
|
| 43 |
+
include('barewords'),
|
| 44 |
+
include('operators'),
|
| 45 |
+
],
|
| 46 |
+
'comment': [
|
| 47 |
+
(r'\#.*', Comment.Single),
|
| 48 |
+
(r'/\*(.|\n)*?\*/', Comment.Multiline),
|
| 49 |
+
],
|
| 50 |
+
'keywords': [
|
| 51 |
+
(words((
|
| 52 |
+
'ACCUM', 'AND', 'ANY', 'API', 'AS', 'ASC', 'AVG', 'BAG', 'BATCH',
|
| 53 |
+
'BETWEEN', 'BOOL', 'BOTH', 'BREAK', 'BY', 'CASE', 'CATCH', 'COALESCE',
|
| 54 |
+
'COMPRESS', 'CONTINUE', 'COUNT', 'CREATE', 'DATETIME', 'DATETIME_ADD',
|
| 55 |
+
'DATETIME_SUB', 'DELETE', 'DESC', 'DISTRIBUTED', 'DO', 'DOUBLE',
|
| 56 |
+
'EDGE', 'ELSE', 'END', 'ESCAPE', 'EXCEPTION', 'FALSE', 'FILE',
|
| 57 |
+
'FILTER', 'FLOAT', 'FOREACH', 'FOR', 'FROM', 'GRAPH', 'GROUP',
|
| 58 |
+
'GSQL_INT_MAX', 'GSQL_INT_MIN', 'GSQL_UINT_MAX', 'HAVING', 'IF',
|
| 59 |
+
'IN', 'INSERT', 'INT', 'INTERPRET', 'INTERSECT', 'INTERVAL', 'INTO',
|
| 60 |
+
'IS', 'ISEMPTY', 'JSONARRAY', 'JSONOBJECT', 'LASTHOP', 'LEADING',
|
| 61 |
+
'LIKE', 'LIMIT', 'LIST', 'LOAD_ACCUM', 'LOG', 'MAP', 'MATCH', 'MAX',
|
| 62 |
+
'MIN', 'MINUS', 'NOT', 'NOW', 'NULL', 'OFFSET', 'OR', 'ORDER', 'PATH',
|
| 63 |
+
'PER', 'PINNED', 'POST_ACCUM', 'POST-ACCUM', 'PRIMARY_ID', 'PRINT',
|
| 64 |
+
'QUERY', 'RAISE', 'RANGE', 'REPLACE', 'RESET_COLLECTION_ACCUM',
|
| 65 |
+
'RETURN', 'RETURNS', 'RUN', 'SAMPLE', 'SELECT', 'SELECT_VERTEX',
|
| 66 |
+
'SET', 'SRC', 'STATIC', 'STRING', 'SUM', 'SYNTAX', 'TARGET',
|
| 67 |
+
'TAGSTGT', 'THEN', 'TO', 'TO_CSV', 'TO_DATETIME', 'TRAILING',
|
| 68 |
+
'TRIM', 'TRUE', 'TRY', 'TUPLE', 'TYPEDEF', 'UINT', 'UNION', 'UPDATE',
|
| 69 |
+
'VALUES', 'VERTEX', 'WHEN', 'WHERE', 'WHILE', 'WITH'),
|
| 70 |
+
prefix=r'(?<!\.)', suffix=r'\b'), Keyword),
|
| 71 |
+
],
|
| 72 |
+
'clauses': [
|
| 73 |
+
(words(('accum', 'having', 'limit', 'order', 'postAccum', 'sample', 'where')),
|
| 74 |
+
Name.Builtin),
|
| 75 |
+
],
|
| 76 |
+
'accums': [
|
| 77 |
+
(words(('andaccum', 'arrayaccum', 'avgaccum', 'bagaccum', 'bitwiseandaccum',
|
| 78 |
+
'bitwiseoraccum', 'groupbyaccum', 'heapaccum', 'listaccum',
|
| 79 |
+
'MapAccum', 'maxaccum', 'minaccum', 'oraccum', 'setaccum',
|
| 80 |
+
'sumaccum')), Name.Builtin),
|
| 81 |
+
],
|
| 82 |
+
'relations': [
|
| 83 |
+
(r'(-\s?)(\(.*\:\w?\))(\s?-)', bygroups(Operator, using(this), Operator)),
|
| 84 |
+
(r'->|<-', Operator),
|
| 85 |
+
(r'[.*{}\[\]\<\>\_]', Punctuation),
|
| 86 |
+
],
|
| 87 |
+
'strings': [
|
| 88 |
+
(r'"([^"\\]|\\.)*"', String),
|
| 89 |
+
(r'@{1,2}\w+', Name.Variable),
|
| 90 |
+
],
|
| 91 |
+
'whitespace': [
|
| 92 |
+
(r'\s+', Whitespace),
|
| 93 |
+
],
|
| 94 |
+
'barewords': [
|
| 95 |
+
(r'[a-z]\w*', Name),
|
| 96 |
+
(r'(\d+\.\d+|\d+)', Number),
|
| 97 |
+
],
|
| 98 |
+
'operators': [
|
| 99 |
+
(r'\$|[^0-9|\/|\-](\-\=|\+\=|\*\=|\\\=|\=|\=\=|\=\=\=|'
|
| 100 |
+
r'\+|\-|\*|\\|\+\=|\>|\<)[^\>|\/]', Operator),
|
| 101 |
+
(r'(\||\(|\)|\,|\;|\=|\-|\+|\*|\/|\>|\<|\:)', Operator),
|
| 102 |
+
],
|
| 103 |
+
}
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/idl.py
ADDED
|
@@ -0,0 +1,284 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pygments.lexers.idl
|
| 3 |
+
~~~~~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
Lexers for IDL.
|
| 6 |
+
|
| 7 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 8 |
+
:license: BSD, see LICENSE for details.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
import re
|
| 12 |
+
|
| 13 |
+
from pygments.lexer import RegexLexer, words, bygroups
|
| 14 |
+
from pygments.token import Text, Comment, Operator, Keyword, Name, Number, \
|
| 15 |
+
String, Whitespace
|
| 16 |
+
|
| 17 |
+
__all__ = ['IDLLexer']
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
class IDLLexer(RegexLexer):
|
| 21 |
+
"""
|
| 22 |
+
Pygments Lexer for IDL (Interactive Data Language).
|
| 23 |
+
"""
|
| 24 |
+
name = 'IDL'
|
| 25 |
+
url = 'https://www.l3harrisgeospatial.com/Software-Technology/IDL'
|
| 26 |
+
aliases = ['idl']
|
| 27 |
+
filenames = ['*.pro']
|
| 28 |
+
mimetypes = ['text/idl']
|
| 29 |
+
version_added = '1.6'
|
| 30 |
+
|
| 31 |
+
flags = re.IGNORECASE | re.MULTILINE
|
| 32 |
+
|
| 33 |
+
_RESERVED = (
|
| 34 |
+
'and', 'begin', 'break', 'case', 'common', 'compile_opt',
|
| 35 |
+
'continue', 'do', 'else', 'end', 'endcase', 'endelse',
|
| 36 |
+
'endfor', 'endforeach', 'endif', 'endrep', 'endswitch',
|
| 37 |
+
'endwhile', 'eq', 'for', 'foreach', 'forward_function',
|
| 38 |
+
'function', 'ge', 'goto', 'gt', 'if', 'inherits', 'le',
|
| 39 |
+
'lt', 'mod', 'ne', 'not', 'of', 'on_ioerror', 'or', 'pro',
|
| 40 |
+
'repeat', 'switch', 'then', 'until', 'while', 'xor')
|
| 41 |
+
"""Reserved words from: http://www.exelisvis.com/docs/reswords.html"""
|
| 42 |
+
|
| 43 |
+
_BUILTIN_LIB = (
|
| 44 |
+
'abs', 'acos', 'adapt_hist_equal', 'alog', 'alog10',
|
| 45 |
+
'amoeba', 'annotate', 'app_user_dir', 'app_user_dir_query',
|
| 46 |
+
'arg_present', 'array_equal', 'array_indices', 'arrow',
|
| 47 |
+
'ascii_template', 'asin', 'assoc', 'atan', 'axis',
|
| 48 |
+
'a_correlate', 'bandpass_filter', 'bandreject_filter',
|
| 49 |
+
'barplot', 'bar_plot', 'beseli', 'beselj', 'beselk',
|
| 50 |
+
'besely', 'beta', 'bilinear', 'binary_template', 'bindgen',
|
| 51 |
+
'binomial', 'bin_date', 'bit_ffs', 'bit_population',
|
| 52 |
+
'blas_axpy', 'blk_con', 'box_cursor', 'breakpoint',
|
| 53 |
+
'broyden', 'butterworth', 'bytarr', 'byte', 'byteorder',
|
| 54 |
+
'bytscl', 'caldat', 'calendar', 'call_external',
|
| 55 |
+
'call_function', 'call_method', 'call_procedure', 'canny',
|
| 56 |
+
'catch', 'cd', r'cdf_\w*', 'ceil', 'chebyshev',
|
| 57 |
+
'check_math',
|
| 58 |
+
'chisqr_cvf', 'chisqr_pdf', 'choldc', 'cholsol', 'cindgen',
|
| 59 |
+
'cir_3pnt', 'close', 'cluster', 'cluster_tree', 'clust_wts',
|
| 60 |
+
'cmyk_convert', 'colorbar', 'colorize_sample',
|
| 61 |
+
'colormap_applicable', 'colormap_gradient',
|
| 62 |
+
'colormap_rotation', 'colortable', 'color_convert',
|
| 63 |
+
'color_exchange', 'color_quan', 'color_range_map', 'comfit',
|
| 64 |
+
'command_line_args', 'complex', 'complexarr', 'complexround',
|
| 65 |
+
'compute_mesh_normals', 'cond', 'congrid', 'conj',
|
| 66 |
+
'constrained_min', 'contour', 'convert_coord', 'convol',
|
| 67 |
+
'convol_fft', 'coord2to3', 'copy_lun', 'correlate', 'cos',
|
| 68 |
+
'cosh', 'cpu', 'cramer', 'create_cursor', 'create_struct',
|
| 69 |
+
'create_view', 'crossp', 'crvlength', 'cti_test',
|
| 70 |
+
'ct_luminance', 'cursor', 'curvefit', 'cvttobm', 'cv_coord',
|
| 71 |
+
'cw_animate', 'cw_animate_getp', 'cw_animate_load',
|
| 72 |
+
'cw_animate_run', 'cw_arcball', 'cw_bgroup', 'cw_clr_index',
|
| 73 |
+
'cw_colorsel', 'cw_defroi', 'cw_field', 'cw_filesel',
|
| 74 |
+
'cw_form', 'cw_fslider', 'cw_light_editor',
|
| 75 |
+
'cw_light_editor_get', 'cw_light_editor_set', 'cw_orient',
|
| 76 |
+
'cw_palette_editor', 'cw_palette_editor_get',
|
| 77 |
+
'cw_palette_editor_set', 'cw_pdmenu', 'cw_rgbslider',
|
| 78 |
+
'cw_tmpl', 'cw_zoom', 'c_correlate', 'dblarr', 'db_exists',
|
| 79 |
+
'dcindgen', 'dcomplex', 'dcomplexarr', 'define_key',
|
| 80 |
+
'define_msgblk', 'define_msgblk_from_file', 'defroi',
|
| 81 |
+
'defsysv', 'delvar', 'dendrogram', 'dendro_plot', 'deriv',
|
| 82 |
+
'derivsig', 'determ', 'device', 'dfpmin', 'diag_matrix',
|
| 83 |
+
'dialog_dbconnect', 'dialog_message', 'dialog_pickfile',
|
| 84 |
+
'dialog_printersetup', 'dialog_printjob',
|
| 85 |
+
'dialog_read_image', 'dialog_write_image', 'digital_filter',
|
| 86 |
+
'dilate', 'dindgen', 'dissolve', 'dist', 'distance_measure',
|
| 87 |
+
'dlm_load', 'dlm_register', 'doc_library', 'double',
|
| 88 |
+
'draw_roi', 'edge_dog', 'efont', 'eigenql', 'eigenvec',
|
| 89 |
+
'ellipse', 'elmhes', 'emboss', 'empty', 'enable_sysrtn',
|
| 90 |
+
'eof', r'eos_\w*', 'erase', 'erf', 'erfc', 'erfcx',
|
| 91 |
+
'erode', 'errorplot', 'errplot', 'estimator_filter',
|
| 92 |
+
'execute', 'exit', 'exp', 'expand', 'expand_path', 'expint',
|
| 93 |
+
'extrac', 'extract_slice', 'factorial', 'fft', 'filepath',
|
| 94 |
+
'file_basename', 'file_chmod', 'file_copy', 'file_delete',
|
| 95 |
+
'file_dirname', 'file_expand_path', 'file_info',
|
| 96 |
+
'file_lines', 'file_link', 'file_mkdir', 'file_move',
|
| 97 |
+
'file_poll_input', 'file_readlink', 'file_same',
|
| 98 |
+
'file_search', 'file_test', 'file_which', 'findgen',
|
| 99 |
+
'finite', 'fix', 'flick', 'float', 'floor', 'flow3',
|
| 100 |
+
'fltarr', 'flush', 'format_axis_values', 'free_lun',
|
| 101 |
+
'fstat', 'fulstr', 'funct', 'fv_test', 'fx_root',
|
| 102 |
+
'fz_roots', 'f_cvf', 'f_pdf', 'gamma', 'gamma_ct',
|
| 103 |
+
'gauss2dfit', 'gaussfit', 'gaussian_function', 'gaussint',
|
| 104 |
+
'gauss_cvf', 'gauss_pdf', 'gauss_smooth', 'getenv',
|
| 105 |
+
'getwindows', 'get_drive_list', 'get_dxf_objects',
|
| 106 |
+
'get_kbrd', 'get_login_info', 'get_lun', 'get_screen_size',
|
| 107 |
+
'greg2jul', r'grib_\w*', 'grid3', 'griddata',
|
| 108 |
+
'grid_input', 'grid_tps', 'gs_iter',
|
| 109 |
+
r'h5[adfgirst]_\w*', 'h5_browser', 'h5_close',
|
| 110 |
+
'h5_create', 'h5_get_libversion', 'h5_open', 'h5_parse',
|
| 111 |
+
'hanning', 'hash', r'hdf_\w*', 'heap_free',
|
| 112 |
+
'heap_gc', 'heap_nosave', 'heap_refcount', 'heap_save',
|
| 113 |
+
'help', 'hilbert', 'histogram', 'hist_2d', 'hist_equal',
|
| 114 |
+
'hls', 'hough', 'hqr', 'hsv', 'h_eq_ct', 'h_eq_int',
|
| 115 |
+
'i18n_multibytetoutf8', 'i18n_multibytetowidechar',
|
| 116 |
+
'i18n_utf8tomultibyte', 'i18n_widechartomultibyte',
|
| 117 |
+
'ibeta', 'icontour', 'iconvertcoord', 'idelete', 'identity',
|
| 118 |
+
'idlexbr_assistant', 'idlitsys_createtool', 'idl_base64',
|
| 119 |
+
'idl_validname', 'iellipse', 'igamma', 'igetcurrent',
|
| 120 |
+
'igetdata', 'igetid', 'igetproperty', 'iimage', 'image',
|
| 121 |
+
'image_cont', 'image_statistics', 'imaginary', 'imap',
|
| 122 |
+
'indgen', 'intarr', 'interpol', 'interpolate',
|
| 123 |
+
'interval_volume', 'int_2d', 'int_3d', 'int_tabulated',
|
| 124 |
+
'invert', 'ioctl', 'iopen', 'iplot', 'ipolygon',
|
| 125 |
+
'ipolyline', 'iputdata', 'iregister', 'ireset', 'iresolve',
|
| 126 |
+
'irotate', 'ir_filter', 'isa', 'isave', 'iscale',
|
| 127 |
+
'isetcurrent', 'isetproperty', 'ishft', 'isocontour',
|
| 128 |
+
'isosurface', 'isurface', 'itext', 'itranslate', 'ivector',
|
| 129 |
+
'ivolume', 'izoom', 'i_beta', 'journal', 'json_parse',
|
| 130 |
+
'json_serialize', 'jul2greg', 'julday', 'keyword_set',
|
| 131 |
+
'krig2d', 'kurtosis', 'kw_test', 'l64indgen', 'label_date',
|
| 132 |
+
'label_region', 'ladfit', 'laguerre', 'laplacian',
|
| 133 |
+
'la_choldc', 'la_cholmprove', 'la_cholsol', 'la_determ',
|
| 134 |
+
'la_eigenproblem', 'la_eigenql', 'la_eigenvec', 'la_elmhes',
|
| 135 |
+
'la_gm_linear_model', 'la_hqr', 'la_invert',
|
| 136 |
+
'la_least_squares', 'la_least_square_equality',
|
| 137 |
+
'la_linear_equation', 'la_ludc', 'la_lumprove', 'la_lusol',
|
| 138 |
+
'la_svd', 'la_tridc', 'la_trimprove', 'la_triql',
|
| 139 |
+
'la_trired', 'la_trisol', 'least_squares_filter', 'leefilt',
|
| 140 |
+
'legend', 'legendre', 'linbcg', 'lindgen', 'linfit',
|
| 141 |
+
'linkimage', 'list', 'll_arc_distance', 'lmfit', 'lmgr',
|
| 142 |
+
'lngamma', 'lnp_test', 'loadct', 'locale_get',
|
| 143 |
+
'logical_and', 'logical_or', 'logical_true', 'lon64arr',
|
| 144 |
+
'lonarr', 'long', 'long64', 'lsode', 'ludc', 'lumprove',
|
| 145 |
+
'lusol', 'lu_complex', 'machar', 'make_array', 'make_dll',
|
| 146 |
+
'make_rt', 'map', 'mapcontinents', 'mapgrid', 'map_2points',
|
| 147 |
+
'map_continents', 'map_grid', 'map_image', 'map_patch',
|
| 148 |
+
'map_proj_forward', 'map_proj_image', 'map_proj_info',
|
| 149 |
+
'map_proj_init', 'map_proj_inverse', 'map_set',
|
| 150 |
+
'matrix_multiply', 'matrix_power', 'max', 'md_test',
|
| 151 |
+
'mean', 'meanabsdev', 'mean_filter', 'median', 'memory',
|
| 152 |
+
'mesh_clip', 'mesh_decimate', 'mesh_issolid', 'mesh_merge',
|
| 153 |
+
'mesh_numtriangles', 'mesh_obj', 'mesh_smooth',
|
| 154 |
+
'mesh_surfacearea', 'mesh_validate', 'mesh_volume',
|
| 155 |
+
'message', 'min', 'min_curve_surf', 'mk_html_help',
|
| 156 |
+
'modifyct', 'moment', 'morph_close', 'morph_distance',
|
| 157 |
+
'morph_gradient', 'morph_hitormiss', 'morph_open',
|
| 158 |
+
'morph_thin', 'morph_tophat', 'multi', 'm_correlate',
|
| 159 |
+
r'ncdf_\w*', 'newton', 'noise_hurl', 'noise_pick',
|
| 160 |
+
'noise_scatter', 'noise_slur', 'norm', 'n_elements',
|
| 161 |
+
'n_params', 'n_tags', 'objarr', 'obj_class', 'obj_destroy',
|
| 162 |
+
'obj_hasmethod', 'obj_isa', 'obj_new', 'obj_valid',
|
| 163 |
+
'online_help', 'on_error', 'open', 'oplot', 'oploterr',
|
| 164 |
+
'parse_url', 'particle_trace', 'path_cache', 'path_sep',
|
| 165 |
+
'pcomp', 'plot', 'plot3d', 'ploterr', 'plots', 'plot_3dbox',
|
| 166 |
+
'plot_field', 'pnt_line', 'point_lun', 'polarplot',
|
| 167 |
+
'polar_contour', 'polar_surface', 'poly', 'polyfill',
|
| 168 |
+
'polyfillv', 'polygon', 'polyline', 'polyshade', 'polywarp',
|
| 169 |
+
'poly_2d', 'poly_area', 'poly_fit', 'popd', 'powell',
|
| 170 |
+
'pref_commit', 'pref_get', 'pref_set', 'prewitt', 'primes',
|
| 171 |
+
'print', 'printd', 'product', 'profile', 'profiler',
|
| 172 |
+
'profiles', 'project_vol', 'psafm', 'pseudo',
|
| 173 |
+
'ps_show_fonts', 'ptrarr', 'ptr_free', 'ptr_new',
|
| 174 |
+
'ptr_valid', 'pushd', 'p_correlate', 'qgrid3', 'qhull',
|
| 175 |
+
'qromb', 'qromo', 'qsimp', 'query_ascii', 'query_bmp',
|
| 176 |
+
'query_csv', 'query_dicom', 'query_gif', 'query_image',
|
| 177 |
+
'query_jpeg', 'query_jpeg2000', 'query_mrsid', 'query_pict',
|
| 178 |
+
'query_png', 'query_ppm', 'query_srf', 'query_tiff',
|
| 179 |
+
'query_wav', 'radon', 'randomn', 'randomu', 'ranks',
|
| 180 |
+
'rdpix', 'read', 'reads', 'readu', 'read_ascii',
|
| 181 |
+
'read_binary', 'read_bmp', 'read_csv', 'read_dicom',
|
| 182 |
+
'read_gif', 'read_image', 'read_interfile', 'read_jpeg',
|
| 183 |
+
'read_jpeg2000', 'read_mrsid', 'read_pict', 'read_png',
|
| 184 |
+
'read_ppm', 'read_spr', 'read_srf', 'read_sylk',
|
| 185 |
+
'read_tiff', 'read_wav', 'read_wave', 'read_x11_bitmap',
|
| 186 |
+
'read_xwd', 'real_part', 'rebin', 'recall_commands',
|
| 187 |
+
'recon3', 'reduce_colors', 'reform', 'region_grow',
|
| 188 |
+
'register_cursor', 'regress', 'replicate',
|
| 189 |
+
'replicate_inplace', 'resolve_all', 'resolve_routine',
|
| 190 |
+
'restore', 'retall', 'return', 'reverse', 'rk4', 'roberts',
|
| 191 |
+
'rot', 'rotate', 'round', 'routine_filepath',
|
| 192 |
+
'routine_info', 'rs_test', 'r_correlate', 'r_test',
|
| 193 |
+
'save', 'savgol', 'scale3', 'scale3d', 'scope_level',
|
| 194 |
+
'scope_traceback', 'scope_varfetch', 'scope_varname',
|
| 195 |
+
'search2d', 'search3d', 'sem_create', 'sem_delete',
|
| 196 |
+
'sem_lock', 'sem_release', 'setenv', 'set_plot',
|
| 197 |
+
'set_shading', 'sfit', 'shade_surf', 'shade_surf_irr',
|
| 198 |
+
'shade_volume', 'shift', 'shift_diff', 'shmdebug', 'shmmap',
|
| 199 |
+
'shmunmap', 'shmvar', 'show3', 'showfont', 'simplex', 'sin',
|
| 200 |
+
'sindgen', 'sinh', 'size', 'skewness', 'skip_lun',
|
| 201 |
+
'slicer3', 'slide_image', 'smooth', 'sobel', 'socket',
|
| 202 |
+
'sort', 'spawn', 'spher_harm', 'sph_4pnt', 'sph_scat',
|
| 203 |
+
'spline', 'spline_p', 'spl_init', 'spl_interp', 'sprsab',
|
| 204 |
+
'sprsax', 'sprsin', 'sprstp', 'sqrt', 'standardize',
|
| 205 |
+
'stddev', 'stop', 'strarr', 'strcmp', 'strcompress',
|
| 206 |
+
'streamline', 'stregex', 'stretch', 'string', 'strjoin',
|
| 207 |
+
'strlen', 'strlowcase', 'strmatch', 'strmessage', 'strmid',
|
| 208 |
+
'strpos', 'strput', 'strsplit', 'strtrim', 'struct_assign',
|
| 209 |
+
'struct_hide', 'strupcase', 'surface', 'surfr', 'svdc',
|
| 210 |
+
'svdfit', 'svsol', 'swap_endian', 'swap_endian_inplace',
|
| 211 |
+
'symbol', 'systime', 's_test', 't3d', 'tag_names', 'tan',
|
| 212 |
+
'tanh', 'tek_color', 'temporary', 'tetra_clip',
|
| 213 |
+
'tetra_surface', 'tetra_volume', 'text', 'thin', 'threed',
|
| 214 |
+
'timegen', 'time_test2', 'tm_test', 'total', 'trace',
|
| 215 |
+
'transpose', 'triangulate', 'trigrid', 'triql', 'trired',
|
| 216 |
+
'trisol', 'tri_surf', 'truncate_lun', 'ts_coef', 'ts_diff',
|
| 217 |
+
'ts_fcast', 'ts_smooth', 'tv', 'tvcrs', 'tvlct', 'tvrd',
|
| 218 |
+
'tvscl', 'typename', 't_cvt', 't_pdf', 'uindgen', 'uint',
|
| 219 |
+
'uintarr', 'ul64indgen', 'ulindgen', 'ulon64arr', 'ulonarr',
|
| 220 |
+
'ulong', 'ulong64', 'uniq', 'unsharp_mask', 'usersym',
|
| 221 |
+
'value_locate', 'variance', 'vector', 'vector_field', 'vel',
|
| 222 |
+
'velovect', 'vert_t3d', 'voigt', 'voronoi', 'voxel_proj',
|
| 223 |
+
'wait', 'warp_tri', 'watershed', 'wdelete', 'wf_draw',
|
| 224 |
+
'where', 'widget_base', 'widget_button', 'widget_combobox',
|
| 225 |
+
'widget_control', 'widget_displaycontextmen', 'widget_draw',
|
| 226 |
+
'widget_droplist', 'widget_event', 'widget_info',
|
| 227 |
+
'widget_label', 'widget_list', 'widget_propertysheet',
|
| 228 |
+
'widget_slider', 'widget_tab', 'widget_table',
|
| 229 |
+
'widget_text', 'widget_tree', 'widget_tree_move',
|
| 230 |
+
'widget_window', 'wiener_filter', 'window', 'writeu',
|
| 231 |
+
'write_bmp', 'write_csv', 'write_gif', 'write_image',
|
| 232 |
+
'write_jpeg', 'write_jpeg2000', 'write_nrif', 'write_pict',
|
| 233 |
+
'write_png', 'write_ppm', 'write_spr', 'write_srf',
|
| 234 |
+
'write_sylk', 'write_tiff', 'write_wav', 'write_wave',
|
| 235 |
+
'wset', 'wshow', 'wtn', 'wv_applet', 'wv_cwt',
|
| 236 |
+
'wv_cw_wavelet', 'wv_denoise', 'wv_dwt', 'wv_fn_coiflet',
|
| 237 |
+
'wv_fn_daubechies', 'wv_fn_gaussian', 'wv_fn_haar',
|
| 238 |
+
'wv_fn_morlet', 'wv_fn_paul', 'wv_fn_symlet',
|
| 239 |
+
'wv_import_data', 'wv_import_wavelet', 'wv_plot3d_wps',
|
| 240 |
+
'wv_plot_multires', 'wv_pwt', 'wv_tool_denoise',
|
| 241 |
+
'xbm_edit', 'xdisplayfile', 'xdxf', 'xfont',
|
| 242 |
+
'xinteranimate', 'xloadct', 'xmanager', 'xmng_tmpl',
|
| 243 |
+
'xmtool', 'xobjview', 'xobjview_rotate',
|
| 244 |
+
'xobjview_write_image', 'xpalette', 'xpcolor', 'xplot3d',
|
| 245 |
+
'xregistered', 'xroi', 'xsq_test', 'xsurface', 'xvaredit',
|
| 246 |
+
'xvolume', 'xvolume_rotate', 'xvolume_write_image',
|
| 247 |
+
'xyouts', 'zoom', 'zoom_24')
|
| 248 |
+
"""Functions from: http://www.exelisvis.com/docs/routines-1.html"""
|
| 249 |
+
|
| 250 |
+
tokens = {
|
| 251 |
+
'root': [
|
| 252 |
+
(r'(^\s*)(;.*?)(\n)', bygroups(Whitespace, Comment.Single,
|
| 253 |
+
Whitespace)),
|
| 254 |
+
(words(_RESERVED, prefix=r'\b', suffix=r'\b'), Keyword),
|
| 255 |
+
(words(_BUILTIN_LIB, prefix=r'\b', suffix=r'\b'), Name.Builtin),
|
| 256 |
+
(r'\+=|-=|\^=|\*=|/=|#=|##=|<=|>=|=', Operator),
|
| 257 |
+
(r'\+\+|--|->|\+|-|##|#|\*|/|<|>|&&|\^|~|\|\|\?|:', Operator),
|
| 258 |
+
(r'\b(mod=|lt=|le=|eq=|ne=|ge=|gt=|not=|and=|or=|xor=)', Operator),
|
| 259 |
+
(r'\b(mod|lt|le|eq|ne|ge|gt|not|and|or|xor)\b', Operator),
|
| 260 |
+
(r'"[^\"]*"', String.Double),
|
| 261 |
+
(r"'[^\']*'", String.Single),
|
| 262 |
+
(r'\b[+\-]?([0-9]*\.[0-9]+|[0-9]+\.[0-9]*)(D|E)?([+\-]?[0-9]+)?\b',
|
| 263 |
+
Number.Float),
|
| 264 |
+
(r'\b\'[+\-]?[0-9A-F]+\'X(U?(S?|L{1,2})|B)\b', Number.Hex),
|
| 265 |
+
(r'\b\'[+\-]?[0-7]+\'O(U?(S?|L{1,2})|B)\b', Number.Oct),
|
| 266 |
+
(r'\b[+\-]?[0-9]+U?L{1,2}\b', Number.Integer.Long),
|
| 267 |
+
(r'\b[+\-]?[0-9]+U?S?\b', Number.Integer),
|
| 268 |
+
(r'\b[+\-]?[0-9]+B\b', Number),
|
| 269 |
+
(r'[ \t]+', Whitespace),
|
| 270 |
+
(r'\n', Whitespace),
|
| 271 |
+
(r'.', Text),
|
| 272 |
+
]
|
| 273 |
+
}
|
| 274 |
+
|
| 275 |
+
def analyse_text(text):
|
| 276 |
+
"""endelse seems to be unique to IDL, endswitch is rare at least."""
|
| 277 |
+
result = 0
|
| 278 |
+
|
| 279 |
+
if 'endelse' in text:
|
| 280 |
+
result += 0.2
|
| 281 |
+
if 'endswitch' in text:
|
| 282 |
+
result += 0.01
|
| 283 |
+
|
| 284 |
+
return result
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/javascript.py
ADDED
|
@@ -0,0 +1,1591 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pygments.lexers.javascript
|
| 3 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
Lexers for JavaScript and related languages.
|
| 6 |
+
|
| 7 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 8 |
+
:license: BSD, see LICENSE for details.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
import re
|
| 12 |
+
|
| 13 |
+
from pygments.lexer import bygroups, combined, default, do_insertions, include, \
|
| 14 |
+
inherit, Lexer, RegexLexer, this, using, words, line_re
|
| 15 |
+
from pygments.token import Text, Comment, Operator, Keyword, Name, String, \
|
| 16 |
+
Number, Punctuation, Other, Generic, Whitespace
|
| 17 |
+
from pygments.util import get_bool_opt
|
| 18 |
+
import pygments.unistring as uni
|
| 19 |
+
|
| 20 |
+
__all__ = ['JavascriptLexer', 'KalLexer', 'LiveScriptLexer', 'DartLexer',
|
| 21 |
+
'TypeScriptLexer', 'LassoLexer', 'ObjectiveJLexer',
|
| 22 |
+
'CoffeeScriptLexer', 'MaskLexer', 'EarlGreyLexer', 'JuttleLexer',
|
| 23 |
+
'NodeConsoleLexer']
|
| 24 |
+
|
| 25 |
+
JS_IDENT_START = ('(?:[$_' + uni.combine('Lu', 'Ll', 'Lt', 'Lm', 'Lo', 'Nl') +
|
| 26 |
+
']|\\\\u[a-fA-F0-9]{4})')
|
| 27 |
+
JS_IDENT_PART = ('(?:[$' + uni.combine('Lu', 'Ll', 'Lt', 'Lm', 'Lo', 'Nl',
|
| 28 |
+
'Mn', 'Mc', 'Nd', 'Pc') +
|
| 29 |
+
'\u200c\u200d]|\\\\u[a-fA-F0-9]{4})')
|
| 30 |
+
JS_IDENT = JS_IDENT_START + '(?:' + JS_IDENT_PART + ')*'
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
class JavascriptLexer(RegexLexer):
|
| 34 |
+
"""
|
| 35 |
+
For JavaScript source code.
|
| 36 |
+
"""
|
| 37 |
+
|
| 38 |
+
name = 'JavaScript'
|
| 39 |
+
url = 'https://www.ecma-international.org/publications-and-standards/standards/ecma-262/'
|
| 40 |
+
aliases = ['javascript', 'js']
|
| 41 |
+
filenames = ['*.js', '*.jsm', '*.mjs', '*.cjs']
|
| 42 |
+
mimetypes = ['application/javascript', 'application/x-javascript',
|
| 43 |
+
'text/x-javascript', 'text/javascript']
|
| 44 |
+
version_added = ''
|
| 45 |
+
|
| 46 |
+
flags = re.DOTALL | re.MULTILINE
|
| 47 |
+
|
| 48 |
+
tokens = {
|
| 49 |
+
'commentsandwhitespace': [
|
| 50 |
+
(r'\s+', Whitespace),
|
| 51 |
+
(r'<!--', Comment),
|
| 52 |
+
(r'//.*?$', Comment.Single),
|
| 53 |
+
(r'/\*.*?\*/', Comment.Multiline)
|
| 54 |
+
],
|
| 55 |
+
'slashstartsregex': [
|
| 56 |
+
include('commentsandwhitespace'),
|
| 57 |
+
(r'/(\\.|[^[/\\\n]|\[(\\.|[^\]\\\n])*])+/'
|
| 58 |
+
r'([gimuysd]+\b|\B)', String.Regex, '#pop'),
|
| 59 |
+
(r'(?=/)', Text, ('#pop', 'badregex')),
|
| 60 |
+
default('#pop')
|
| 61 |
+
],
|
| 62 |
+
'badregex': [
|
| 63 |
+
(r'\n', Whitespace, '#pop')
|
| 64 |
+
],
|
| 65 |
+
'root': [
|
| 66 |
+
(r'\A#! ?/.*?$', Comment.Hashbang), # recognized by node.js
|
| 67 |
+
(r'^(?=\s|/|<!--)', Text, 'slashstartsregex'),
|
| 68 |
+
include('commentsandwhitespace'),
|
| 69 |
+
|
| 70 |
+
# Numeric literals
|
| 71 |
+
(r'0[bB][01]+n?', Number.Bin),
|
| 72 |
+
(r'0[oO]?[0-7]+n?', Number.Oct), # Browsers support "0o7" and "07" (< ES5) notations
|
| 73 |
+
(r'0[xX][0-9a-fA-F]+n?', Number.Hex),
|
| 74 |
+
(r'[0-9]+n', Number.Integer), # Javascript BigInt requires an "n" postfix
|
| 75 |
+
# Javascript doesn't have actual integer literals, so every other
|
| 76 |
+
# numeric literal is handled by the regex below (including "normal")
|
| 77 |
+
# integers
|
| 78 |
+
(r'(\.[0-9]+|[0-9]+\.[0-9]*|[0-9]+)([eE][-+]?[0-9]+)?', Number.Float),
|
| 79 |
+
|
| 80 |
+
(r'\.\.\.|=>', Punctuation),
|
| 81 |
+
(r'\+\+|--|~|\?\?=?|\?|:|\\(?=\n)|'
|
| 82 |
+
r'(<<|>>>?|==?|!=?|(?:\*\*|\|\||&&|[-<>+*%&|^/]))=?', Operator, 'slashstartsregex'),
|
| 83 |
+
(r'[{(\[;,]', Punctuation, 'slashstartsregex'),
|
| 84 |
+
(r'[})\].]', Punctuation),
|
| 85 |
+
|
| 86 |
+
(r'(typeof|instanceof|in|void|delete|new)\b', Operator.Word, 'slashstartsregex'),
|
| 87 |
+
|
| 88 |
+
# Match stuff like: constructor
|
| 89 |
+
(r'\b(constructor|from|as)\b', Keyword.Reserved),
|
| 90 |
+
|
| 91 |
+
(r'(for|in|while|do|break|return|continue|switch|case|default|if|else|'
|
| 92 |
+
r'throw|try|catch|finally|yield|await|async|this|of|static|export|'
|
| 93 |
+
r'import|debugger|extends|super)\b', Keyword, 'slashstartsregex'),
|
| 94 |
+
(r'(var|let|const|with|function|class)\b', Keyword.Declaration, 'slashstartsregex'),
|
| 95 |
+
|
| 96 |
+
(r'(abstract|boolean|byte|char|double|enum|final|float|goto|'
|
| 97 |
+
r'implements|int|interface|long|native|package|private|protected|'
|
| 98 |
+
r'public|short|synchronized|throws|transient|volatile)\b', Keyword.Reserved),
|
| 99 |
+
(r'(true|false|null|NaN|Infinity|undefined)\b', Keyword.Constant),
|
| 100 |
+
|
| 101 |
+
(r'(Array|Boolean|Date|BigInt|Function|Math|ArrayBuffer|'
|
| 102 |
+
r'Number|Object|RegExp|String|Promise|Proxy|decodeURI|'
|
| 103 |
+
r'decodeURIComponent|encodeURI|encodeURIComponent|'
|
| 104 |
+
r'eval|isFinite|isNaN|parseFloat|parseInt|DataView|'
|
| 105 |
+
r'document|window|globalThis|global|Symbol|Intl|'
|
| 106 |
+
r'WeakSet|WeakMap|Set|Map|Reflect|JSON|Atomics|'
|
| 107 |
+
r'Int(?:8|16|32)Array|BigInt64Array|Float32Array|Float64Array|'
|
| 108 |
+
r'Uint8ClampedArray|Uint(?:8|16|32)Array|BigUint64Array)\b', Name.Builtin),
|
| 109 |
+
|
| 110 |
+
(r'((?:Eval|Internal|Range|Reference|Syntax|Type|URI)?Error)\b', Name.Exception),
|
| 111 |
+
|
| 112 |
+
# Match stuff like: super(argument, list)
|
| 113 |
+
(r'(super)(\s*)(\([\w,?.$\s]+\s*\))',
|
| 114 |
+
bygroups(Keyword, Whitespace), 'slashstartsregex'),
|
| 115 |
+
# Match stuff like: function() {...}
|
| 116 |
+
(r'([a-zA-Z_?.$][\w?.$]*)(?=\(\) \{)', Name.Other, 'slashstartsregex'),
|
| 117 |
+
|
| 118 |
+
(JS_IDENT, Name.Other),
|
| 119 |
+
(r'"(\\\\|\\[^\\]|[^"\\])*"', String.Double),
|
| 120 |
+
(r"'(\\\\|\\[^\\]|[^'\\])*'", String.Single),
|
| 121 |
+
(r'`', String.Backtick, 'interp'),
|
| 122 |
+
# private identifier
|
| 123 |
+
(r'#[a-zA-Z_]\w*', Name),
|
| 124 |
+
],
|
| 125 |
+
'interp': [
|
| 126 |
+
(r'`', String.Backtick, '#pop'),
|
| 127 |
+
(r'\\.', String.Backtick),
|
| 128 |
+
(r'\$\{', String.Interpol, 'interp-inside'),
|
| 129 |
+
(r'\$', String.Backtick),
|
| 130 |
+
(r'[^`\\$]+', String.Backtick),
|
| 131 |
+
],
|
| 132 |
+
'interp-inside': [
|
| 133 |
+
# TODO: should this include single-line comments and allow nesting strings?
|
| 134 |
+
(r'\}', String.Interpol, '#pop'),
|
| 135 |
+
include('root'),
|
| 136 |
+
],
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
class TypeScriptLexer(JavascriptLexer):
|
| 141 |
+
"""
|
| 142 |
+
For TypeScript source code.
|
| 143 |
+
"""
|
| 144 |
+
|
| 145 |
+
name = 'TypeScript'
|
| 146 |
+
url = 'https://www.typescriptlang.org/'
|
| 147 |
+
aliases = ['typescript', 'ts']
|
| 148 |
+
filenames = ['*.ts']
|
| 149 |
+
mimetypes = ['application/x-typescript', 'text/x-typescript']
|
| 150 |
+
version_added = '1.6'
|
| 151 |
+
|
| 152 |
+
# Higher priority than the TypoScriptLexer, as TypeScript is far more
|
| 153 |
+
# common these days
|
| 154 |
+
priority = 0.5
|
| 155 |
+
|
| 156 |
+
tokens = {
|
| 157 |
+
'root': [
|
| 158 |
+
(r'(abstract|implements|private|protected|public|readonly)\b',
|
| 159 |
+
Keyword, 'slashstartsregex'),
|
| 160 |
+
(r'(enum|interface|override)\b', Keyword.Declaration, 'slashstartsregex'),
|
| 161 |
+
(r'\b(declare|type)\b', Keyword.Reserved),
|
| 162 |
+
# Match variable type keywords
|
| 163 |
+
(r'\b(string|boolean|number)\b', Keyword.Type),
|
| 164 |
+
# Match stuff like: module name {...}
|
| 165 |
+
(r'\b(module)(\s*)([\w?.$]+)(\s*)',
|
| 166 |
+
bygroups(Keyword.Reserved, Whitespace, Name.Other, Whitespace), 'slashstartsregex'),
|
| 167 |
+
# Match stuff like: (function: return type)
|
| 168 |
+
(r'([\w?.$]+)(\s*)(:)(\s*)([\w?.$]+)',
|
| 169 |
+
bygroups(Name.Other, Whitespace, Operator, Whitespace, Keyword.Type)),
|
| 170 |
+
# Match stuff like: Decorators
|
| 171 |
+
(r'@' + JS_IDENT, Keyword.Declaration),
|
| 172 |
+
inherit,
|
| 173 |
+
# private identifier
|
| 174 |
+
(r'#[a-zA-Z_]\w*', Name),
|
| 175 |
+
],
|
| 176 |
+
}
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
class KalLexer(RegexLexer):
|
| 180 |
+
"""
|
| 181 |
+
For Kal source code.
|
| 182 |
+
"""
|
| 183 |
+
|
| 184 |
+
name = 'Kal'
|
| 185 |
+
url = 'http://rzimmerman.github.io/kal'
|
| 186 |
+
aliases = ['kal']
|
| 187 |
+
filenames = ['*.kal']
|
| 188 |
+
mimetypes = ['text/kal', 'application/kal']
|
| 189 |
+
version_added = '2.0'
|
| 190 |
+
|
| 191 |
+
flags = re.DOTALL
|
| 192 |
+
tokens = {
|
| 193 |
+
'commentsandwhitespace': [
|
| 194 |
+
(r'\s+', Whitespace),
|
| 195 |
+
(r'###[^#].*?###', Comment.Multiline),
|
| 196 |
+
(r'(#(?!##[^#]).*?)(\n)', bygroups(Comment.Single, Whitespace)),
|
| 197 |
+
],
|
| 198 |
+
'functiondef': [
|
| 199 |
+
(r'([$a-zA-Z_][\w$]*)(\s*)', bygroups(Name.Function, Whitespace),
|
| 200 |
+
'#pop'),
|
| 201 |
+
include('commentsandwhitespace'),
|
| 202 |
+
],
|
| 203 |
+
'classdef': [
|
| 204 |
+
(r'\b(inherits)(\s+)(from)\b',
|
| 205 |
+
bygroups(Keyword, Whitespace, Keyword)),
|
| 206 |
+
(r'([$a-zA-Z_][\w$]*)(?=\s*\n)', Name.Class, '#pop'),
|
| 207 |
+
(r'[$a-zA-Z_][\w$]*\b', Name.Class),
|
| 208 |
+
include('commentsandwhitespace'),
|
| 209 |
+
],
|
| 210 |
+
'listcomprehension': [
|
| 211 |
+
(r'\]', Punctuation, '#pop'),
|
| 212 |
+
(r'\b(property|value)\b', Keyword),
|
| 213 |
+
include('root'),
|
| 214 |
+
],
|
| 215 |
+
'waitfor': [
|
| 216 |
+
(r'\n', Whitespace, '#pop'),
|
| 217 |
+
(r'\bfrom\b', Keyword),
|
| 218 |
+
include('root'),
|
| 219 |
+
],
|
| 220 |
+
'root': [
|
| 221 |
+
include('commentsandwhitespace'),
|
| 222 |
+
(r'/(?! )(\\.|[^[/\\\n]|\[(\\.|[^\]\\\n])*])+/'
|
| 223 |
+
r'([gimuysd]+\b|\B)', String.Regex),
|
| 224 |
+
(r'\?|:|_(?=\n)|==?|!=|-(?!>)|[<>+*/-]=?',
|
| 225 |
+
Operator),
|
| 226 |
+
(r'\b(and|or|isnt|is|not|but|bitwise|mod|\^|xor|exists|'
|
| 227 |
+
r'doesnt\s+exist)\b', Operator.Word),
|
| 228 |
+
(r'(\([^()]+\))?(\s*)(>)',
|
| 229 |
+
bygroups(Name.Function, Whitespace, Punctuation)),
|
| 230 |
+
(r'[{(]', Punctuation),
|
| 231 |
+
(r'\[', Punctuation, 'listcomprehension'),
|
| 232 |
+
(r'[})\].,]', Punctuation),
|
| 233 |
+
(r'\b(function|method|task)\b', Keyword.Declaration, 'functiondef'),
|
| 234 |
+
(r'\bclass\b', Keyword.Declaration, 'classdef'),
|
| 235 |
+
(r'\b(safe(?=\s))?(\s*)(wait(?=\s))(\s+)(for)\b',
|
| 236 |
+
bygroups(Keyword, Whitespace, Keyword, Whitespace,
|
| 237 |
+
Keyword), 'waitfor'),
|
| 238 |
+
(r'\b(me|this)(\.[$a-zA-Z_][\w.$]*)?\b', Name.Variable.Instance),
|
| 239 |
+
(r'(?<![.$])(run)(\s+)(in)(\s+)(parallel)\b',
|
| 240 |
+
bygroups(Keyword, Whitespace, Keyword, Whitespace, Keyword)),
|
| 241 |
+
(r'(?<![.$])(for)(\s+)(parallel|series)?\b',
|
| 242 |
+
bygroups(Keyword, Whitespace, Keyword)),
|
| 243 |
+
(r'(?<![.$])(except)(\s+)(when)?\b',
|
| 244 |
+
bygroups(Keyword, Whitespace, Keyword)),
|
| 245 |
+
(r'(?<![.$])(fail)(\s+)(with)?\b',
|
| 246 |
+
bygroups(Keyword, Whitespace, Keyword)),
|
| 247 |
+
(r'(?<![.$])(inherits)(\s+)(from)?\b',
|
| 248 |
+
bygroups(Keyword, Whitespace, Keyword)),
|
| 249 |
+
(r'(?<![.$])(for)(\s+)(parallel|series)?\b',
|
| 250 |
+
bygroups(Keyword, Whitespace, Keyword)),
|
| 251 |
+
(words((
|
| 252 |
+
'in', 'of', 'while', 'until', 'break', 'return', 'continue',
|
| 253 |
+
'when', 'if', 'unless', 'else', 'otherwise', 'throw', 'raise',
|
| 254 |
+
'try', 'catch', 'finally', 'new', 'delete', 'typeof',
|
| 255 |
+
'instanceof', 'super'), prefix=r'(?<![.$])', suffix=r'\b'),
|
| 256 |
+
Keyword),
|
| 257 |
+
(words((
|
| 258 |
+
'true', 'false', 'yes', 'no', 'on', 'off', 'null', 'nothing',
|
| 259 |
+
'none', 'NaN', 'Infinity', 'undefined'), prefix=r'(?<![.$])',
|
| 260 |
+
suffix=r'\b'), Keyword.Constant),
|
| 261 |
+
(words((
|
| 262 |
+
'Array', 'Boolean', 'Date', 'Error', 'Function', 'Math',
|
| 263 |
+
'Number', 'Object', 'RegExp', 'String', 'decodeURI',
|
| 264 |
+
'decodeURIComponent', 'encodeURI', 'encodeURIComponent', 'eval',
|
| 265 |
+
'isFinite', 'isNaN', 'isSafeInteger', 'parseFloat', 'parseInt',
|
| 266 |
+
'document', 'window', 'globalThis', 'Symbol', 'print'),
|
| 267 |
+
suffix=r'\b'), Name.Builtin),
|
| 268 |
+
(r'([$a-zA-Z_][\w.$]*)(\s*)(:|[+\-*/]?\=)?\b',
|
| 269 |
+
bygroups(Name.Variable, Whitespace, Operator)),
|
| 270 |
+
(r'[0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?', Number.Float),
|
| 271 |
+
(r'0x[0-9a-fA-F]+', Number.Hex),
|
| 272 |
+
(r'[0-9]+', Number.Integer),
|
| 273 |
+
('"""', String, 'tdqs'),
|
| 274 |
+
("'''", String, 'tsqs'),
|
| 275 |
+
('"', String, 'dqs'),
|
| 276 |
+
("'", String, 'sqs'),
|
| 277 |
+
],
|
| 278 |
+
'strings': [
|
| 279 |
+
(r'[^#\\\'"]+', String),
|
| 280 |
+
# note that all kal strings are multi-line.
|
| 281 |
+
# hashmarks, quotes and backslashes must be parsed one at a time
|
| 282 |
+
],
|
| 283 |
+
'interpoling_string': [
|
| 284 |
+
(r'\}', String.Interpol, "#pop"),
|
| 285 |
+
include('root')
|
| 286 |
+
],
|
| 287 |
+
'dqs': [
|
| 288 |
+
(r'"', String, '#pop'),
|
| 289 |
+
(r'\\.|\'', String), # double-quoted string don't need ' escapes
|
| 290 |
+
(r'#\{', String.Interpol, "interpoling_string"),
|
| 291 |
+
include('strings')
|
| 292 |
+
],
|
| 293 |
+
'sqs': [
|
| 294 |
+
(r"'", String, '#pop'),
|
| 295 |
+
(r'#|\\.|"', String), # single quoted strings don't need " escapses
|
| 296 |
+
include('strings')
|
| 297 |
+
],
|
| 298 |
+
'tdqs': [
|
| 299 |
+
(r'"""', String, '#pop'),
|
| 300 |
+
(r'\\.|\'|"', String), # no need to escape quotes in triple-string
|
| 301 |
+
(r'#\{', String.Interpol, "interpoling_string"),
|
| 302 |
+
include('strings'),
|
| 303 |
+
],
|
| 304 |
+
'tsqs': [
|
| 305 |
+
(r"'''", String, '#pop'),
|
| 306 |
+
(r'#|\\.|\'|"', String), # no need to escape quotes in triple-strings
|
| 307 |
+
include('strings')
|
| 308 |
+
],
|
| 309 |
+
}
|
| 310 |
+
|
| 311 |
+
|
| 312 |
+
class LiveScriptLexer(RegexLexer):
|
| 313 |
+
"""
|
| 314 |
+
For LiveScript source code.
|
| 315 |
+
"""
|
| 316 |
+
|
| 317 |
+
name = 'LiveScript'
|
| 318 |
+
url = 'https://livescript.net/'
|
| 319 |
+
aliases = ['livescript', 'live-script']
|
| 320 |
+
filenames = ['*.ls']
|
| 321 |
+
mimetypes = ['text/livescript']
|
| 322 |
+
version_added = '1.6'
|
| 323 |
+
|
| 324 |
+
flags = re.DOTALL
|
| 325 |
+
tokens = {
|
| 326 |
+
'commentsandwhitespace': [
|
| 327 |
+
(r'\s+', Whitespace),
|
| 328 |
+
(r'/\*.*?\*/', Comment.Multiline),
|
| 329 |
+
(r'(#.*?)(\n)', bygroups(Comment.Single, Whitespace)),
|
| 330 |
+
],
|
| 331 |
+
'multilineregex': [
|
| 332 |
+
include('commentsandwhitespace'),
|
| 333 |
+
(r'//([gimuysd]+\b|\B)', String.Regex, '#pop'),
|
| 334 |
+
(r'/', String.Regex),
|
| 335 |
+
(r'[^/#]+', String.Regex)
|
| 336 |
+
],
|
| 337 |
+
'slashstartsregex': [
|
| 338 |
+
include('commentsandwhitespace'),
|
| 339 |
+
(r'//', String.Regex, ('#pop', 'multilineregex')),
|
| 340 |
+
(r'/(?! )(\\.|[^[/\\\n]|\[(\\.|[^\]\\\n])*])+/'
|
| 341 |
+
r'([gimuysd]+\b|\B)', String.Regex, '#pop'),
|
| 342 |
+
(r'/', Operator, '#pop'),
|
| 343 |
+
default('#pop'),
|
| 344 |
+
],
|
| 345 |
+
'root': [
|
| 346 |
+
(r'\A(?=\s|/)', Text, 'slashstartsregex'),
|
| 347 |
+
include('commentsandwhitespace'),
|
| 348 |
+
(r'(?:\([^()]+\))?[ ]*[~-]{1,2}>|'
|
| 349 |
+
r'(?:\(?[^()\n]+\)?)?[ ]*<[~-]{1,2}', Name.Function),
|
| 350 |
+
(r'\+\+|&&|(?<![.$])\b(?:and|x?or|is|isnt|not)\b|\?|:|=|'
|
| 351 |
+
r'\|\||\\(?=\n)|(<<|>>>?|==?|!=?|'
|
| 352 |
+
r'~(?!\~?>)|-(?!\-?>)|<(?!\[)|(?<!\])>|'
|
| 353 |
+
r'[+*`%&|^/])=?',
|
| 354 |
+
Operator, 'slashstartsregex'),
|
| 355 |
+
(r'[{(\[;,]', Punctuation, 'slashstartsregex'),
|
| 356 |
+
(r'[})\].]', Punctuation),
|
| 357 |
+
(r'(?<![.$])(for|own|in|of|while|until|loop|break|'
|
| 358 |
+
r'return|continue|switch|when|then|if|unless|else|'
|
| 359 |
+
r'throw|try|catch|finally|new|delete|typeof|instanceof|super|'
|
| 360 |
+
r'extends|this|class|by|const|var|to|til)\b', Keyword,
|
| 361 |
+
'slashstartsregex'),
|
| 362 |
+
(r'(?<![.$])(true|false|yes|no|on|off|'
|
| 363 |
+
r'null|NaN|Infinity|undefined|void)\b',
|
| 364 |
+
Keyword.Constant),
|
| 365 |
+
(r'(Array|Boolean|Date|Error|Function|Math|'
|
| 366 |
+
r'Number|Object|RegExp|String|decodeURI|'
|
| 367 |
+
r'decodeURIComponent|encodeURI|encodeURIComponent|'
|
| 368 |
+
r'eval|isFinite|isNaN|parseFloat|parseInt|document|window|'
|
| 369 |
+
r'globalThis|Symbol|Symbol|BigInt)\b', Name.Builtin),
|
| 370 |
+
(r'([$a-zA-Z_][\w.\-:$]*)(\s*)([:=])(\s+)',
|
| 371 |
+
bygroups(Name.Variable, Whitespace, Operator, Whitespace),
|
| 372 |
+
'slashstartsregex'),
|
| 373 |
+
(r'(@[$a-zA-Z_][\w.\-:$]*)(\s*)([:=])(\s+)',
|
| 374 |
+
bygroups(Name.Variable.Instance, Whitespace, Operator,
|
| 375 |
+
Whitespace),
|
| 376 |
+
'slashstartsregex'),
|
| 377 |
+
(r'@', Name.Other, 'slashstartsregex'),
|
| 378 |
+
(r'@?[$a-zA-Z_][\w-]*', Name.Other, 'slashstartsregex'),
|
| 379 |
+
(r'[0-9]+\.[0-9]+([eE][0-9]+)?[fd]?(?:[a-zA-Z_]+)?', Number.Float),
|
| 380 |
+
(r'[0-9]+(~[0-9a-z]+)?(?:[a-zA-Z_]+)?', Number.Integer),
|
| 381 |
+
('"""', String, 'tdqs'),
|
| 382 |
+
("'''", String, 'tsqs'),
|
| 383 |
+
('"', String, 'dqs'),
|
| 384 |
+
("'", String, 'sqs'),
|
| 385 |
+
(r'\\\S+', String),
|
| 386 |
+
(r'<\[.*?\]>', String),
|
| 387 |
+
],
|
| 388 |
+
'strings': [
|
| 389 |
+
(r'[^#\\\'"]+', String),
|
| 390 |
+
# note that all coffee script strings are multi-line.
|
| 391 |
+
# hashmarks, quotes and backslashes must be parsed one at a time
|
| 392 |
+
],
|
| 393 |
+
'interpoling_string': [
|
| 394 |
+
(r'\}', String.Interpol, "#pop"),
|
| 395 |
+
include('root')
|
| 396 |
+
],
|
| 397 |
+
'dqs': [
|
| 398 |
+
(r'"', String, '#pop'),
|
| 399 |
+
(r'\\.|\'', String), # double-quoted string don't need ' escapes
|
| 400 |
+
(r'#\{', String.Interpol, "interpoling_string"),
|
| 401 |
+
(r'#', String),
|
| 402 |
+
include('strings')
|
| 403 |
+
],
|
| 404 |
+
'sqs': [
|
| 405 |
+
(r"'", String, '#pop'),
|
| 406 |
+
(r'#|\\.|"', String), # single quoted strings don't need " escapses
|
| 407 |
+
include('strings')
|
| 408 |
+
],
|
| 409 |
+
'tdqs': [
|
| 410 |
+
(r'"""', String, '#pop'),
|
| 411 |
+
(r'\\.|\'|"', String), # no need to escape quotes in triple-string
|
| 412 |
+
(r'#\{', String.Interpol, "interpoling_string"),
|
| 413 |
+
(r'#', String),
|
| 414 |
+
include('strings'),
|
| 415 |
+
],
|
| 416 |
+
'tsqs': [
|
| 417 |
+
(r"'''", String, '#pop'),
|
| 418 |
+
(r'#|\\.|\'|"', String), # no need to escape quotes in triple-strings
|
| 419 |
+
include('strings')
|
| 420 |
+
],
|
| 421 |
+
}
|
| 422 |
+
|
| 423 |
+
|
| 424 |
+
class DartLexer(RegexLexer):
|
| 425 |
+
"""
|
| 426 |
+
For Dart source code.
|
| 427 |
+
"""
|
| 428 |
+
|
| 429 |
+
name = 'Dart'
|
| 430 |
+
url = 'http://dart.dev/'
|
| 431 |
+
aliases = ['dart']
|
| 432 |
+
filenames = ['*.dart']
|
| 433 |
+
mimetypes = ['text/x-dart']
|
| 434 |
+
version_added = '1.5'
|
| 435 |
+
|
| 436 |
+
flags = re.MULTILINE | re.DOTALL
|
| 437 |
+
|
| 438 |
+
tokens = {
|
| 439 |
+
'root': [
|
| 440 |
+
include('string_literal'),
|
| 441 |
+
(r'#!(.*?)$', Comment.Preproc),
|
| 442 |
+
(r'\b(import|export)\b', Keyword, 'import_decl'),
|
| 443 |
+
(r'\b(library|source|part of|part)\b', Keyword),
|
| 444 |
+
(r'[^\S\n]+', Whitespace),
|
| 445 |
+
(r'(//.*?)(\n)', bygroups(Comment.Single, Whitespace)),
|
| 446 |
+
(r'/\*.*?\*/', Comment.Multiline),
|
| 447 |
+
(r'\b(class|extension|mixin)\b(\s+)',
|
| 448 |
+
bygroups(Keyword.Declaration, Whitespace), 'class'),
|
| 449 |
+
(r'\b(as|assert|break|case|catch|const|continue|default|do|else|finally|'
|
| 450 |
+
r'for|if|in|is|new|rethrow|return|super|switch|this|throw|try|while)\b',
|
| 451 |
+
Keyword),
|
| 452 |
+
(r'\b(abstract|async|await|const|covariant|extends|external|factory|final|'
|
| 453 |
+
r'get|implements|late|native|on|operator|required|set|static|sync|typedef|'
|
| 454 |
+
r'var|with|yield)\b', Keyword.Declaration),
|
| 455 |
+
(r'\b(bool|double|dynamic|int|num|Function|Never|Null|Object|String|void)\b',
|
| 456 |
+
Keyword.Type),
|
| 457 |
+
(r'\b(false|null|true)\b', Keyword.Constant),
|
| 458 |
+
(r'[~!%^&*+=|?:<>/-]|as\b', Operator),
|
| 459 |
+
(r'@[a-zA-Z_$]\w*', Name.Decorator),
|
| 460 |
+
(r'[a-zA-Z_$]\w*:', Name.Label),
|
| 461 |
+
(r'[a-zA-Z_$]\w*', Name),
|
| 462 |
+
(r'[(){}\[\],.;]', Punctuation),
|
| 463 |
+
(r'0[xX][0-9a-fA-F]+', Number.Hex),
|
| 464 |
+
# DIGIT+ (‘.’ DIGIT*)? EXPONENT?
|
| 465 |
+
(r'\d+(\.\d*)?([eE][+-]?\d+)?', Number),
|
| 466 |
+
(r'\.\d+([eE][+-]?\d+)?', Number), # ‘.’ DIGIT+ EXPONENT?
|
| 467 |
+
(r'\n', Whitespace)
|
| 468 |
+
# pseudo-keyword negate intentionally left out
|
| 469 |
+
],
|
| 470 |
+
'class': [
|
| 471 |
+
(r'[a-zA-Z_$]\w*', Name.Class, '#pop')
|
| 472 |
+
],
|
| 473 |
+
'import_decl': [
|
| 474 |
+
include('string_literal'),
|
| 475 |
+
(r'\s+', Whitespace),
|
| 476 |
+
(r'\b(as|deferred|show|hide)\b', Keyword),
|
| 477 |
+
(r'[a-zA-Z_$]\w*', Name),
|
| 478 |
+
(r'\,', Punctuation),
|
| 479 |
+
(r'\;', Punctuation, '#pop')
|
| 480 |
+
],
|
| 481 |
+
'string_literal': [
|
| 482 |
+
# Raw strings.
|
| 483 |
+
(r'r"""([\w\W]*?)"""', String.Double),
|
| 484 |
+
(r"r'''([\w\W]*?)'''", String.Single),
|
| 485 |
+
(r'r"(.*?)"', String.Double),
|
| 486 |
+
(r"r'(.*?)'", String.Single),
|
| 487 |
+
# Normal Strings.
|
| 488 |
+
(r'"""', String.Double, 'string_double_multiline'),
|
| 489 |
+
(r"'''", String.Single, 'string_single_multiline'),
|
| 490 |
+
(r'"', String.Double, 'string_double'),
|
| 491 |
+
(r"'", String.Single, 'string_single')
|
| 492 |
+
],
|
| 493 |
+
'string_common': [
|
| 494 |
+
(r"\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|u\{[0-9A-Fa-f]*\}|[a-z'\"$\\])",
|
| 495 |
+
String.Escape),
|
| 496 |
+
(r'(\$)([a-zA-Z_]\w*)', bygroups(String.Interpol, Name)),
|
| 497 |
+
(r'(\$\{)(.*?)(\})',
|
| 498 |
+
bygroups(String.Interpol, using(this), String.Interpol))
|
| 499 |
+
],
|
| 500 |
+
'string_double': [
|
| 501 |
+
(r'"', String.Double, '#pop'),
|
| 502 |
+
(r'[^"$\\\n]+', String.Double),
|
| 503 |
+
include('string_common'),
|
| 504 |
+
(r'\$+', String.Double)
|
| 505 |
+
],
|
| 506 |
+
'string_double_multiline': [
|
| 507 |
+
(r'"""', String.Double, '#pop'),
|
| 508 |
+
(r'[^"$\\]+', String.Double),
|
| 509 |
+
include('string_common'),
|
| 510 |
+
(r'(\$|\")+', String.Double)
|
| 511 |
+
],
|
| 512 |
+
'string_single': [
|
| 513 |
+
(r"'", String.Single, '#pop'),
|
| 514 |
+
(r"[^'$\\\n]+", String.Single),
|
| 515 |
+
include('string_common'),
|
| 516 |
+
(r'\$+', String.Single)
|
| 517 |
+
],
|
| 518 |
+
'string_single_multiline': [
|
| 519 |
+
(r"'''", String.Single, '#pop'),
|
| 520 |
+
(r'[^\'$\\]+', String.Single),
|
| 521 |
+
include('string_common'),
|
| 522 |
+
(r'(\$|\')+', String.Single)
|
| 523 |
+
]
|
| 524 |
+
}
|
| 525 |
+
|
| 526 |
+
|
| 527 |
+
class LassoLexer(RegexLexer):
|
| 528 |
+
"""
|
| 529 |
+
For Lasso source code, covering both Lasso 9
|
| 530 |
+
syntax and LassoScript for Lasso 8.6 and earlier. For Lasso embedded in
|
| 531 |
+
HTML, use the `LassoHtmlLexer`.
|
| 532 |
+
|
| 533 |
+
Additional options accepted:
|
| 534 |
+
|
| 535 |
+
`builtinshighlighting`
|
| 536 |
+
If given and ``True``, highlight builtin types, traits, methods, and
|
| 537 |
+
members (default: ``True``).
|
| 538 |
+
`requiredelimiters`
|
| 539 |
+
If given and ``True``, only highlight code between delimiters as Lasso
|
| 540 |
+
(default: ``False``).
|
| 541 |
+
"""
|
| 542 |
+
|
| 543 |
+
name = 'Lasso'
|
| 544 |
+
aliases = ['lasso', 'lassoscript']
|
| 545 |
+
filenames = ['*.lasso', '*.lasso[89]']
|
| 546 |
+
version_added = '1.6'
|
| 547 |
+
alias_filenames = ['*.incl', '*.inc', '*.las']
|
| 548 |
+
mimetypes = ['text/x-lasso']
|
| 549 |
+
url = 'https://www.lassosoft.com'
|
| 550 |
+
|
| 551 |
+
flags = re.IGNORECASE | re.DOTALL | re.MULTILINE
|
| 552 |
+
|
| 553 |
+
tokens = {
|
| 554 |
+
'root': [
|
| 555 |
+
(r'^#![ \S]+lasso9\b', Comment.Preproc, 'lasso'),
|
| 556 |
+
(r'(?=\[|<)', Other, 'delimiters'),
|
| 557 |
+
(r'\s+', Whitespace),
|
| 558 |
+
default(('delimiters', 'lassofile')),
|
| 559 |
+
],
|
| 560 |
+
'delimiters': [
|
| 561 |
+
(r'\[no_square_brackets\]', Comment.Preproc, 'nosquarebrackets'),
|
| 562 |
+
(r'\[noprocess\]', Comment.Preproc, 'noprocess'),
|
| 563 |
+
(r'\[', Comment.Preproc, 'squarebrackets'),
|
| 564 |
+
(r'<\?(lasso(script)?|=)', Comment.Preproc, 'anglebrackets'),
|
| 565 |
+
(r'<(!--.*?-->)?', Other),
|
| 566 |
+
(r'[^[<]+', Other),
|
| 567 |
+
],
|
| 568 |
+
'nosquarebrackets': [
|
| 569 |
+
(r'\[noprocess\]', Comment.Preproc, 'noprocess'),
|
| 570 |
+
(r'\[', Other),
|
| 571 |
+
(r'<\?(lasso(script)?|=)', Comment.Preproc, 'anglebrackets'),
|
| 572 |
+
(r'<(!--.*?-->)?', Other),
|
| 573 |
+
(r'[^[<]+', Other),
|
| 574 |
+
],
|
| 575 |
+
'noprocess': [
|
| 576 |
+
(r'\[/noprocess\]', Comment.Preproc, '#pop'),
|
| 577 |
+
(r'\[', Other),
|
| 578 |
+
(r'[^[]', Other),
|
| 579 |
+
],
|
| 580 |
+
'squarebrackets': [
|
| 581 |
+
(r'\]', Comment.Preproc, '#pop'),
|
| 582 |
+
include('lasso'),
|
| 583 |
+
],
|
| 584 |
+
'anglebrackets': [
|
| 585 |
+
(r'\?>', Comment.Preproc, '#pop'),
|
| 586 |
+
include('lasso'),
|
| 587 |
+
],
|
| 588 |
+
'lassofile': [
|
| 589 |
+
(r'\]|\?>', Comment.Preproc, '#pop'),
|
| 590 |
+
include('lasso'),
|
| 591 |
+
],
|
| 592 |
+
'whitespacecomments': [
|
| 593 |
+
(r'\s+', Whitespace),
|
| 594 |
+
(r'(//.*?)(\s*)$', bygroups(Comment.Single, Whitespace)),
|
| 595 |
+
(r'/\*\*!.*?\*/', String.Doc),
|
| 596 |
+
(r'/\*.*?\*/', Comment.Multiline),
|
| 597 |
+
],
|
| 598 |
+
'lasso': [
|
| 599 |
+
# whitespace/comments
|
| 600 |
+
include('whitespacecomments'),
|
| 601 |
+
|
| 602 |
+
# literals
|
| 603 |
+
(r'\d*\.\d+(e[+-]?\d+)?', Number.Float),
|
| 604 |
+
(r'0x[\da-f]+', Number.Hex),
|
| 605 |
+
(r'\d+', Number.Integer),
|
| 606 |
+
(r'(infinity|NaN)\b', Number),
|
| 607 |
+
(r"'", String.Single, 'singlestring'),
|
| 608 |
+
(r'"', String.Double, 'doublestring'),
|
| 609 |
+
(r'`[^`]*`', String.Backtick),
|
| 610 |
+
|
| 611 |
+
# names
|
| 612 |
+
(r'\$[a-z_][\w.]*', Name.Variable),
|
| 613 |
+
(r'#([a-z_][\w.]*|\d+\b)', Name.Variable.Instance),
|
| 614 |
+
(r"(\.)(\s*)('[a-z_][\w.]*')",
|
| 615 |
+
bygroups(Name.Builtin.Pseudo, Whitespace, Name.Variable.Class)),
|
| 616 |
+
(r"(self)(\s*)(->)(\s*)('[a-z_][\w.]*')",
|
| 617 |
+
bygroups(Name.Builtin.Pseudo, Whitespace, Operator, Whitespace,
|
| 618 |
+
Name.Variable.Class)),
|
| 619 |
+
(r'(\.\.?)(\s*)([a-z_][\w.]*(=(?!=))?)',
|
| 620 |
+
bygroups(Name.Builtin.Pseudo, Whitespace, Name.Other.Member)),
|
| 621 |
+
(r'(->\\?|&)(\s*)([a-z_][\w.]*(=(?!=))?)',
|
| 622 |
+
bygroups(Operator, Whitespace, Name.Other.Member)),
|
| 623 |
+
(r'(?<!->)(self|inherited|currentcapture|givenblock)\b',
|
| 624 |
+
Name.Builtin.Pseudo),
|
| 625 |
+
(r'-(?!infinity)[a-z_][\w.]*', Name.Attribute),
|
| 626 |
+
(r'(::)(\s*)([a-z_][\w.]*)',
|
| 627 |
+
bygroups(Punctuation, Whitespace, Name.Label)),
|
| 628 |
+
(r'(error_(code|msg)_\w+|Error_AddError|Error_ColumnRestriction|'
|
| 629 |
+
r'Error_DatabaseConnectionUnavailable|Error_DatabaseTimeout|'
|
| 630 |
+
r'Error_DeleteError|Error_FieldRestriction|Error_FileNotFound|'
|
| 631 |
+
r'Error_InvalidDatabase|Error_InvalidPassword|'
|
| 632 |
+
r'Error_InvalidUsername|Error_ModuleNotFound|'
|
| 633 |
+
r'Error_NoError|Error_NoPermission|Error_OutOfMemory|'
|
| 634 |
+
r'Error_ReqColumnMissing|Error_ReqFieldMissing|'
|
| 635 |
+
r'Error_RequiredColumnMissing|Error_RequiredFieldMissing|'
|
| 636 |
+
r'Error_UpdateError)\b', Name.Exception),
|
| 637 |
+
|
| 638 |
+
# definitions
|
| 639 |
+
(r'(define)(\s+)([a-z_][\w.]*)(\s*)(=>)(\s*)(type|trait|thread)\b',
|
| 640 |
+
bygroups(Keyword.Declaration, Whitespace, Name.Class,
|
| 641 |
+
Whitespace, Operator, Whitespace, Keyword)),
|
| 642 |
+
(r'(define)(\s+)([a-z_][\w.]*)(\s*)(->)(\s*)([a-z_][\w.]*=?|[-+*/%])',
|
| 643 |
+
bygroups(Keyword.Declaration, Whitespace, Name.Class,
|
| 644 |
+
Whitespace, Operator, Whitespace, Name.Function),
|
| 645 |
+
'signature'),
|
| 646 |
+
(r'(define)(\s+)([a-z_][\w.]*)',
|
| 647 |
+
bygroups(Keyword.Declaration, Whitespace, Name.Function), 'signature'),
|
| 648 |
+
(r'(public|protected|private|provide)(\s+)(([a-z_][\w.]*=?|[-+*/%])'
|
| 649 |
+
r'(?=\s*\())', bygroups(Keyword, Whitespace, Name.Function),
|
| 650 |
+
'signature'),
|
| 651 |
+
(r'(public|protected|private|provide)(\s+)([a-z_][\w.]*)',
|
| 652 |
+
bygroups(Keyword, Whitespace, Name.Function)),
|
| 653 |
+
|
| 654 |
+
# keywords
|
| 655 |
+
(r'(true|false|none|minimal|full|all|void)\b', Keyword.Constant),
|
| 656 |
+
(r'(local|var|variable|global|data(?=\s))\b', Keyword.Declaration),
|
| 657 |
+
(r'(array|date|decimal|duration|integer|map|pair|string|tag|xml|'
|
| 658 |
+
r'null|boolean|bytes|keyword|list|locale|queue|set|stack|'
|
| 659 |
+
r'staticarray)\b', Keyword.Type),
|
| 660 |
+
(r'([a-z_][\w.]*)(\s+)(in)\b', bygroups(Name, Whitespace, Keyword)),
|
| 661 |
+
(r'(let|into)(\s+)([a-z_][\w.]*)', bygroups(Keyword, Whitespace, Name)),
|
| 662 |
+
(r'require\b', Keyword, 'requiresection'),
|
| 663 |
+
(r'(/?)(Namespace_Using)\b', bygroups(Punctuation, Keyword.Namespace)),
|
| 664 |
+
(r'(/?)(Cache|Database_Names|Database_SchemaNames|'
|
| 665 |
+
r'Database_TableNames|Define_Tag|Define_Type|Email_Batch|'
|
| 666 |
+
r'Encode_Set|HTML_Comment|Handle|Handle_Error|Header|If|Inline|'
|
| 667 |
+
r'Iterate|LJAX_Target|Link|Link_CurrentAction|Link_CurrentGroup|'
|
| 668 |
+
r'Link_CurrentRecord|Link_Detail|Link_FirstGroup|Link_FirstRecord|'
|
| 669 |
+
r'Link_LastGroup|Link_LastRecord|Link_NextGroup|Link_NextRecord|'
|
| 670 |
+
r'Link_PrevGroup|Link_PrevRecord|Log|Loop|Output_None|Portal|'
|
| 671 |
+
r'Private|Protect|Records|Referer|Referrer|Repeating|ResultSet|'
|
| 672 |
+
r'Rows|Search_Args|Search_Arguments|Select|Sort_Args|'
|
| 673 |
+
r'Sort_Arguments|Thread_Atomic|Value_List|While|Abort|Case|Else|'
|
| 674 |
+
r'Fail_If|Fail_IfNot|Fail|If_Empty|If_False|If_Null|If_True|'
|
| 675 |
+
r'Loop_Abort|Loop_Continue|Loop_Count|Params|Params_Up|Return|'
|
| 676 |
+
r'Return_Value|Run_Children|SOAP_DefineTag|SOAP_LastRequest|'
|
| 677 |
+
r'SOAP_LastResponse|Tag_Name|ascending|average|by|define|'
|
| 678 |
+
r'descending|do|equals|frozen|group|handle_failure|import|in|into|'
|
| 679 |
+
r'join|let|match|max|min|on|order|parent|protected|provide|public|'
|
| 680 |
+
r'require|returnhome|skip|split_thread|sum|take|thread|to|trait|'
|
| 681 |
+
r'type|where|with|yield|yieldhome)\b',
|
| 682 |
+
bygroups(Punctuation, Keyword)),
|
| 683 |
+
|
| 684 |
+
# other
|
| 685 |
+
(r',', Punctuation, 'commamember'),
|
| 686 |
+
(r'(and|or|not)\b', Operator.Word),
|
| 687 |
+
(r'([a-z_][\w.]*)(\s*)(::)(\s*)([a-z_][\w.]*)?(\s*=(?!=))',
|
| 688 |
+
bygroups(Name, Whitespace, Punctuation, Whitespace, Name.Label,
|
| 689 |
+
Operator)),
|
| 690 |
+
(r'(/?)([\w.]+)', bygroups(Punctuation, Name.Other)),
|
| 691 |
+
(r'(=)(n?bw|n?ew|n?cn|lte?|gte?|n?eq|n?rx|ft)\b',
|
| 692 |
+
bygroups(Operator, Operator.Word)),
|
| 693 |
+
(r':=|[-+*/%=<>&|!?\\]+', Operator),
|
| 694 |
+
(r'[{}():;,@^]', Punctuation),
|
| 695 |
+
],
|
| 696 |
+
'singlestring': [
|
| 697 |
+
(r"'", String.Single, '#pop'),
|
| 698 |
+
(r"[^'\\]+", String.Single),
|
| 699 |
+
include('escape'),
|
| 700 |
+
(r"\\", String.Single),
|
| 701 |
+
],
|
| 702 |
+
'doublestring': [
|
| 703 |
+
(r'"', String.Double, '#pop'),
|
| 704 |
+
(r'[^"\\]+', String.Double),
|
| 705 |
+
include('escape'),
|
| 706 |
+
(r'\\', String.Double),
|
| 707 |
+
],
|
| 708 |
+
'escape': [
|
| 709 |
+
(r'\\(U[\da-f]{8}|u[\da-f]{4}|x[\da-f]{1,2}|[0-7]{1,3}|:[^:\n\r]+:|'
|
| 710 |
+
r'[abefnrtv?"\'\\]|$)', String.Escape),
|
| 711 |
+
],
|
| 712 |
+
'signature': [
|
| 713 |
+
(r'=>', Operator, '#pop'),
|
| 714 |
+
(r'\)', Punctuation, '#pop'),
|
| 715 |
+
(r'[(,]', Punctuation, 'parameter'),
|
| 716 |
+
include('lasso'),
|
| 717 |
+
],
|
| 718 |
+
'parameter': [
|
| 719 |
+
(r'\)', Punctuation, '#pop'),
|
| 720 |
+
(r'-?[a-z_][\w.]*', Name.Attribute, '#pop'),
|
| 721 |
+
(r'\.\.\.', Name.Builtin.Pseudo),
|
| 722 |
+
include('lasso'),
|
| 723 |
+
],
|
| 724 |
+
'requiresection': [
|
| 725 |
+
(r'(([a-z_][\w.]*=?|[-+*/%])(?=\s*\())', Name, 'requiresignature'),
|
| 726 |
+
(r'(([a-z_][\w.]*=?|[-+*/%])(?=(\s*::\s*[\w.]+)?\s*,))', Name),
|
| 727 |
+
(r'[a-z_][\w.]*=?|[-+*/%]', Name, '#pop'),
|
| 728 |
+
(r'(::)(\s*)([a-z_][\w.]*)',
|
| 729 |
+
bygroups(Punctuation, Whitespace, Name.Label)),
|
| 730 |
+
(r',', Punctuation),
|
| 731 |
+
include('whitespacecomments'),
|
| 732 |
+
],
|
| 733 |
+
'requiresignature': [
|
| 734 |
+
(r'(\)(?=(\s*::\s*[\w.]+)?\s*,))', Punctuation, '#pop'),
|
| 735 |
+
(r'\)', Punctuation, '#pop:2'),
|
| 736 |
+
(r'-?[a-z_][\w.]*', Name.Attribute),
|
| 737 |
+
(r'(::)(\s*)([a-z_][\w.]*)',
|
| 738 |
+
bygroups(Punctuation, Whitespace, Name.Label)),
|
| 739 |
+
(r'\.\.\.', Name.Builtin.Pseudo),
|
| 740 |
+
(r'[(,]', Punctuation),
|
| 741 |
+
include('whitespacecomments'),
|
| 742 |
+
],
|
| 743 |
+
'commamember': [
|
| 744 |
+
(r'(([a-z_][\w.]*=?|[-+*/%])'
|
| 745 |
+
r'(?=\s*(\(([^()]*\([^()]*\))*[^)]*\)\s*)?(::[\w.\s]+)?=>))',
|
| 746 |
+
Name.Function, 'signature'),
|
| 747 |
+
include('whitespacecomments'),
|
| 748 |
+
default('#pop'),
|
| 749 |
+
],
|
| 750 |
+
}
|
| 751 |
+
|
| 752 |
+
def __init__(self, **options):
|
| 753 |
+
self.builtinshighlighting = get_bool_opt(
|
| 754 |
+
options, 'builtinshighlighting', True)
|
| 755 |
+
self.requiredelimiters = get_bool_opt(
|
| 756 |
+
options, 'requiredelimiters', False)
|
| 757 |
+
|
| 758 |
+
self._builtins = set()
|
| 759 |
+
self._members = set()
|
| 760 |
+
if self.builtinshighlighting:
|
| 761 |
+
from pygments.lexers._lasso_builtins import BUILTINS, MEMBERS
|
| 762 |
+
for key, value in BUILTINS.items():
|
| 763 |
+
self._builtins.update(value)
|
| 764 |
+
for key, value in MEMBERS.items():
|
| 765 |
+
self._members.update(value)
|
| 766 |
+
RegexLexer.__init__(self, **options)
|
| 767 |
+
|
| 768 |
+
def get_tokens_unprocessed(self, text):
|
| 769 |
+
stack = ['root']
|
| 770 |
+
if self.requiredelimiters:
|
| 771 |
+
stack.append('delimiters')
|
| 772 |
+
for index, token, value in \
|
| 773 |
+
RegexLexer.get_tokens_unprocessed(self, text, stack):
|
| 774 |
+
if (token is Name.Other and value.lower() in self._builtins or
|
| 775 |
+
token is Name.Other.Member and
|
| 776 |
+
value.lower().rstrip('=') in self._members):
|
| 777 |
+
yield index, Name.Builtin, value
|
| 778 |
+
continue
|
| 779 |
+
yield index, token, value
|
| 780 |
+
|
| 781 |
+
def analyse_text(text):
|
| 782 |
+
rv = 0.0
|
| 783 |
+
if 'bin/lasso9' in text:
|
| 784 |
+
rv += 0.8
|
| 785 |
+
if re.search(r'<\?lasso', text, re.I):
|
| 786 |
+
rv += 0.4
|
| 787 |
+
if re.search(r'local\(', text, re.I):
|
| 788 |
+
rv += 0.4
|
| 789 |
+
return rv
|
| 790 |
+
|
| 791 |
+
|
| 792 |
+
class ObjectiveJLexer(RegexLexer):
|
| 793 |
+
"""
|
| 794 |
+
For Objective-J source code with preprocessor directives.
|
| 795 |
+
"""
|
| 796 |
+
|
| 797 |
+
name = 'Objective-J'
|
| 798 |
+
aliases = ['objective-j', 'objectivej', 'obj-j', 'objj']
|
| 799 |
+
filenames = ['*.j']
|
| 800 |
+
mimetypes = ['text/x-objective-j']
|
| 801 |
+
url = 'https://www.cappuccino.dev/learn/objective-j.html'
|
| 802 |
+
version_added = '1.3'
|
| 803 |
+
|
| 804 |
+
#: optional Comment or Whitespace
|
| 805 |
+
_ws = r'(?:\s|//[^\n]*\n|/[*](?:[^*]|[*][^/])*[*]/)*'
|
| 806 |
+
|
| 807 |
+
flags = re.DOTALL | re.MULTILINE
|
| 808 |
+
|
| 809 |
+
tokens = {
|
| 810 |
+
'root': [
|
| 811 |
+
include('whitespace'),
|
| 812 |
+
|
| 813 |
+
# function definition
|
| 814 |
+
(r'^(' + _ws + r'[+-]' + _ws + r')([(a-zA-Z_].*?[^(])(' + _ws + r'\{)',
|
| 815 |
+
bygroups(using(this), using(this, state='function_signature'),
|
| 816 |
+
using(this))),
|
| 817 |
+
|
| 818 |
+
# class definition
|
| 819 |
+
(r'(@interface|@implementation)(\s+)', bygroups(Keyword, Whitespace),
|
| 820 |
+
'classname'),
|
| 821 |
+
(r'(@class|@protocol)(\s*)', bygroups(Keyword, Whitespace),
|
| 822 |
+
'forward_classname'),
|
| 823 |
+
(r'(\s*)(@end)(\s*)', bygroups(Whitespace, Keyword, Whitespace)),
|
| 824 |
+
|
| 825 |
+
include('statements'),
|
| 826 |
+
('[{()}]', Punctuation),
|
| 827 |
+
(';', Punctuation),
|
| 828 |
+
],
|
| 829 |
+
'whitespace': [
|
| 830 |
+
(r'(@import)(\s+)("(?:\\\\|\\"|[^"])*")',
|
| 831 |
+
bygroups(Comment.Preproc, Whitespace, String.Double)),
|
| 832 |
+
(r'(@import)(\s+)(<(?:\\\\|\\>|[^>])*>)',
|
| 833 |
+
bygroups(Comment.Preproc, Whitespace, String.Double)),
|
| 834 |
+
(r'(#(?:include|import))(\s+)("(?:\\\\|\\"|[^"])*")',
|
| 835 |
+
bygroups(Comment.Preproc, Whitespace, String.Double)),
|
| 836 |
+
(r'(#(?:include|import))(\s+)(<(?:\\\\|\\>|[^>])*>)',
|
| 837 |
+
bygroups(Comment.Preproc, Whitespace, String.Double)),
|
| 838 |
+
|
| 839 |
+
(r'#if\s+0', Comment.Preproc, 'if0'),
|
| 840 |
+
(r'#', Comment.Preproc, 'macro'),
|
| 841 |
+
|
| 842 |
+
(r'\s+', Whitespace),
|
| 843 |
+
(r'(\\)(\n)',
|
| 844 |
+
bygroups(String.Escape, Whitespace)), # line continuation
|
| 845 |
+
(r'//(\n|(.|\n)*?[^\\]\n)', Comment.Single),
|
| 846 |
+
(r'/(\\\n)?[*](.|\n)*?[*](\\\n)?/', Comment.Multiline),
|
| 847 |
+
(r'<!--', Comment),
|
| 848 |
+
],
|
| 849 |
+
'slashstartsregex': [
|
| 850 |
+
include('whitespace'),
|
| 851 |
+
(r'/(\\.|[^[/\\\n]|\[(\\.|[^\]\\\n])*])+/'
|
| 852 |
+
r'([gim]+\b|\B)', String.Regex, '#pop'),
|
| 853 |
+
(r'(?=/)', Text, ('#pop', 'badregex')),
|
| 854 |
+
default('#pop'),
|
| 855 |
+
],
|
| 856 |
+
'badregex': [
|
| 857 |
+
(r'\n', Whitespace, '#pop'),
|
| 858 |
+
],
|
| 859 |
+
'statements': [
|
| 860 |
+
(r'(L|@)?"', String, 'string'),
|
| 861 |
+
(r"(L|@)?'(\\.|\\[0-7]{1,3}|\\x[a-fA-F0-9]{1,2}|[^\\\'\n])'",
|
| 862 |
+
String.Char),
|
| 863 |
+
(r'"(\\\\|\\[^\\]|[^"\\])*"', String.Double),
|
| 864 |
+
(r"'(\\\\|\\[^\\]|[^'\\])*'", String.Single),
|
| 865 |
+
(r'(\d+\.\d*|\.\d+|\d+)[eE][+-]?\d+[lL]?', Number.Float),
|
| 866 |
+
(r'(\d+\.\d*|\.\d+|\d+[fF])[fF]?', Number.Float),
|
| 867 |
+
(r'0x[0-9a-fA-F]+[Ll]?', Number.Hex),
|
| 868 |
+
(r'0[0-7]+[Ll]?', Number.Oct),
|
| 869 |
+
(r'\d+[Ll]?', Number.Integer),
|
| 870 |
+
|
| 871 |
+
(r'^(?=\s|/|<!--)', Text, 'slashstartsregex'),
|
| 872 |
+
|
| 873 |
+
(r'\+\+|--|~|&&|\?|:|\|\||\\(?=\n)|'
|
| 874 |
+
r'(<<|>>>?|==?|!=?|[-<>+*%&|^/])=?',
|
| 875 |
+
Operator, 'slashstartsregex'),
|
| 876 |
+
(r'[{(\[;,]', Punctuation, 'slashstartsregex'),
|
| 877 |
+
(r'[})\].]', Punctuation),
|
| 878 |
+
|
| 879 |
+
(r'(for|in|while|do|break|return|continue|switch|case|default|if|'
|
| 880 |
+
r'else|throw|try|catch|finally|new|delete|typeof|instanceof|void|'
|
| 881 |
+
r'prototype|__proto__)\b', Keyword, 'slashstartsregex'),
|
| 882 |
+
|
| 883 |
+
(r'(var|with|function)\b', Keyword.Declaration, 'slashstartsregex'),
|
| 884 |
+
|
| 885 |
+
(r'(@selector|@private|@protected|@public|@encode|'
|
| 886 |
+
r'@synchronized|@try|@throw|@catch|@finally|@end|@property|'
|
| 887 |
+
r'@synthesize|@dynamic|@for|@accessors|new)\b', Keyword),
|
| 888 |
+
|
| 889 |
+
(r'(int|long|float|short|double|char|unsigned|signed|void|'
|
| 890 |
+
r'id|BOOL|bool|boolean|IBOutlet|IBAction|SEL|@outlet|@action)\b',
|
| 891 |
+
Keyword.Type),
|
| 892 |
+
|
| 893 |
+
(r'(self|super)\b', Name.Builtin),
|
| 894 |
+
|
| 895 |
+
(r'(TRUE|YES|FALSE|NO|Nil|nil|NULL)\b', Keyword.Constant),
|
| 896 |
+
(r'(true|false|null|NaN|Infinity|undefined)\b', Keyword.Constant),
|
| 897 |
+
(r'(ABS|ASIN|ACOS|ATAN|ATAN2|SIN|COS|TAN|EXP|POW|CEIL|FLOOR|ROUND|'
|
| 898 |
+
r'MIN|MAX|RAND|SQRT|E|LN2|LN10|LOG2E|LOG10E|PI|PI2|PI_2|SQRT1_2|'
|
| 899 |
+
r'SQRT2)\b', Keyword.Constant),
|
| 900 |
+
|
| 901 |
+
(r'(Array|Boolean|Date|Error|Function|Math|'
|
| 902 |
+
r'Number|Object|RegExp|String|decodeURI|'
|
| 903 |
+
r'decodeURIComponent|encodeURI|encodeURIComponent|'
|
| 904 |
+
r'Error|eval|isFinite|isNaN|parseFloat|parseInt|document|this|'
|
| 905 |
+
r'window|globalThis|Symbol)\b', Name.Builtin),
|
| 906 |
+
|
| 907 |
+
(r'([$a-zA-Z_]\w*)(' + _ws + r')(?=\()',
|
| 908 |
+
bygroups(Name.Function, using(this))),
|
| 909 |
+
|
| 910 |
+
(r'[$a-zA-Z_]\w*', Name),
|
| 911 |
+
],
|
| 912 |
+
'classname': [
|
| 913 |
+
# interface definition that inherits
|
| 914 |
+
(r'([a-zA-Z_]\w*)(' + _ws + r':' + _ws +
|
| 915 |
+
r')([a-zA-Z_]\w*)?',
|
| 916 |
+
bygroups(Name.Class, using(this), Name.Class), '#pop'),
|
| 917 |
+
# interface definition for a category
|
| 918 |
+
(r'([a-zA-Z_]\w*)(' + _ws + r'\()([a-zA-Z_]\w*)(\))',
|
| 919 |
+
bygroups(Name.Class, using(this), Name.Label, Text), '#pop'),
|
| 920 |
+
# simple interface / implementation
|
| 921 |
+
(r'([a-zA-Z_]\w*)', Name.Class, '#pop'),
|
| 922 |
+
],
|
| 923 |
+
'forward_classname': [
|
| 924 |
+
(r'([a-zA-Z_]\w*)(\s*)(,)(\s*)',
|
| 925 |
+
bygroups(Name.Class, Whitespace, Text, Whitespace), '#push'),
|
| 926 |
+
(r'([a-zA-Z_]\w*)(\s*)(;?)',
|
| 927 |
+
bygroups(Name.Class, Whitespace, Text), '#pop'),
|
| 928 |
+
],
|
| 929 |
+
'function_signature': [
|
| 930 |
+
include('whitespace'),
|
| 931 |
+
|
| 932 |
+
# start of a selector w/ parameters
|
| 933 |
+
(r'(\(' + _ws + r')' # open paren
|
| 934 |
+
r'([a-zA-Z_]\w+)' # return type
|
| 935 |
+
r'(' + _ws + r'\)' + _ws + r')' # close paren
|
| 936 |
+
r'([$a-zA-Z_]\w+' + _ws + r':)', # function name
|
| 937 |
+
bygroups(using(this), Keyword.Type, using(this),
|
| 938 |
+
Name.Function), 'function_parameters'),
|
| 939 |
+
|
| 940 |
+
# no-param function
|
| 941 |
+
(r'(\(' + _ws + r')' # open paren
|
| 942 |
+
r'([a-zA-Z_]\w+)' # return type
|
| 943 |
+
r'(' + _ws + r'\)' + _ws + r')' # close paren
|
| 944 |
+
r'([$a-zA-Z_]\w+)', # function name
|
| 945 |
+
bygroups(using(this), Keyword.Type, using(this),
|
| 946 |
+
Name.Function), "#pop"),
|
| 947 |
+
|
| 948 |
+
# no return type given, start of a selector w/ parameters
|
| 949 |
+
(r'([$a-zA-Z_]\w+' + _ws + r':)', # function name
|
| 950 |
+
bygroups(Name.Function), 'function_parameters'),
|
| 951 |
+
|
| 952 |
+
# no return type given, no-param function
|
| 953 |
+
(r'([$a-zA-Z_]\w+)', # function name
|
| 954 |
+
bygroups(Name.Function), "#pop"),
|
| 955 |
+
|
| 956 |
+
default('#pop'),
|
| 957 |
+
],
|
| 958 |
+
'function_parameters': [
|
| 959 |
+
include('whitespace'),
|
| 960 |
+
|
| 961 |
+
# parameters
|
| 962 |
+
(r'(\(' + _ws + ')' # open paren
|
| 963 |
+
r'([^)]+)' # type
|
| 964 |
+
r'(' + _ws + r'\)' + _ws + r')' # close paren
|
| 965 |
+
r'([$a-zA-Z_]\w+)', # param name
|
| 966 |
+
bygroups(using(this), Keyword.Type, using(this), Text)),
|
| 967 |
+
|
| 968 |
+
# one piece of a selector name
|
| 969 |
+
(r'([$a-zA-Z_]\w+' + _ws + r':)', # function name
|
| 970 |
+
Name.Function),
|
| 971 |
+
|
| 972 |
+
# smallest possible selector piece
|
| 973 |
+
(r'(:)', Name.Function),
|
| 974 |
+
|
| 975 |
+
# var args
|
| 976 |
+
(r'(,' + _ws + r'\.\.\.)', using(this)),
|
| 977 |
+
|
| 978 |
+
# param name
|
| 979 |
+
(r'([$a-zA-Z_]\w+)', Text),
|
| 980 |
+
],
|
| 981 |
+
'expression': [
|
| 982 |
+
(r'([$a-zA-Z_]\w*)(\()', bygroups(Name.Function,
|
| 983 |
+
Punctuation)),
|
| 984 |
+
(r'(\))', Punctuation, "#pop"),
|
| 985 |
+
],
|
| 986 |
+
'string': [
|
| 987 |
+
(r'"', String, '#pop'),
|
| 988 |
+
(r'\\([\\abfnrtv"\']|x[a-fA-F0-9]{2,4}|[0-7]{1,3})', String.Escape),
|
| 989 |
+
(r'[^\\"\n]+', String), # all other characters
|
| 990 |
+
(r'(\\)(\n)', bygroups(String.Escape, Whitespace)), # line continuation
|
| 991 |
+
(r'\\', String), # stray backslash
|
| 992 |
+
],
|
| 993 |
+
'macro': [
|
| 994 |
+
(r'[^/\n]+', Comment.Preproc),
|
| 995 |
+
(r'/[*](.|\n)*?[*]/', Comment.Multiline),
|
| 996 |
+
(r'(//.*?)(\n)', bygroups(Comment.Single, Whitespace), '#pop'),
|
| 997 |
+
(r'/', Comment.Preproc),
|
| 998 |
+
(r'(?<=\\)\n', Whitespace),
|
| 999 |
+
(r'\n', Whitespace, '#pop'),
|
| 1000 |
+
],
|
| 1001 |
+
'if0': [
|
| 1002 |
+
(r'^\s*#if.*?(?<!\\)\n', Comment.Preproc, '#push'),
|
| 1003 |
+
(r'^\s*#endif.*?(?<!\\)\n', Comment.Preproc, '#pop'),
|
| 1004 |
+
(r'(.*?)(\n)', bygroups(Comment, Whitespace)),
|
| 1005 |
+
]
|
| 1006 |
+
}
|
| 1007 |
+
|
| 1008 |
+
def analyse_text(text):
|
| 1009 |
+
if re.search(r'^\s*@import\s+[<"]', text, re.MULTILINE):
|
| 1010 |
+
# special directive found in most Objective-J files
|
| 1011 |
+
return True
|
| 1012 |
+
return False
|
| 1013 |
+
|
| 1014 |
+
|
| 1015 |
+
class CoffeeScriptLexer(RegexLexer):
|
| 1016 |
+
"""
|
| 1017 |
+
For CoffeeScript source code.
|
| 1018 |
+
"""
|
| 1019 |
+
|
| 1020 |
+
name = 'CoffeeScript'
|
| 1021 |
+
url = 'http://coffeescript.org'
|
| 1022 |
+
aliases = ['coffeescript', 'coffee-script', 'coffee']
|
| 1023 |
+
filenames = ['*.coffee']
|
| 1024 |
+
mimetypes = ['text/coffeescript']
|
| 1025 |
+
version_added = '1.3'
|
| 1026 |
+
|
| 1027 |
+
_operator_re = (
|
| 1028 |
+
r'\+\+|~|&&|\band\b|\bor\b|\bis\b|\bisnt\b|\bnot\b|\?|:|'
|
| 1029 |
+
r'\|\||\\(?=\n)|'
|
| 1030 |
+
r'(<<|>>>?|==?(?!>)|!=?|=(?!>)|-(?!>)|[<>+*`%&|\^/])=?')
|
| 1031 |
+
|
| 1032 |
+
flags = re.DOTALL
|
| 1033 |
+
tokens = {
|
| 1034 |
+
'commentsandwhitespace': [
|
| 1035 |
+
(r'\s+', Whitespace),
|
| 1036 |
+
(r'###[^#].*?###', Comment.Multiline),
|
| 1037 |
+
(r'(#(?!##[^#]).*?)(\n)', bygroups(Comment.Single, Whitespace)),
|
| 1038 |
+
],
|
| 1039 |
+
'multilineregex': [
|
| 1040 |
+
(r'[^/#]+', String.Regex),
|
| 1041 |
+
(r'///([gimuysd]+\b|\B)', String.Regex, '#pop'),
|
| 1042 |
+
(r'#\{', String.Interpol, 'interpoling_string'),
|
| 1043 |
+
(r'[/#]', String.Regex),
|
| 1044 |
+
],
|
| 1045 |
+
'slashstartsregex': [
|
| 1046 |
+
include('commentsandwhitespace'),
|
| 1047 |
+
(r'///', String.Regex, ('#pop', 'multilineregex')),
|
| 1048 |
+
(r'/(?! )(\\.|[^[/\\\n]|\[(\\.|[^\]\\\n])*])+/'
|
| 1049 |
+
r'([gimuysd]+\b|\B)', String.Regex, '#pop'),
|
| 1050 |
+
# This isn't really guarding against mishighlighting well-formed
|
| 1051 |
+
# code, just the ability to infinite-loop between root and
|
| 1052 |
+
# slashstartsregex.
|
| 1053 |
+
(r'/', Operator, '#pop'),
|
| 1054 |
+
default('#pop'),
|
| 1055 |
+
],
|
| 1056 |
+
'root': [
|
| 1057 |
+
include('commentsandwhitespace'),
|
| 1058 |
+
(r'\A(?=\s|/)', Text, 'slashstartsregex'),
|
| 1059 |
+
(_operator_re, Operator, 'slashstartsregex'),
|
| 1060 |
+
(r'(?:\([^()]*\))?\s*[=-]>', Name.Function, 'slashstartsregex'),
|
| 1061 |
+
(r'[{(\[;,]', Punctuation, 'slashstartsregex'),
|
| 1062 |
+
(r'[})\].]', Punctuation),
|
| 1063 |
+
(r'(?<![.$])(for|own|in|of|while|until|'
|
| 1064 |
+
r'loop|break|return|continue|'
|
| 1065 |
+
r'switch|when|then|if|unless|else|'
|
| 1066 |
+
r'throw|try|catch|finally|new|delete|typeof|instanceof|super|'
|
| 1067 |
+
r'extends|this|class|by)\b', Keyword, 'slashstartsregex'),
|
| 1068 |
+
(r'(?<![.$])(true|false|yes|no|on|off|null|'
|
| 1069 |
+
r'NaN|Infinity|undefined)\b',
|
| 1070 |
+
Keyword.Constant),
|
| 1071 |
+
(r'(Array|Boolean|Date|Error|Function|Math|'
|
| 1072 |
+
r'Number|Object|RegExp|String|decodeURI|'
|
| 1073 |
+
r'decodeURIComponent|encodeURI|encodeURIComponent|'
|
| 1074 |
+
r'eval|isFinite|isNaN|parseFloat|parseInt|document|window|globalThis|Symbol)\b',
|
| 1075 |
+
Name.Builtin),
|
| 1076 |
+
(r'([$a-zA-Z_][\w.:$]*)(\s*)([:=])(\s+)',
|
| 1077 |
+
bygroups(Name.Variable, Whitespace, Operator, Whitespace),
|
| 1078 |
+
'slashstartsregex'),
|
| 1079 |
+
(r'(@[$a-zA-Z_][\w.:$]*)(\s*)([:=])(\s+)',
|
| 1080 |
+
bygroups(Name.Variable.Instance, Whitespace, Operator, Whitespace),
|
| 1081 |
+
'slashstartsregex'),
|
| 1082 |
+
(r'@', Name.Other, 'slashstartsregex'),
|
| 1083 |
+
(r'@?[$a-zA-Z_][\w$]*', Name.Other),
|
| 1084 |
+
(r'[0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?', Number.Float),
|
| 1085 |
+
(r'0x[0-9a-fA-F]+', Number.Hex),
|
| 1086 |
+
(r'[0-9]+', Number.Integer),
|
| 1087 |
+
('"""', String, 'tdqs'),
|
| 1088 |
+
("'''", String, 'tsqs'),
|
| 1089 |
+
('"', String, 'dqs'),
|
| 1090 |
+
("'", String, 'sqs'),
|
| 1091 |
+
],
|
| 1092 |
+
'strings': [
|
| 1093 |
+
(r'[^#\\\'"]+', String),
|
| 1094 |
+
# note that all coffee script strings are multi-line.
|
| 1095 |
+
# hashmarks, quotes and backslashes must be parsed one at a time
|
| 1096 |
+
],
|
| 1097 |
+
'interpoling_string': [
|
| 1098 |
+
(r'\}', String.Interpol, "#pop"),
|
| 1099 |
+
include('root')
|
| 1100 |
+
],
|
| 1101 |
+
'dqs': [
|
| 1102 |
+
(r'"', String, '#pop'),
|
| 1103 |
+
(r'\\.|\'', String), # double-quoted string don't need ' escapes
|
| 1104 |
+
(r'#\{', String.Interpol, "interpoling_string"),
|
| 1105 |
+
(r'#', String),
|
| 1106 |
+
include('strings')
|
| 1107 |
+
],
|
| 1108 |
+
'sqs': [
|
| 1109 |
+
(r"'", String, '#pop'),
|
| 1110 |
+
(r'#|\\.|"', String), # single quoted strings don't need " escapses
|
| 1111 |
+
include('strings')
|
| 1112 |
+
],
|
| 1113 |
+
'tdqs': [
|
| 1114 |
+
(r'"""', String, '#pop'),
|
| 1115 |
+
(r'\\.|\'|"', String), # no need to escape quotes in triple-string
|
| 1116 |
+
(r'#\{', String.Interpol, "interpoling_string"),
|
| 1117 |
+
(r'#', String),
|
| 1118 |
+
include('strings'),
|
| 1119 |
+
],
|
| 1120 |
+
'tsqs': [
|
| 1121 |
+
(r"'''", String, '#pop'),
|
| 1122 |
+
(r'#|\\.|\'|"', String), # no need to escape quotes in triple-strings
|
| 1123 |
+
include('strings')
|
| 1124 |
+
],
|
| 1125 |
+
}
|
| 1126 |
+
|
| 1127 |
+
|
| 1128 |
+
class MaskLexer(RegexLexer):
|
| 1129 |
+
"""
|
| 1130 |
+
For Mask markup.
|
| 1131 |
+
"""
|
| 1132 |
+
name = 'Mask'
|
| 1133 |
+
url = 'https://github.com/atmajs/MaskJS'
|
| 1134 |
+
aliases = ['mask']
|
| 1135 |
+
filenames = ['*.mask']
|
| 1136 |
+
mimetypes = ['text/x-mask']
|
| 1137 |
+
version_added = '2.0'
|
| 1138 |
+
|
| 1139 |
+
flags = re.MULTILINE | re.IGNORECASE | re.DOTALL
|
| 1140 |
+
tokens = {
|
| 1141 |
+
'root': [
|
| 1142 |
+
(r'\s+', Whitespace),
|
| 1143 |
+
(r'(//.*?)(\n)', bygroups(Comment.Single, Whitespace)),
|
| 1144 |
+
(r'/\*.*?\*/', Comment.Multiline),
|
| 1145 |
+
(r'[{};>]', Punctuation),
|
| 1146 |
+
(r"'''", String, 'string-trpl-single'),
|
| 1147 |
+
(r'"""', String, 'string-trpl-double'),
|
| 1148 |
+
(r"'", String, 'string-single'),
|
| 1149 |
+
(r'"', String, 'string-double'),
|
| 1150 |
+
(r'([\w-]+)', Name.Tag, 'node'),
|
| 1151 |
+
(r'([^.#;{>\s]+)', Name.Class, 'node'),
|
| 1152 |
+
(r'(#[\w-]+)', Name.Function, 'node'),
|
| 1153 |
+
(r'(\.[\w-]+)', Name.Variable.Class, 'node')
|
| 1154 |
+
],
|
| 1155 |
+
'string-base': [
|
| 1156 |
+
(r'\\.', String.Escape),
|
| 1157 |
+
(r'~\[', String.Interpol, 'interpolation'),
|
| 1158 |
+
(r'.', String.Single),
|
| 1159 |
+
],
|
| 1160 |
+
'string-single': [
|
| 1161 |
+
(r"'", String.Single, '#pop'),
|
| 1162 |
+
include('string-base')
|
| 1163 |
+
],
|
| 1164 |
+
'string-double': [
|
| 1165 |
+
(r'"', String.Single, '#pop'),
|
| 1166 |
+
include('string-base')
|
| 1167 |
+
],
|
| 1168 |
+
'string-trpl-single': [
|
| 1169 |
+
(r"'''", String.Single, '#pop'),
|
| 1170 |
+
include('string-base')
|
| 1171 |
+
],
|
| 1172 |
+
'string-trpl-double': [
|
| 1173 |
+
(r'"""', String.Single, '#pop'),
|
| 1174 |
+
include('string-base')
|
| 1175 |
+
],
|
| 1176 |
+
'interpolation': [
|
| 1177 |
+
(r'\]', String.Interpol, '#pop'),
|
| 1178 |
+
(r'(\s*)(:)', bygroups(Whitespace, String.Interpol), 'expression'),
|
| 1179 |
+
(r'(\s*)(\w+)(:)', bygroups(Whitespace, Name.Other, Punctuation)),
|
| 1180 |
+
(r'[^\]]+', String.Interpol)
|
| 1181 |
+
],
|
| 1182 |
+
'expression': [
|
| 1183 |
+
(r'[^\]]+', using(JavascriptLexer), '#pop')
|
| 1184 |
+
],
|
| 1185 |
+
'node': [
|
| 1186 |
+
(r'\s+', Whitespace),
|
| 1187 |
+
(r'\.', Name.Variable.Class, 'node-class'),
|
| 1188 |
+
(r'\#', Name.Function, 'node-id'),
|
| 1189 |
+
(r'(style)([ \t]*)(=)',
|
| 1190 |
+
bygroups(Name.Attribute, Whitespace, Operator),
|
| 1191 |
+
'node-attr-style-value'),
|
| 1192 |
+
(r'([\w:-]+)([ \t]*)(=)',
|
| 1193 |
+
bygroups(Name.Attribute, Whitespace, Operator),
|
| 1194 |
+
'node-attr-value'),
|
| 1195 |
+
(r'[\w:-]+', Name.Attribute),
|
| 1196 |
+
(r'[>{;]', Punctuation, '#pop')
|
| 1197 |
+
],
|
| 1198 |
+
'node-class': [
|
| 1199 |
+
(r'[\w-]+', Name.Variable.Class),
|
| 1200 |
+
(r'~\[', String.Interpol, 'interpolation'),
|
| 1201 |
+
default('#pop')
|
| 1202 |
+
],
|
| 1203 |
+
'node-id': [
|
| 1204 |
+
(r'[\w-]+', Name.Function),
|
| 1205 |
+
(r'~\[', String.Interpol, 'interpolation'),
|
| 1206 |
+
default('#pop')
|
| 1207 |
+
],
|
| 1208 |
+
'node-attr-value': [
|
| 1209 |
+
(r'\s+', Whitespace),
|
| 1210 |
+
(r'\w+', Name.Variable, '#pop'),
|
| 1211 |
+
(r"'", String, 'string-single-pop2'),
|
| 1212 |
+
(r'"', String, 'string-double-pop2'),
|
| 1213 |
+
default('#pop')
|
| 1214 |
+
],
|
| 1215 |
+
'node-attr-style-value': [
|
| 1216 |
+
(r'\s+', Whitespace),
|
| 1217 |
+
(r"'", String.Single, 'css-single-end'),
|
| 1218 |
+
(r'"', String.Single, 'css-double-end'),
|
| 1219 |
+
include('node-attr-value')
|
| 1220 |
+
],
|
| 1221 |
+
'css-base': [
|
| 1222 |
+
(r'\s+', Whitespace),
|
| 1223 |
+
(r";", Punctuation),
|
| 1224 |
+
(r"[\w\-]+\s*:", Name.Builtin)
|
| 1225 |
+
],
|
| 1226 |
+
'css-single-end': [
|
| 1227 |
+
include('css-base'),
|
| 1228 |
+
(r"'", String.Single, '#pop:2'),
|
| 1229 |
+
(r"[^;']+", Name.Entity)
|
| 1230 |
+
],
|
| 1231 |
+
'css-double-end': [
|
| 1232 |
+
include('css-base'),
|
| 1233 |
+
(r'"', String.Single, '#pop:2'),
|
| 1234 |
+
(r'[^;"]+', Name.Entity)
|
| 1235 |
+
],
|
| 1236 |
+
'string-single-pop2': [
|
| 1237 |
+
(r"'", String.Single, '#pop:2'),
|
| 1238 |
+
include('string-base')
|
| 1239 |
+
],
|
| 1240 |
+
'string-double-pop2': [
|
| 1241 |
+
(r'"', String.Single, '#pop:2'),
|
| 1242 |
+
include('string-base')
|
| 1243 |
+
],
|
| 1244 |
+
}
|
| 1245 |
+
|
| 1246 |
+
|
| 1247 |
+
class EarlGreyLexer(RegexLexer):
|
| 1248 |
+
"""
|
| 1249 |
+
For Earl-Grey source code.
|
| 1250 |
+
|
| 1251 |
+
.. versionadded: 2.1
|
| 1252 |
+
"""
|
| 1253 |
+
|
| 1254 |
+
name = 'Earl Grey'
|
| 1255 |
+
aliases = ['earl-grey', 'earlgrey', 'eg']
|
| 1256 |
+
filenames = ['*.eg']
|
| 1257 |
+
mimetypes = ['text/x-earl-grey']
|
| 1258 |
+
url = 'https://github.com/breuleux/earl-grey'
|
| 1259 |
+
version_added = ''
|
| 1260 |
+
|
| 1261 |
+
tokens = {
|
| 1262 |
+
'root': [
|
| 1263 |
+
(r'\n', Whitespace),
|
| 1264 |
+
include('control'),
|
| 1265 |
+
(r'[^\S\n]+', Text),
|
| 1266 |
+
(r'(;;.*)(\n)', bygroups(Comment, Whitespace)),
|
| 1267 |
+
(r'[\[\]{}:(),;]', Punctuation),
|
| 1268 |
+
(r'(\\)(\n)', bygroups(String.Escape, Whitespace)),
|
| 1269 |
+
(r'\\', Text),
|
| 1270 |
+
include('errors'),
|
| 1271 |
+
(words((
|
| 1272 |
+
'with', 'where', 'when', 'and', 'not', 'or', 'in',
|
| 1273 |
+
'as', 'of', 'is'),
|
| 1274 |
+
prefix=r'(?<=\s|\[)', suffix=r'(?![\w$\-])'),
|
| 1275 |
+
Operator.Word),
|
| 1276 |
+
(r'[*@]?->', Name.Function),
|
| 1277 |
+
(r'[+\-*/~^<>%&|?!@#.]*=', Operator.Word),
|
| 1278 |
+
(r'\.{2,3}', Operator.Word), # Range Operator
|
| 1279 |
+
(r'([+*/~^<>&|?!]+)|([#\-](?=\s))|@@+(?=\s)|=+', Operator),
|
| 1280 |
+
(r'(?<![\w$\-])(var|let)(?:[^\w$])', Keyword.Declaration),
|
| 1281 |
+
include('keywords'),
|
| 1282 |
+
include('builtins'),
|
| 1283 |
+
include('assignment'),
|
| 1284 |
+
(r'''(?x)
|
| 1285 |
+
(?:()([a-zA-Z$_](?:[\w$\-]*[\w$])?)|
|
| 1286 |
+
(?<=[\s{\[(])(\.)([a-zA-Z$_](?:[\w$\-]*[\w$])?))
|
| 1287 |
+
(?=.*%)''',
|
| 1288 |
+
bygroups(Punctuation, Name.Tag, Punctuation, Name.Class.Start), 'dbs'),
|
| 1289 |
+
(r'[rR]?`', String.Backtick, 'bt'),
|
| 1290 |
+
(r'[rR]?```', String.Backtick, 'tbt'),
|
| 1291 |
+
(r'(?<=[\s\[{(,;])\.([a-zA-Z$_](?:[\w$\-]*[\w$])?)'
|
| 1292 |
+
r'(?=[\s\]}),;])', String.Symbol),
|
| 1293 |
+
include('nested'),
|
| 1294 |
+
(r'(?:[rR]|[rR]\.[gmi]{1,3})?"', String, combined('stringescape', 'dqs')),
|
| 1295 |
+
(r'(?:[rR]|[rR]\.[gmi]{1,3})?\'', String, combined('stringescape', 'sqs')),
|
| 1296 |
+
(r'"""', String, combined('stringescape', 'tdqs')),
|
| 1297 |
+
include('tuple'),
|
| 1298 |
+
include('import_paths'),
|
| 1299 |
+
include('name'),
|
| 1300 |
+
include('numbers'),
|
| 1301 |
+
],
|
| 1302 |
+
'dbs': [
|
| 1303 |
+
(r'(\.)([a-zA-Z$_](?:[\w$\-]*[\w$])?)(?=[.\[\s])',
|
| 1304 |
+
bygroups(Punctuation, Name.Class.DBS)),
|
| 1305 |
+
(r'(\[)([\^#][a-zA-Z$_](?:[\w$\-]*[\w$])?)(\])',
|
| 1306 |
+
bygroups(Punctuation, Name.Entity.DBS, Punctuation)),
|
| 1307 |
+
(r'\s+', Whitespace),
|
| 1308 |
+
(r'%', Operator.DBS, '#pop'),
|
| 1309 |
+
],
|
| 1310 |
+
'import_paths': [
|
| 1311 |
+
(r'(?<=[\s:;,])(\.{1,3}(?:[\w\-]*/)*)(\w(?:[\w\-]*\w)*)(?=[\s;,])',
|
| 1312 |
+
bygroups(Text.Whitespace, Text)),
|
| 1313 |
+
],
|
| 1314 |
+
'assignment': [
|
| 1315 |
+
(r'(\.)?([a-zA-Z$_](?:[\w$\-]*[\w$])?)'
|
| 1316 |
+
r'(?=\s+[+\-*/~^<>%&|?!@#.]*\=\s)',
|
| 1317 |
+
bygroups(Punctuation, Name.Variable))
|
| 1318 |
+
],
|
| 1319 |
+
'errors': [
|
| 1320 |
+
(words(('Error', 'TypeError', 'ReferenceError'),
|
| 1321 |
+
prefix=r'(?<![\w\-$.])', suffix=r'(?![\w\-$.])'),
|
| 1322 |
+
Name.Exception),
|
| 1323 |
+
(r'''(?x)
|
| 1324 |
+
(?<![\w$])
|
| 1325 |
+
E\.[\w$](?:[\w$\-]*[\w$])?
|
| 1326 |
+
(?:\.[\w$](?:[\w$\-]*[\w$])?)*
|
| 1327 |
+
(?=[({\[?!\s])''',
|
| 1328 |
+
Name.Exception),
|
| 1329 |
+
],
|
| 1330 |
+
'control': [
|
| 1331 |
+
(r'''(?x)
|
| 1332 |
+
([a-zA-Z$_](?:[\w$-]*[\w$])?)
|
| 1333 |
+
(?!\n)\s+
|
| 1334 |
+
(?!and|as|each\*|each|in|is|mod|of|or|when|where|with)
|
| 1335 |
+
(?=(?:[+\-*/~^<>%&|?!@#.])?[a-zA-Z$_](?:[\w$-]*[\w$])?)''',
|
| 1336 |
+
Keyword.Control),
|
| 1337 |
+
(r'([a-zA-Z$_](?:[\w$-]*[\w$])?)(?!\n)(\s+)(?=[\'"\d{\[(])',
|
| 1338 |
+
bygroups(Keyword.Control, Whitespace)),
|
| 1339 |
+
(r'''(?x)
|
| 1340 |
+
(?:
|
| 1341 |
+
(?<=[%=])|
|
| 1342 |
+
(?<=[=\-]>)|
|
| 1343 |
+
(?<=with|each|with)|
|
| 1344 |
+
(?<=each\*|where)
|
| 1345 |
+
)(\s+)
|
| 1346 |
+
([a-zA-Z$_](?:[\w$-]*[\w$])?)(:)''',
|
| 1347 |
+
bygroups(Whitespace, Keyword.Control, Punctuation)),
|
| 1348 |
+
(r'''(?x)
|
| 1349 |
+
(?<![+\-*/~^<>%&|?!@#.])(\s+)
|
| 1350 |
+
([a-zA-Z$_](?:[\w$-]*[\w$])?)(:)''',
|
| 1351 |
+
bygroups(Whitespace, Keyword.Control, Punctuation)),
|
| 1352 |
+
],
|
| 1353 |
+
'nested': [
|
| 1354 |
+
(r'''(?x)
|
| 1355 |
+
(?<=[\w$\]})])(\.)
|
| 1356 |
+
([a-zA-Z$_](?:[\w$-]*[\w$])?)
|
| 1357 |
+
(?=\s+with(?:\s|\n))''',
|
| 1358 |
+
bygroups(Punctuation, Name.Function)),
|
| 1359 |
+
(r'''(?x)
|
| 1360 |
+
(?<!\s)(\.)
|
| 1361 |
+
([a-zA-Z$_](?:[\w$-]*[\w$])?)
|
| 1362 |
+
(?=[}\]).,;:\s])''',
|
| 1363 |
+
bygroups(Punctuation, Name.Field)),
|
| 1364 |
+
(r'''(?x)
|
| 1365 |
+
(?<=[\w$\]})])(\.)
|
| 1366 |
+
([a-zA-Z$_](?:[\w$-]*[\w$])?)
|
| 1367 |
+
(?=[\[{(:])''',
|
| 1368 |
+
bygroups(Punctuation, Name.Function)),
|
| 1369 |
+
],
|
| 1370 |
+
'keywords': [
|
| 1371 |
+
(words((
|
| 1372 |
+
'each', 'each*', 'mod', 'await', 'break', 'chain',
|
| 1373 |
+
'continue', 'elif', 'expr-value', 'if', 'match',
|
| 1374 |
+
'return', 'yield', 'pass', 'else', 'require', 'var',
|
| 1375 |
+
'let', 'async', 'method', 'gen'),
|
| 1376 |
+
prefix=r'(?<![\w\-$.])', suffix=r'(?![\w\-$.])'),
|
| 1377 |
+
Keyword.Pseudo),
|
| 1378 |
+
(words(('this', 'self', '@'),
|
| 1379 |
+
prefix=r'(?<![\w\-$.])', suffix=r'(?![\w\-$])'),
|
| 1380 |
+
Keyword.Constant),
|
| 1381 |
+
(words((
|
| 1382 |
+
'Function', 'Object', 'Array', 'String', 'Number',
|
| 1383 |
+
'Boolean', 'ErrorFactory', 'ENode', 'Promise'),
|
| 1384 |
+
prefix=r'(?<![\w\-$.])', suffix=r'(?![\w\-$])'),
|
| 1385 |
+
Keyword.Type),
|
| 1386 |
+
],
|
| 1387 |
+
'builtins': [
|
| 1388 |
+
(words((
|
| 1389 |
+
'send', 'object', 'keys', 'items', 'enumerate', 'zip',
|
| 1390 |
+
'product', 'neighbours', 'predicate', 'equal',
|
| 1391 |
+
'nequal', 'contains', 'repr', 'clone', 'range',
|
| 1392 |
+
'getChecker', 'get-checker', 'getProperty', 'get-property',
|
| 1393 |
+
'getProjector', 'get-projector', 'consume', 'take',
|
| 1394 |
+
'promisify', 'spawn', 'constructor'),
|
| 1395 |
+
prefix=r'(?<![\w\-#.])', suffix=r'(?![\w\-.])'),
|
| 1396 |
+
Name.Builtin),
|
| 1397 |
+
(words((
|
| 1398 |
+
'true', 'false', 'null', 'undefined'),
|
| 1399 |
+
prefix=r'(?<![\w\-$.])', suffix=r'(?![\w\-$.])'),
|
| 1400 |
+
Name.Constant),
|
| 1401 |
+
],
|
| 1402 |
+
'name': [
|
| 1403 |
+
(r'@([a-zA-Z$_](?:[\w$-]*[\w$])?)', Name.Variable.Instance),
|
| 1404 |
+
(r'([a-zA-Z$_](?:[\w$-]*[\w$])?)(\+\+|\-\-)?',
|
| 1405 |
+
bygroups(Name.Symbol, Operator.Word))
|
| 1406 |
+
],
|
| 1407 |
+
'tuple': [
|
| 1408 |
+
(r'#[a-zA-Z_][\w\-]*(?=[\s{(,;])', Name.Namespace)
|
| 1409 |
+
],
|
| 1410 |
+
'interpoling_string': [
|
| 1411 |
+
(r'\}', String.Interpol, '#pop'),
|
| 1412 |
+
include('root')
|
| 1413 |
+
],
|
| 1414 |
+
'stringescape': [
|
| 1415 |
+
(r'\\([\\abfnrtv"\']|\n|N\{.*?\}|u[a-fA-F0-9]{4}|'
|
| 1416 |
+
r'U[a-fA-F0-9]{8}|x[a-fA-F0-9]{2}|[0-7]{1,3})', String.Escape)
|
| 1417 |
+
],
|
| 1418 |
+
'strings': [
|
| 1419 |
+
(r'[^\\\'"]', String),
|
| 1420 |
+
(r'[\'"\\]', String),
|
| 1421 |
+
(r'\n', String) # All strings are multiline in EG
|
| 1422 |
+
],
|
| 1423 |
+
'dqs': [
|
| 1424 |
+
(r'"', String, '#pop'),
|
| 1425 |
+
(r'\\\\|\\"|\\\n', String.Escape),
|
| 1426 |
+
include('strings')
|
| 1427 |
+
],
|
| 1428 |
+
'sqs': [
|
| 1429 |
+
(r"'", String, '#pop'),
|
| 1430 |
+
(r"\\\\|\\'|\\\n", String.Escape),
|
| 1431 |
+
(r'\{', String.Interpol, 'interpoling_string'),
|
| 1432 |
+
include('strings')
|
| 1433 |
+
],
|
| 1434 |
+
'tdqs': [
|
| 1435 |
+
(r'"""', String, '#pop'),
|
| 1436 |
+
include('strings'),
|
| 1437 |
+
],
|
| 1438 |
+
'bt': [
|
| 1439 |
+
(r'`', String.Backtick, '#pop'),
|
| 1440 |
+
(r'(?<!`)\n', String.Backtick),
|
| 1441 |
+
(r'\^=?', String.Escape),
|
| 1442 |
+
(r'.+', String.Backtick),
|
| 1443 |
+
],
|
| 1444 |
+
'tbt': [
|
| 1445 |
+
(r'```', String.Backtick, '#pop'),
|
| 1446 |
+
(r'\n', String.Backtick),
|
| 1447 |
+
(r'\^=?', String.Escape),
|
| 1448 |
+
(r'[^`]+', String.Backtick),
|
| 1449 |
+
],
|
| 1450 |
+
'numbers': [
|
| 1451 |
+
(r'\d+\.(?!\.)\d*([eE][+-]?[0-9]+)?', Number.Float),
|
| 1452 |
+
(r'\d+[eE][+-]?[0-9]+', Number.Float),
|
| 1453 |
+
(r'8r[0-7]+', Number.Oct),
|
| 1454 |
+
(r'2r[01]+', Number.Bin),
|
| 1455 |
+
(r'16r[a-fA-F0-9]+', Number.Hex),
|
| 1456 |
+
(r'([3-79]|[12][0-9]|3[0-6])r[a-zA-Z\d]+(\.[a-zA-Z\d]+)?',
|
| 1457 |
+
Number.Radix),
|
| 1458 |
+
(r'\d+', Number.Integer)
|
| 1459 |
+
],
|
| 1460 |
+
}
|
| 1461 |
+
|
| 1462 |
+
|
| 1463 |
+
class JuttleLexer(RegexLexer):
|
| 1464 |
+
"""
|
| 1465 |
+
For Juttle source code.
|
| 1466 |
+
"""
|
| 1467 |
+
|
| 1468 |
+
name = 'Juttle'
|
| 1469 |
+
url = 'http://juttle.github.io/'
|
| 1470 |
+
aliases = ['juttle']
|
| 1471 |
+
filenames = ['*.juttle']
|
| 1472 |
+
mimetypes = ['application/juttle', 'application/x-juttle',
|
| 1473 |
+
'text/x-juttle', 'text/juttle']
|
| 1474 |
+
version_added = '2.2'
|
| 1475 |
+
|
| 1476 |
+
flags = re.DOTALL | re.MULTILINE
|
| 1477 |
+
|
| 1478 |
+
tokens = {
|
| 1479 |
+
'commentsandwhitespace': [
|
| 1480 |
+
(r'\s+', Whitespace),
|
| 1481 |
+
(r'(//.*?)(\n)', bygroups(Comment.Single, Whitespace)),
|
| 1482 |
+
(r'/\*.*?\*/', Comment.Multiline)
|
| 1483 |
+
],
|
| 1484 |
+
'slashstartsregex': [
|
| 1485 |
+
include('commentsandwhitespace'),
|
| 1486 |
+
(r'/(\\.|[^[/\\\n]|\[(\\.|[^\]\\\n])*])+/'
|
| 1487 |
+
r'([gimuysd]+\b|\B)', String.Regex, '#pop'),
|
| 1488 |
+
(r'(?=/)', Text, ('#pop', 'badregex')),
|
| 1489 |
+
default('#pop')
|
| 1490 |
+
],
|
| 1491 |
+
'badregex': [
|
| 1492 |
+
(r'\n', Text, '#pop')
|
| 1493 |
+
],
|
| 1494 |
+
'root': [
|
| 1495 |
+
(r'^(?=\s|/)', Text, 'slashstartsregex'),
|
| 1496 |
+
include('commentsandwhitespace'),
|
| 1497 |
+
(r':\d{2}:\d{2}:\d{2}(\.\d*)?:', String.Moment),
|
| 1498 |
+
(r':(now|beginning|end|forever|yesterday|today|tomorrow|'
|
| 1499 |
+
r'(\d+(\.\d*)?|\.\d+)(ms|[smhdwMy])?):', String.Moment),
|
| 1500 |
+
(r':\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(\.\d*)?)?'
|
| 1501 |
+
r'(Z|[+-]\d{2}:\d{2}|[+-]\d{4})?:', String.Moment),
|
| 1502 |
+
(r':((\d+(\.\d*)?|\.\d+)[ ]+)?(millisecond|second|minute|hour|'
|
| 1503 |
+
r'day|week|month|year)[s]?'
|
| 1504 |
+
r'(([ ]+and[ ]+(\d+[ ]+)?(millisecond|second|minute|hour|'
|
| 1505 |
+
r'day|week|month|year)[s]?)'
|
| 1506 |
+
r'|[ ]+(ago|from[ ]+now))*:', String.Moment),
|
| 1507 |
+
(r'\+\+|--|~|&&|\?|:|\|\||\\(?=\n)|'
|
| 1508 |
+
r'(==?|!=?|[-<>+*%&|^/])=?', Operator, 'slashstartsregex'),
|
| 1509 |
+
(r'[{(\[;,]', Punctuation, 'slashstartsregex'),
|
| 1510 |
+
(r'[})\].]', Punctuation),
|
| 1511 |
+
(r'(import|return|continue|if|else)\b', Keyword, 'slashstartsregex'),
|
| 1512 |
+
(r'(var|const|function|reducer|sub|input)\b', Keyword.Declaration,
|
| 1513 |
+
'slashstartsregex'),
|
| 1514 |
+
(r'(batch|emit|filter|head|join|keep|pace|pass|put|read|reduce|remove|'
|
| 1515 |
+
r'sequence|skip|sort|split|tail|unbatch|uniq|view|write)\b',
|
| 1516 |
+
Keyword.Reserved),
|
| 1517 |
+
(r'(true|false|null|Infinity)\b', Keyword.Constant),
|
| 1518 |
+
(r'(Array|Date|Juttle|Math|Number|Object|RegExp|String)\b',
|
| 1519 |
+
Name.Builtin),
|
| 1520 |
+
(JS_IDENT, Name.Other),
|
| 1521 |
+
(r'[0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?', Number.Float),
|
| 1522 |
+
(r'[0-9]+', Number.Integer),
|
| 1523 |
+
(r'"(\\\\|\\[^\\]|[^"\\])*"', String.Double),
|
| 1524 |
+
(r"'(\\\\|\\[^\\]|[^'\\])*'", String.Single),
|
| 1525 |
+
]
|
| 1526 |
+
|
| 1527 |
+
}
|
| 1528 |
+
|
| 1529 |
+
|
| 1530 |
+
class NodeConsoleLexer(Lexer):
|
| 1531 |
+
"""
|
| 1532 |
+
For parsing within an interactive Node.js REPL, such as:
|
| 1533 |
+
|
| 1534 |
+
.. sourcecode:: nodejsrepl
|
| 1535 |
+
|
| 1536 |
+
> let a = 3
|
| 1537 |
+
undefined
|
| 1538 |
+
> a
|
| 1539 |
+
3
|
| 1540 |
+
> let b = '4'
|
| 1541 |
+
undefined
|
| 1542 |
+
> b
|
| 1543 |
+
'4'
|
| 1544 |
+
> b == a
|
| 1545 |
+
false
|
| 1546 |
+
|
| 1547 |
+
.. versionadded: 2.10
|
| 1548 |
+
"""
|
| 1549 |
+
name = 'Node.js REPL console session'
|
| 1550 |
+
aliases = ['nodejsrepl', ]
|
| 1551 |
+
mimetypes = ['text/x-nodejsrepl', ]
|
| 1552 |
+
url = 'https://nodejs.org'
|
| 1553 |
+
version_added = ''
|
| 1554 |
+
|
| 1555 |
+
def get_tokens_unprocessed(self, text):
|
| 1556 |
+
jslexer = JavascriptLexer(**self.options)
|
| 1557 |
+
|
| 1558 |
+
curcode = ''
|
| 1559 |
+
insertions = []
|
| 1560 |
+
|
| 1561 |
+
for match in line_re.finditer(text):
|
| 1562 |
+
line = match.group()
|
| 1563 |
+
if line.startswith('> '):
|
| 1564 |
+
insertions.append((len(curcode),
|
| 1565 |
+
[(0, Generic.Prompt, line[:1]),
|
| 1566 |
+
(1, Whitespace, line[1:2])]))
|
| 1567 |
+
|
| 1568 |
+
curcode += line[2:]
|
| 1569 |
+
elif line.startswith('...'):
|
| 1570 |
+
# node does a nested ... thing depending on depth
|
| 1571 |
+
code = line.lstrip('.')
|
| 1572 |
+
lead = len(line) - len(code)
|
| 1573 |
+
|
| 1574 |
+
insertions.append((len(curcode),
|
| 1575 |
+
[(0, Generic.Prompt, line[:lead])]))
|
| 1576 |
+
|
| 1577 |
+
curcode += code
|
| 1578 |
+
else:
|
| 1579 |
+
if curcode:
|
| 1580 |
+
yield from do_insertions(insertions,
|
| 1581 |
+
jslexer.get_tokens_unprocessed(curcode))
|
| 1582 |
+
|
| 1583 |
+
curcode = ''
|
| 1584 |
+
insertions = []
|
| 1585 |
+
|
| 1586 |
+
yield from do_insertions([],
|
| 1587 |
+
jslexer.get_tokens_unprocessed(line))
|
| 1588 |
+
|
| 1589 |
+
if curcode:
|
| 1590 |
+
yield from do_insertions(insertions,
|
| 1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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pygments.lexers.jsonnet
|
| 3 |
+
~~~~~~~~~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
Lexer for Jsonnet data templating language.
|
| 6 |
+
|
| 7 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 8 |
+
:license: BSD, see LICENSE for details.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
from pygments.lexer import include, RegexLexer, words
|
| 12 |
+
from pygments.token import Comment, Keyword, Name, Number, Operator, \
|
| 13 |
+
Punctuation, String, Text, Whitespace
|
| 14 |
+
|
| 15 |
+
__all__ = ['JsonnetLexer']
|
| 16 |
+
|
| 17 |
+
jsonnet_token = r'[^\W\d]\w*'
|
| 18 |
+
jsonnet_function_token = jsonnet_token + r'(?=\()'
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
def string_rules(quote_mark):
|
| 22 |
+
return [
|
| 23 |
+
(rf"[^{quote_mark}\\]", String),
|
| 24 |
+
(r"\\.", String.Escape),
|
| 25 |
+
(quote_mark, String, '#pop'),
|
| 26 |
+
]
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def quoted_field_name(quote_mark):
|
| 30 |
+
return [
|
| 31 |
+
(rf'([^{quote_mark}\\]|\\.)*{quote_mark}',
|
| 32 |
+
Name.Variable, 'field_separator')
|
| 33 |
+
]
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
class JsonnetLexer(RegexLexer):
|
| 37 |
+
"""Lexer for Jsonnet source code."""
|
| 38 |
+
|
| 39 |
+
name = 'Jsonnet'
|
| 40 |
+
aliases = ['jsonnet']
|
| 41 |
+
filenames = ['*.jsonnet', '*.libsonnet']
|
| 42 |
+
url = "https://jsonnet.org"
|
| 43 |
+
version_added = ''
|
| 44 |
+
tokens = {
|
| 45 |
+
# Not used by itself
|
| 46 |
+
'_comments': [
|
| 47 |
+
(r'(//|#).*\n', Comment.Single),
|
| 48 |
+
(r'/\*\*([^/]|/(?!\*))*\*/', String.Doc),
|
| 49 |
+
(r'/\*([^/]|/(?!\*))*\*/', Comment),
|
| 50 |
+
],
|
| 51 |
+
'root': [
|
| 52 |
+
include('_comments'),
|
| 53 |
+
(r"@'.*'", String),
|
| 54 |
+
(r'@".*"', String),
|
| 55 |
+
(r"'", String, 'singlestring'),
|
| 56 |
+
(r'"', String, 'doublestring'),
|
| 57 |
+
(r'\|\|\|(.|\n)*\|\|\|', String),
|
| 58 |
+
# Jsonnet has no integers, only an IEEE754 64-bit float
|
| 59 |
+
(r'[+-]?[0-9]+(.[0-9])?', Number.Float),
|
| 60 |
+
# Omit : despite spec because it appears to be used as a field
|
| 61 |
+
# separator
|
| 62 |
+
(r'[!$~+\-&|^=<>*/%]', Operator),
|
| 63 |
+
(r'\{', Punctuation, 'object'),
|
| 64 |
+
(r'\[', Punctuation, 'array'),
|
| 65 |
+
(r'local\b', Keyword, ('local_name')),
|
| 66 |
+
(r'assert\b', Keyword, 'assert'),
|
| 67 |
+
(words([
|
| 68 |
+
'assert', 'else', 'error', 'false', 'for', 'if', 'import',
|
| 69 |
+
'importstr', 'in', 'null', 'tailstrict', 'then', 'self',
|
| 70 |
+
'super', 'true',
|
| 71 |
+
], suffix=r'\b'), Keyword),
|
| 72 |
+
(r'\s+', Whitespace),
|
| 73 |
+
(r'function(?=\()', Keyword, 'function_params'),
|
| 74 |
+
(r'std\.' + jsonnet_function_token, Name.Builtin, 'function_args'),
|
| 75 |
+
(jsonnet_function_token, Name.Function, 'function_args'),
|
| 76 |
+
(jsonnet_token, Name.Variable),
|
| 77 |
+
(r'[\.()]', Punctuation),
|
| 78 |
+
],
|
| 79 |
+
'singlestring': string_rules("'"),
|
| 80 |
+
'doublestring': string_rules('"'),
|
| 81 |
+
'array': [
|
| 82 |
+
(r',', Punctuation),
|
| 83 |
+
(r'\]', Punctuation, '#pop'),
|
| 84 |
+
include('root'),
|
| 85 |
+
],
|
| 86 |
+
'local_name': [
|
| 87 |
+
(jsonnet_function_token, Name.Function, 'function_params'),
|
| 88 |
+
(jsonnet_token, Name.Variable),
|
| 89 |
+
(r'\s+', Whitespace),
|
| 90 |
+
('(?==)', Whitespace, ('#pop', 'local_value')),
|
| 91 |
+
],
|
| 92 |
+
'local_value': [
|
| 93 |
+
(r'=', Operator),
|
| 94 |
+
(r';', Punctuation, '#pop'),
|
| 95 |
+
include('root'),
|
| 96 |
+
],
|
| 97 |
+
'assert': [
|
| 98 |
+
(r':', Punctuation),
|
| 99 |
+
(r';', Punctuation, '#pop'),
|
| 100 |
+
include('root'),
|
| 101 |
+
],
|
| 102 |
+
'function_params': [
|
| 103 |
+
(jsonnet_token, Name.Variable),
|
| 104 |
+
(r'\(', Punctuation),
|
| 105 |
+
(r'\)', Punctuation, '#pop'),
|
| 106 |
+
(r',', Punctuation),
|
| 107 |
+
(r'\s+', Whitespace),
|
| 108 |
+
(r'=', Operator, 'function_param_default'),
|
| 109 |
+
],
|
| 110 |
+
'function_args': [
|
| 111 |
+
(r'\(', Punctuation),
|
| 112 |
+
(r'\)', Punctuation, '#pop'),
|
| 113 |
+
(r',', Punctuation),
|
| 114 |
+
(r'\s+', Whitespace),
|
| 115 |
+
include('root'),
|
| 116 |
+
],
|
| 117 |
+
'object': [
|
| 118 |
+
(r'\s+', Whitespace),
|
| 119 |
+
(r'local\b', Keyword, 'object_local_name'),
|
| 120 |
+
(r'assert\b', Keyword, 'object_assert'),
|
| 121 |
+
(r'\[', Operator, 'field_name_expr'),
|
| 122 |
+
(fr'(?={jsonnet_token})', Text, 'field_name'),
|
| 123 |
+
(r'\}', Punctuation, '#pop'),
|
| 124 |
+
(r'"', Name.Variable, 'double_field_name'),
|
| 125 |
+
(r"'", Name.Variable, 'single_field_name'),
|
| 126 |
+
include('_comments'),
|
| 127 |
+
],
|
| 128 |
+
'field_name': [
|
| 129 |
+
(jsonnet_function_token, Name.Function,
|
| 130 |
+
('field_separator', 'function_params')
|
| 131 |
+
),
|
| 132 |
+
(jsonnet_token, Name.Variable, 'field_separator'),
|
| 133 |
+
],
|
| 134 |
+
'double_field_name': quoted_field_name('"'),
|
| 135 |
+
'single_field_name': quoted_field_name("'"),
|
| 136 |
+
'field_name_expr': [
|
| 137 |
+
(r'\]', Operator, 'field_separator'),
|
| 138 |
+
include('root'),
|
| 139 |
+
],
|
| 140 |
+
'function_param_default': [
|
| 141 |
+
(r'(?=[,\)])', Whitespace, '#pop'),
|
| 142 |
+
include('root'),
|
| 143 |
+
],
|
| 144 |
+
'field_separator': [
|
| 145 |
+
(r'\s+', Whitespace),
|
| 146 |
+
(r'\+?::?:?', Punctuation, ('#pop', '#pop', 'field_value')),
|
| 147 |
+
include('_comments'),
|
| 148 |
+
],
|
| 149 |
+
'field_value': [
|
| 150 |
+
(r',', Punctuation, '#pop'),
|
| 151 |
+
(r'\}', Punctuation, '#pop:2'),
|
| 152 |
+
include('root'),
|
| 153 |
+
],
|
| 154 |
+
'object_assert': [
|
| 155 |
+
(r':', Punctuation),
|
| 156 |
+
(r',', Punctuation, '#pop'),
|
| 157 |
+
include('root'),
|
| 158 |
+
],
|
| 159 |
+
'object_local_name': [
|
| 160 |
+
(jsonnet_token, Name.Variable, ('#pop', 'object_local_value')),
|
| 161 |
+
(r'\s+', Whitespace),
|
| 162 |
+
],
|
| 163 |
+
'object_local_value': [
|
| 164 |
+
(r'=', Operator),
|
| 165 |
+
(r',', Punctuation, '#pop'),
|
| 166 |
+
(r'\}', Punctuation, '#pop:2'),
|
| 167 |
+
include('root'),
|
| 168 |
+
],
|
| 169 |
+
}
|
mplug_owl2/lib/python3.10/site-packages/pygments/lexers/kusto.py
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
pygments.lexers.kusto
|
| 3 |
+
~~~~~~~~~~~~~~~~~~~~~
|
| 4 |
+
|
| 5 |
+
Lexers for Kusto Query Language (KQL).
|
| 6 |
+
|
| 7 |
+
:copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
|
| 8 |
+
:license: BSD, see LICENSE for details.
|
| 9 |
+
"""
|
| 10 |
+
|
| 11 |
+
from pygments.lexer import RegexLexer, words
|
| 12 |
+
from pygments.token import (Comment, Keyword, Name, Number, Punctuation,
|
| 13 |
+
String, Whitespace)
|
| 14 |
+
|
| 15 |
+
__all__ = ["KustoLexer"]
|
| 16 |
+
|
| 17 |
+
# Although these all seem to be keywords
|
| 18 |
+
# https://github.com/microsoft/Kusto-Query-Language/blob/master/src/Kusto.Language/Syntax/SyntaxFacts.cs
|
| 19 |
+
# it appears that only the ones with tags here
|
| 20 |
+
# https://github.com/microsoft/Kusto-Query-Language/blob/master/src/Kusto.Language/Parser/QueryGrammar.cs
|
| 21 |
+
# are highlighted in the Azure portal log query editor.
|
| 22 |
+
KUSTO_KEYWORDS = [
|
| 23 |
+
'and', 'as', 'between', 'by', 'consume', 'contains', 'containscs', 'count',
|
| 24 |
+
'distinct', 'evaluate', 'extend', 'facet', 'filter', 'find', 'fork',
|
| 25 |
+
'getschema', 'has', 'invoke', 'join', 'limit', 'lookup', 'make-series',
|
| 26 |
+
'matches regex', 'mv-apply', 'mv-expand', 'notcontains', 'notcontainscs',
|
| 27 |
+
'!contains', '!has', '!startswith', 'on', 'or', 'order', 'parse', 'parse-where',
|
| 28 |
+
'parse-kv', 'partition', 'print', 'project', 'project-away', 'project-keep',
|
| 29 |
+
'project-rename', 'project-reorder', 'range', 'reduce', 'regex', 'render',
|
| 30 |
+
'sample', 'sample-distinct', 'scan', 'search', 'serialize', 'sort', 'startswith',
|
| 31 |
+
'summarize', 'take', 'top', 'top-hitters', 'top-nested', 'typeof', 'union',
|
| 32 |
+
'where', 'bool', 'date', 'datetime', 'int', 'long', 'real', 'string', 'time'
|
| 33 |
+
]
|
| 34 |
+
|
| 35 |
+
# From
|
| 36 |
+
# https://github.com/microsoft/Kusto-Query-Language/blob/master/src/Kusto.Language/Syntax/SyntaxFacts.cs
|
| 37 |
+
KUSTO_PUNCTUATION = [
|
| 38 |
+
"(", ")", "[", "]", "{", "}", "|", "<|", "+", "-", "*", "/",
|
| 39 |
+
"%", ".." "!", "<", "<=", ">", ">=", "=", "==", "!=", "<>",
|
| 40 |
+
":", ";", ",", "=~", "!~", "?", "=>",
|
| 41 |
+
]
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
class KustoLexer(RegexLexer):
|
| 45 |
+
"""For Kusto Query Language source code.
|
| 46 |
+
"""
|
| 47 |
+
|
| 48 |
+
name = "Kusto"
|
| 49 |
+
aliases = ["kql", "kusto"]
|
| 50 |
+
filenames = ["*.kql", "*.kusto", ".csl"]
|
| 51 |
+
url = "https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query"
|
| 52 |
+
version_added = '2.17'
|
| 53 |
+
|
| 54 |
+
tokens = {
|
| 55 |
+
"root": [
|
| 56 |
+
(r"\s+", Whitespace),
|
| 57 |
+
(words(KUSTO_KEYWORDS, suffix=r"\b"), Keyword),
|
| 58 |
+
(r"//.*", Comment),
|
| 59 |
+
(words(KUSTO_PUNCTUATION), Punctuation),
|
| 60 |
+
(r"[^\W\d]\w*", Name),
|
| 61 |
+
# Numbers can take the form 1, .1, 1., 1.1, 1.1111, etc.
|
| 62 |
+
(r"\d+[.]\d*|[.]\d+", Number.Float),
|
| 63 |
+
(r"\d+", Number.Integer),
|
| 64 |
+
(r"'", String, "single_string"),
|
| 65 |
+
(r'"', String, "double_string"),
|
| 66 |
+
(r"@'", String, "single_verbatim"),
|
| 67 |
+
(r'@"', String, "double_verbatim"),
|
| 68 |
+
(r"```", String, "multi_string"),
|
| 69 |
+
],
|
| 70 |
+
"single_string": [
|
| 71 |
+
(r"'", String, "#pop"),
|
| 72 |
+
(r"\\.", String.Escape),
|
| 73 |
+
(r"[^'\\]+", String),
|
| 74 |
+
],
|
| 75 |
+
"double_string": [
|
| 76 |
+
(r'"', String, "#pop"),
|
| 77 |
+
(r"\\.", String.Escape),
|
| 78 |
+
(r'[^"\\]+', String),
|
| 79 |
+
],
|
| 80 |
+
"single_verbatim": [
|
| 81 |
+
(r"'", String, "#pop"),
|
| 82 |
+
(r"[^']+", String),
|
| 83 |
+
],
|
| 84 |
+
"double_verbatim": [
|
| 85 |
+
(r'"', String, "#pop"),
|
| 86 |
+
(r'[^"]+', String),
|
| 87 |
+
],
|
| 88 |
+
"multi_string": [
|
| 89 |
+
(r"[^`]+", String),
|
| 90 |
+
(r"```", String, "#pop"),
|
| 91 |
+
(r"`", String),
|
| 92 |
+
],
|
| 93 |
+
}
|