ze
Loading...
Searching...
No Matches
Modules | Classes | Macros | Typedefs | Enumerations | Variables
Core types and globals
Collaboration diagram for Core types and globals:

Modules

 Append buffer
 
 Editing
 
 File I/O
 
 Hooks
 
 Initialization
 
 Input
 
 Plugins
 
 Rendering
 
 Rows
 
 
 Status bar
 
 Syntax
 
 Templates
 
 Terminal
 
 Utilities
 

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
 

Detailed Description

Macro Definition Documentation

◆ _BSD_SOURCE

#define _BSD_SOURCE

◆ _DEFAULT_SOURCE

#define _DEFAULT_SOURCE

◆ _GNU_SOURCE

#define _GNU_SOURCE

◆ CTRL_KEY

#define CTRL_KEY (   k)    ((k) & 0x1f)

Convert an ASCII character to its Control-key equivalent.

◆ HL_HIGHLIGHT_NUMBERS

#define HL_HIGHLIGHT_NUMBERS   (1<<0)

Enable number highlighting for a language.

◆ HL_HIGHLIGHT_STRINGS

#define HL_HIGHLIGHT_STRINGS   (1<<1)

Enable string highlighting for a language.

◆ ZE_QUIT_TIMES

#define ZE_QUIT_TIMES   1

Number of confirmations required to quit with unsaved changes.

◆ ZE_TAB_STOP

#define ZE_TAB_STOP   2

Number of spaces used to render a tab character.

◆ ZE_VERSION

#define ZE_VERSION   "1.0.0"

Editor version string.

Typedef Documentation

◆ erow

typedef struct erow erow

A single editable row of text and its rendered state.

Enumeration Type Documentation

◆ editorHighlight

Categories of syntax highlighting used to map to terminal colors.

Enumerator
HL_NORMAL 
HL_COMMENT 
HL_MLCOMMENT 
HL_KEYWORD1 
HL_KEYWORD2 
HL_STRING 
HL_NUMBER 
HL_MATCH 

◆ editorKey

enum editorKey

Special key codes interpreted by the editor input loop.

Enumerator
ARROW_LEFT 
ARROW_RIGHT 
ARROW_UP 
ARROW_DOWN 
PAGE_UP 
PAGE_DOWN 
HOME_KEY 
END_KEY 
BACKSPACE 

Variable Documentation

◆ E

struct editorConfig E
extern

Global editor state defined in src/main.c.