]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/pascal.micro
Update yaml header
[micro.git] / runtime / syntax / pascal.micro
1 syntax "pascal" "\.pas$"
2
3 # color identifier "\b[\pL_][\pL_\pN]*\b"
4
5 color comment "//.*"
6 color comment start="\(\*" end="\*\)"
7 color comment start="({)(?:[^$])" end="}"
8
9 color special start="asm" end="end"
10
11 color type "\b(?i:(string|ansistring|widestring|shortstring|char|ansichar|widechar|boolean|byte|shortint|word|smallint|longword|cardinal|longint|integer|int64|single|currency|double|extended))\b"
12
13 color statement "\b(?i:(and|asm|array|begin|break|case|const|constructor|continue|destructor|div|do|downto|else|end|file|for|function|goto|if|implementation|in|inline|interface|label|mod|not|object|of|on|operator|or|packed|procedure|program|record|repeat|resourcestring|set|shl|shr|then|to|type|unit|until|uses|var|while|with|xor))\b"
14 color statement "\b(?i:(as|class|dispose|except|exit|exports|finalization|finally|inherited|initialization|is|library|new|on|out|property|raise|self|threadvar|try))\b"
15 color statement "\b(?i:(absolute|abstract|alias|assembler|cdecl|cppdecl|default|export|external|forward|generic|index|local|name|nostackframe|oldfpccall|override|pascal|private|protected|public|published|read|register|reintroduce|safecall|softfloat|specialize|stdcall|virtual|write))\b"
16
17 color constant "\b(?i:(false|true|nil))\b"
18 color constant "\$[0-9A-Fa-f]+" "\b[+-]?[0-9]+([.]?[0-9]+)?(?i:e[+-]?[0-9]+)?"
19
20 color constant.string "'(?:[^']+|'')*'"
21
22
23
24 color preproc start="{\$" end="}"