Assembled 2
A column based text editor
Loading...
Searching...
No Matches
syntax.h
Go to the documentation of this file.
1
32#ifndef AS_SYNTAX_H
33#define AS_SYNTAX_H
34
36#define AS_MAX_BACKENDS 256
38#define AS_MAX_BACKEND_EXTS 32
39
42
47 AS_SYNTAX_TYPE_ASM,
48};
49
53static const char *As_SyntaxExtNames[] = {
54 [AS_SYNTAX_TYPE_ASM] = "asm",
55};
56
62 struct AS_SyntaxPoint *(*get_syntax)(char *);
65};
66
70void init_syntax();
71
81struct AS_SyntaxPoint *get_syntax(struct AS_TextFile *file, struct AS_LLElement *element);
82
83#endif
Definition buffer.h:63
Definition syntax.h:60
int extensions[AS_MAX_BACKEND_EXTS]
The number of file extensions this backend handles.
Definition syntax.h:64
struct AS_SyntaxPoint *(* get_syntax)(char *)
The function to call to get syntax information.
Definition syntax.h:62
Definition buffer.h:46
Definition editor.h:45
void init_syntax()
Definition syntax.c:42
AS_SYNTAX_TYPE
Definition syntax.h:46
#define AS_MAX_BACKEND_EXTS
Maximum number of extensions per backend.
Definition syntax.h:38