|
ze
|
Core editor types, macros, and global state. More...
#include <stddef.h>#include <time.h>#include <termios.h>

Go to the source code of this file.
Classes | |
| struct | editorSyntax |
| struct | erow |
| struct | editorConfig |
Macros | |
| #define | _DEFAULT_SOURCE |
| #define | _BSD_SOURCE |
| #define | _GNU_SOURCE |
| #define | ZE_VERSION "1.0.0" |
| #define | ZE_TAB_STOP 2 |
| #define | ZE_QUIT_TIMES 1 |
| #define | CTRL_KEY(k) ((k) & 0x1f) |
| #define | HL_HIGHLIGHT_NUMBERS (1<<0) |
| #define | HL_HIGHLIGHT_STRINGS (1<<1) |
Typedefs | |
| typedef struct erow | erow |
Enumerations | |
| enum | editorKey { ARROW_LEFT = CTRL_KEY('b') , ARROW_RIGHT = CTRL_KEY('f') , ARROW_UP = CTRL_KEY('p') , ARROW_DOWN = CTRL_KEY('n') , PAGE_UP = CTRL_KEY('g') , PAGE_DOWN = CTRL_KEY('v') , HOME_KEY = CTRL_KEY('a') , END_KEY = CTRL_KEY('e') , BACKSPACE = 127 } |
| enum | editorHighlight { HL_NORMAL = 0 , HL_COMMENT , HL_MLCOMMENT , HL_KEYWORD1 , HL_KEYWORD2 , HL_STRING , HL_NUMBER , HL_MATCH } |
Variables | |
| struct editorConfig | E |
Core editor types, macros, and global state.