php-kilo/tests/__snapshots__/EditorTest__testOpen__1.json
Timothy J. Warren 0914265492
All checks were successful
timw4mail/php-kilo/pipeline/head This commit looks good
Fix tests after type change
2021-03-10 22:55:52 -05:00

2087 lines
40 KiB
JSON

{
"rows": [
{
"render": "\/**",
"hl": [
2,
2,
2
],
"idx": 0
},
{
"render": " * Interfaces for PHP FFI",
"hl": [
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
],
"idx": 1
},
{
"render": " *",
"hl": [
2,
2
],
"idx": 2
},
{
"render": " * Most of the structure code is cribbed from GLib",
"hl": [
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
],
"idx": 3
},
{
"render": " *",
"hl": [
2,
2
],
"idx": 4
},
{
"render": " * Defines are not (generally) recognized by the FFI integration",
"hl": [
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
],
"idx": 5
},
{
"render": " *\/",
"hl": [
2,
2,
2
],
"idx": 6
},
{
"render": "",
"hl": [],
"idx": 7
},
{
"render": "\/\/ PHP 'constants' for FFI integration",
"hl": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"idx": 8
},
{
"render": "\/\/ These seem to be the only define statements supported by the FFI integration",
"hl": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"idx": 9
},
{
"render": "#define FFI_SCOPE \"terminal\"",
"hl": [
4,
4,
4,
4,
4,
4,
4,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5
],
"idx": 10
},
{
"render": "#define FFI_LIB \"libc.so.6\"",
"hl": [
4,
4,
4,
4,
4,
4,
4,
0,
0,
0,
0,
0,
0,
0,
0,
0,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5
],
"idx": 11
},
{
"render": "",
"hl": [],
"idx": 12
},
{
"render": "\/\/ Nonsense for a test with a single quote",
"hl": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"idx": 13
},
{
"render": "\/\/ Ignored by PHP due to the octothorpe (#)",
"hl": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"idx": 14
},
{
"render": "#if 0",
"hl": [
4,
4,
4,
0,
6
],
"idx": 15
},
{
"render": "# char* x = \"String with \\\" escape char\";",
"hl": [
0,
0,
0,
0,
0,
4,
4,
4,
4,
0,
0,
0,
0,
0,
0,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
5,
0
],
"idx": 16
},
{
"render": "# char y = 'q';",
"hl": [
0,
0,
0,
0,
0,
4,
4,
4,
4,
0,
0,
0,
0,
0,
5,
5,
5,
0
],
"idx": 17
},
{
"render": "#endif",
"hl": [
4,
4,
4,
4,
4,
4
],
"idx": 18
},
{
"render": "",
"hl": [],
"idx": 19
},
{
"render": "\/\/ -----------------------------------------------------------------------------",
"hl": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"idx": 20
},
{
"render": "\/\/! <termios.h>",
"hl": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"idx": 21
},
{
"render": "\/\/ -----------------------------------------------------------------------------",
"hl": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"idx": 22
},
{
"render": "",
"hl": [],
"idx": 23
},
{
"render": "\/* Type of terminal control flag masks. *\/",
"hl": [
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
],
"idx": 24
},
{
"render": "typedef unsigned long int tcflag_t;",
"hl": [
3,
3,
3,
3,
3,
3,
3,
0,
4,
4,
4,
4,
4,
4,
4,
4,
0,
4,
4,
4,
4,
0,
4,
4,
4,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"idx": 25
},
{
"render": "",
"hl": [],
"idx": 26
},
{
"render": "\/* Type of control characters. *\/",
"hl": [
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
],
"idx": 27
},
{
"render": "typedef unsigned char cc_t;",
"hl": [
3,
3,
3,
3,
3,
3,
3,
0,
4,
4,
4,
4,
4,
4,
4,
4,
0,
4,
4,
4,
4,
0,
0,
0,
0,
0,
0
],
"idx": 28
},
{
"render": "",
"hl": [],
"idx": 29
},
{
"render": "\/* Type of baud rate specifiers. *\/",
"hl": [
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
],
"idx": 30
},
{
"render": "typedef long int speed_t;",
"hl": [
3,
3,
3,
3,
3,
3,
3,
0,
4,
4,
4,
4,
0,
4,
4,
4,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"idx": 31
},
{
"render": "",
"hl": [],
"idx": 32
},
{
"render": "\/* Terminal control structure. *\/",
"hl": [
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
],
"idx": 33
},
{
"render": "struct termios",
"hl": [
3,
3,
3,
3,
3,
3,
0,
0,
0,
0,
0,
0,
0,
0
],
"idx": 34
},
{
"render": "{",
"hl": [
0
],
"idx": 35
},
{
"render": " \/* Input modes. *\/",
"hl": [
0,
0,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
],
"idx": 36
},
{
"render": " tcflag_t c_iflag;",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"idx": 37
},
{
"render": "",
"hl": [],
"idx": 38
},
{
"render": " \/* Output modes. *\/",
"hl": [
0,
0,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
],
"idx": 39
},
{
"render": " tcflag_t c_oflag;",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"idx": 40
},
{
"render": "",
"hl": [],
"idx": 41
},
{
"render": " \/* Control modes. *\/",
"hl": [
0,
0,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
],
"idx": 42
},
{
"render": " tcflag_t c_cflag;",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"idx": 43
},
{
"render": "",
"hl": [],
"idx": 44
},
{
"render": " \/* Local modes. *\/",
"hl": [
0,
0,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
],
"idx": 45
},
{
"render": " tcflag_t c_lflag;",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"idx": 46
},
{
"render": "",
"hl": [],
"idx": 47
},
{
"render": " \/* Control characters. *\/",
"hl": [
0,
0,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
],
"idx": 48
},
{
"render": " cc_t c_cc[20];",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
6,
6,
0,
0
],
"idx": 49
},
{
"render": "",
"hl": [],
"idx": 50
},
{
"render": " \/* Input and output baud rates. *\/",
"hl": [
0,
0,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
],
"idx": 51
},
{
"render": " speed_t __ispeed, __ospeed;",
"hl": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"idx": 52
},
{
"render": "};",
"hl": [
0,
0
],
"idx": 53
},
{
"render": "",
"hl": [],
"idx": 54
},
{
"render": "int tcgetattr (int fd, struct termios *termios_p);",
"hl": [
4,
4,
4,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
4,
4,
4,
0,
0,
0,
0,
0,
3,
3,
3,
3,
3,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"idx": 55
},
{
"render": "int tcsetattr (int fd, int optional_actions, const struct termios *termios_p);",
"hl": [
4,
4,
4,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
4,
4,
4,
0,
0,
0,
0,
0,
4,
4,
4,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
3,
3,
3,
3,
3,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"idx": 56
},
{
"render": "",
"hl": [],
"idx": 57
},
{
"render": "\/\/ -----------------------------------------------------------------------------",
"hl": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"idx": 58
},
{
"render": "\/\/! <sys\/ioctl.h>",
"hl": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"idx": 59
},
{
"render": "\/\/ -----------------------------------------------------------------------------",
"hl": [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
],
"idx": 60
},
{
"render": "struct winsize {",
"hl": [
3,
3,
3,
3,
3,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"idx": 61
},
{
"render": " unsigned short ws_row;",
"hl": [
0,
0,
0,
0,
4,
4,
4,
4,
4,
4,
4,
4,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"idx": 62
},
{
"render": " unsigned short ws_col;",
"hl": [
0,
0,
0,
0,
4,
4,
4,
4,
4,
4,
4,
4,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"idx": 63
},
{
"render": " unsigned short ws_xpixel;",
"hl": [
0,
0,
0,
0,
4,
4,
4,
4,
4,
4,
4,
4,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"idx": 64
},
{
"render": " unsigned short ws_ypixel;",
"hl": [
0,
0,
0,
0,
4,
4,
4,
4,
4,
4,
4,
4,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"idx": 65
},
{
"render": "};",
"hl": [
0,
0
],
"idx": 66
},
{
"render": "int ioctl (int, int, ...);",
"hl": [
4,
4,
4,
0,
0,
0,
0,
0,
0,
0,
0,
4,
4,
4,
0,
0,
4,
4,
4,
0,
0,
0,
0,
0,
0,
0
],
"idx": 67
}
],
"dirty": false,
"filename": "src\/ffi.h",
"syntax": {
"tokens": [],
"filetype": "C",
"filematch": [
".c",
".h",
".cpp"
],
"keywords1": [
"continue",
"typedef",
"switch",
"return",
"static",
"while",
"break",
"struct",
"union",
"class",
"else",
"enum",
"for",
"case",
"if"
],
"keywords2": [
"#include",
"unsigned",
"#define",
"#ifndef",
"double",
"signed",
"#endif",
"#ifdef",
"float",
"#error",
"#undef",
"long",
"char",
"int",
"void",
"#if"
],
"singleLineCommentStart": "\/\/",
"multiLineCommentStart": "\/*",
"multiLineCommentEnd": "*\/",
"flags": 3
},
"tokens": []
}