mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-07 07:30:20 +09:00
Merge pull request #481 from sirikid/syntax-fix
Simple fix for Pascal syntax highlighting
This commit is contained in:
@@ -1786,7 +1786,7 @@ func runtimeSyntaxOcamlMicro() (*asset, error) {
|
||||
return a, nil
|
||||
}
|
||||
|
||||
var _runtimeSyntaxPascalMicro = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x84\x54\xc1\x6e\x23\x37\x0c\xbd\xfb\x2b\x8c\x69\x80\xd8\x09\x92\xed\xa1\x28\xd0\x05\x16\x41\x2f\x3d\x15\xfd\x81\xd8\x2d\x38\x12\xc7\xc3\x46\x23\x0a\x24\x27\xb6\x77\xd9\x7f\x2f\xa4\x71\x52\xb7\xc5\x62\x81\x81\xf4\x44\x3d\x8c\xf4\x1e\x29\xea\x39\x1b\x9c\xd6\x5d\x01\x0d\x90\xba\x75\xb7\x7b\x2c\xa0\x37\xdd\x6a\xf5\xdd\x3a\x70\x62\x59\x53\xc4\x6c\x34\x10\xca\xba\xdb\xf5\xcf\xbb\xf2\xeb\x1f\xfb\x36\xee\xca\x6f\xfb\xbb\x5d\xdf\xad\x56\x0b\x31\xf0\x34\x61\xb6\x75\xf7\xe1\xc3\xe3\x5d\xf7\x9f\xa0\x1a\x88\x7d\xea\x76\x9b\xdd\x5d\xb7\xc6\x1c\x3f\x75\xbb\xbb\xdd\xf6\x2b\xac\xcd\x97\xed\xe6\xe9\xe3\xf3\xef\x37\xfb\xed\x85\xfc\xd7\xfb\x29\x5a\x30\x10\xa4\x37\x2a\xe8\x74\xa1\x60\x8e\xef\x24\x3b\x17\xac\xb7\xdd\x3c\xd1\xc7\x8d\x9a\x50\x3e\x38\x64\xa5\x0b\x3c\x52\xc4\x0b\xd4\x91\xc5\x2e\x38\x8c\x20\x8d\xd6\x40\x25\x35\xd0\x33\x27\x84\xec\xfd\xd9\x70\xe1\x53\x36\x3f\xb2\x44\xd7\x09\x52\xaa\xab\xc4\xf9\xd0\x22\x01\x24\x52\x86\xd4\x22\x75\x87\xb2\xe1\x01\xa5\xce\x3f\xfe\xe0\x4a\xf9\x90\xd0\xc3\x2c\x82\x39\x9c\x3d\xf2\xdc\x27\x74\x3c\x19\xe6\x88\x71\xbb\xbd\xf2\x53\x0d\x0c\x17\x47\x2f\x4a\x20\x47\x07\x9d\x1c\x44\xe0\xec\x3d\x1e\x28\x7b\x2f\x08\x2f\x1e\x40\xd1\x03\x67\xb5\x65\x94\x39\x18\x4b\xc5\x46\x79\x46\x6f\x7a\x97\x58\xa4\x57\x8f\xec\x91\x8f\xd9\xd8\x31\x29\x3a\xe6\xe8\x03\x25\xf4\x81\xc5\x87\x39\x07\x23\xce\x7e\x60\x63\xa7\xc1\x69\x2a\xa9\xdd\x03\x5a\x98\xea\x97\x28\x63\x93\x26\x03\x04\xf4\x04\x3d\x26\x9f\x38\x7a\x66\x73\xee\xff\xc4\x60\xce\x83\x73\x76\x2e\x28\x50\xcf\x65\xf1\x02\xe1\x05\xa3\x17\xe1\x80\x71\x16\xac\xe8\x20\x30\xb9\x60\xa8\xe6\x09\x16\x04\x73\x41\xe5\x59\xc2\x7b\x8a\xd0\x5c\xc7\xe4\x3a\x8a\xdb\x88\xd9\x8d\xbd\x26\xd8\xe7\x4c\xe6\x73\x36\x4a\x3e\x2b\xaa\xbf\xd6\xac\x8d\x55\xc7\x91\x6c\xf4\x13\xcb\xe2\xe7\x57\xed\x54\x0f\x09\x54\x3d\x92\x16\xae\x3e\x9c\x02\x16\x73\x3c\x51\x1d\x4a\xad\x0c\x1f\x6a\x36\xe9\xf3\xa2\xbd\x2d\xd2\xd9\x29\x8f\x28\x64\x18\x9d\x32\x19\xfd\x43\x20\xf5\x44\xbd\x80\x9c\x3d\xe3\xb1\xe9\x9f\xad\xca\x2c\x28\x76\x76\x01\x52\x74\xc5\x34\xb8\x8d\x82\x10\xeb\x95\x4d\xce\xdf\xb8\x67\xaf\x9c\x66\x43\x87\x5e\x4d\x20\x98\x43\x22\x50\x07\x55\x9c\xfa\x84\xe2\x21\x62\x48\x1e\x4a\x69\x73\xc4\x01\xe6\xf4\x26\xa1\x15\x97\xd4\x92\x1c\x58\x8e\x20\xd1\x0f\x98\x51\x28\x38\xe5\x88\x27\x4f\x1c\x20\x79\x86\x09\x3d\xb3\x1a\x84\x97\x41\xea\x82\x53\x1c\x4a\x08\x90\x92\xf3\x2b\x8a\x50\x44\x5f\xba\x84\x17\xa1\x57\xb0\x96\x3e\xc3\x50\x6d\x28\x73\x9f\x28\x2c\x93\x8e\x58\x53\x09\x75\x38\x90\x1a\x8a\x0b\x52\x36\xe1\x38\x07\x74\x85\x01\xdb\x5f\x95\x07\x1b\x12\x83\xf9\xe5\x4d\xd3\x67\x74\xb5\xd8\x36\x5f\x49\x6c\x86\xe4\xc7\x6a\xf3\xbf\x9e\x45\xab\x6f\xb8\xb2\x67\x80\x5a\xc3\x26\x33\x7a\xa6\x74\x6d\xe5\x15\xf5\xe6\xf9\xfb\x87\x9f\x7e\x7e\xf8\x05\x1e\x86\xfd\x7d\xd7\x3a\xd9\xfd\xc3\xfe\xa9\x46\xf7\xf7\x9b\xe7\xc7\x37\xb8\x7d\xaa\xff\xc4\xab\xcd\xed\xd3\xff\x8e\x7e\x5c\x2a\x73\xdd\xdd\xb6\x36\x75\xbb\xbf\xf7\xdb\xdb\xed\xdd\x6d\xb7\x5a\xbd\x51\x8b\x60\x2d\xf3\xb7\x36\xf5\x65\x77\xf3\xde\xc9\xfe\x0e\x00\x00\xff\xff\xcd\x7c\x71\x03\x73\x05\x00\x00")
|
||||
var _runtimeSyntaxPascalMicro = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x84\x54\xed\x6e\xe4\x36\x0c\xfc\x9f\xa7\x58\xf8\x02\xec\x47\x9a\x5c\x0b\x14\x05\x7a\xc0\x61\xd1\x3f\xfd\x55\xf4\x05\xe2\x6d\x41\x4b\xf4\x9a\x8d\x4c\x09\x14\xbd\xbb\x6e\x78\xef\x5e\x48\xde\xa4\xb9\x2b\x82\x02\x86\x34\xa2\xc6\x32\x67\x48\x39\xcf\xac\x70\x59\x35\x09\xb2\x83\xd0\xac\x9a\xf6\x21\x41\xbe\x6d\x6e\x6e\x3e\xac\x5c\x0c\x51\x56\xe4\x91\x95\x7a\x42\x59\x35\x6d\xf7\xd8\xa6\xdf\xfe\x3c\xd4\xb1\x4d\xbf\x1f\x76\x6d\xd7\xdc\xdc\x2c\x44\x9d\x13\x16\xca\x66\x4f\x9f\x36\x59\x85\xf8\x68\xc0\x99\xae\xf0\x4c\x1e\xaf\x30\x0f\x51\xf4\x8a\xdd\x00\x52\x69\x15\x14\x52\x05\x5d\x8c\x01\x81\xad\x9b\x15\x17\x3e\xb1\xda\x39\x8a\xb7\x3c\x42\x08\x65\x15\x22\x1f\x6b\xc4\x81\x78\x62\x08\x35\x52\x76\x88\x15\x8f\x28\x65\xfe\xe9\x47\xcb\xc4\xc7\x80\xe6\x26\x11\x64\x37\x9b\x8f\x53\x17\xd0\xf0\xa2\xc8\x1e\xfd\x76\xfb\x46\x44\x56\x50\x1c\x91\xf5\x55\x09\xb0\x37\xc8\xa3\x81\x08\xcc\xd6\xe1\x91\xd8\x3a\x41\x78\x32\x07\x19\xcd\x45\xce\xba\x8c\x32\x39\x8d\x52\xb0\x12\x4f\x68\x55\xef\x12\xf3\x74\x32\x1f\xcd\xc7\x33\x6b\x34\x0c\x19\x0d\xd9\x5b\x4f\x01\xad\x8f\x62\xfd\xc4\x4e\x29\xb2\x1d\xa3\x46\xa3\xde\x68\x4c\xa1\xe6\x01\x35\x4c\xe5\x09\xc4\x58\xa5\x49\x0f\x0e\x2d\x40\x87\xc1\xc6\xe8\x8d\xa3\x5a\xec\xfe\x42\xa7\x16\x7b\x8b\x6c\x31\xa1\x40\xf9\x6e\x14\x4b\xe0\x9e\xd0\x5b\x92\xe8\xd0\x4f\x82\x05\x1d\x05\x46\x13\x74\xc5\x3c\xc1\x84\xa0\x26\x98\xe3\x24\xee\xb5\x44\xa8\x96\x87\x60\x79\x10\xd3\x01\xd9\x34\x5a\x29\xb0\x4d\x4c\x6a\x13\x2b\x05\x9b\x32\x66\x3b\x95\xaa\x0d\x45\xc7\x99\x74\xb0\x4b\x94\xc5\xcf\x77\xed\xcc\xe6\x02\xe4\x6c\x9e\x72\x8a\xc5\x87\x8b\xc3\xa4\x86\x17\x2a\x43\x2a\x9d\x61\x7d\xa9\x26\xfd\xbd\x68\xaf\x8b\x30\x1b\xf1\x80\x42\x8a\xde\x88\x49\xe9\x5f\x02\x65\x0b\xd4\x09\xc8\x6c\x8c\xe7\xaa\x7f\xd2\x22\x33\xa1\xe8\x6c\x02\x94\xd1\x32\x86\xde\x74\x10\x04\x5f\x52\x56\x99\xff\x27\xcf\x2e\xc7\x30\x29\x1a\x74\x59\x05\x9c\x1a\x04\x82\x6c\x90\x33\x8e\x5d\x40\x31\xe7\xd1\x05\x73\x29\xd5\xd9\x63\x0f\x53\x78\x91\x50\x9b\x4b\x4a\x4b\xf6\x51\xce\x20\xde\x8e\xc8\x28\xe4\x8c\xd8\xe3\xc5\x42\x74\x10\x8c\x61\x44\xe3\x98\x15\xdc\x53\x2f\x65\x11\x83\xef\x93\x73\x10\x82\xc5\x13\x8a\x90\x47\x5b\xae\xa6\x25\xa1\x13\x68\x2d\x9f\xa2\x2b\x36\xa4\xa9\x0b\xe4\x96\x29\x0f\x58\x4a\x09\x65\x38\x52\x56\x14\x13\x24\x56\x89\x7e\x72\x68\x19\x7a\xac\xa7\xe6\xd8\x6b\x1f\x22\xa8\xe5\x84\xae\x9a\x88\x96\xd5\xd7\xcd\x13\x89\x4e\x10\xec\x5c\x6c\xfe\xea\x5a\xd4\xfe\x86\x37\xf6\xf4\x50\x7a\x58\x65\x42\x63\x0a\x5f\x5f\xa1\xe5\xe0\xe2\xa9\xe8\xe7\x06\xf2\xd8\xac\x90\xfd\xe7\x06\xd9\xff\xe7\xc0\x07\x9e\xc6\xae\xfe\x5a\x6e\x1f\xbf\xbf\xff\xf9\x97\xfb\x5f\xe1\xbe\x3f\xdc\x35\xf5\x5f\x73\x77\x7f\xd8\x97\xe8\xe1\x6e\xf3\xf8\xf0\x02\xb7\xfb\x92\x00\xbe\xd9\xdc\xee\x9b\x6f\x4f\x5d\xba\x78\xd5\x7c\xa8\x8c\xe7\x1f\xbe\xfb\xf2\x2e\x65\xbd\xd9\x7f\x7a\xfc\x63\x7d\xb8\xb3\xf5\x7a\xbb\x5b\xbf\x66\x98\x04\xcb\x9d\x79\x91\xf1\xdc\xde\x5e\x65\x7c\x79\x23\x62\x5c\x7a\xe6\xe3\xc7\x87\x5d\xf3\x4d\xf0\xfa\x5e\xbb\x69\x77\xd7\x17\xdb\x5d\xbb\x7d\x87\xb5\x79\xde\xd6\x34\x6e\x0f\xdb\xd7\xaf\xfc\x13\x00\x00\xff\xff\xda\x99\x50\x5b\x9b\x05\x00\x00")
|
||||
|
||||
func runtimeSyntaxPascalMicroBytes() ([]byte, error) {
|
||||
return bindataRead(
|
||||
|
||||
@@ -2,12 +2,6 @@ syntax "pascal" "\.pas$"
|
||||
|
||||
# color identifier "\b[\pL_][\pL_\pN]*\b"
|
||||
|
||||
color comment "//.*"
|
||||
color comment start="\(\*" end="\*\)"
|
||||
color comment start="({)(?:[^$])" end="}"
|
||||
|
||||
color special start="asm" end="end"
|
||||
|
||||
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"
|
||||
|
||||
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"
|
||||
@@ -15,10 +9,15 @@ color statement "\b(?i:(as|class|dispose|except|exit|exports|finalization|finall
|
||||
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"
|
||||
|
||||
color constant "\b(?i:(false|true|nil))\b"
|
||||
color constant "\$[0-9A-Fa-f]+" "\b[+-]?[0-9]+([.]?[0-9]+)?(?i:e[+-]?[0-9]+)?"
|
||||
|
||||
color special start="asm" end="end"
|
||||
|
||||
color constant.number "\$[0-9A-Fa-f]+" "\b[+-]?[0-9]+([.]?[0-9]+)?(?i:e[+-]?[0-9]+)?"
|
||||
color constant.string "#[0-9]{1,}"
|
||||
color constant.string "'(?:[^']+|'')*'"
|
||||
|
||||
color preproc start="{\$" end="}"
|
||||
|
||||
|
||||
color preproc start="{\$" end="}"
|
||||
color comment "//.*"
|
||||
color comment start="\(\*" end="\*\)"
|
||||
color comment start="({)(?:[^$])" end="}"
|
||||
Reference in New Issue
Block a user