aboutsummaryrefslogtreecommitdiff
path: root/src/include/syntax.h
blob: ab92845a490cec0fc4adfc31d94d077b6e90ef7f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef SYNTAX_H
#define SYNTAX_H

/* syntax Definitions. */

#define SYNTAX_CHAR_DELIM        '\''
#define SYNTAX_STR_DELIM         '"'
#define SYNTAX_COMMENT_DELIM     '`'
#define SYNTAX_EXPR_END          ';'
#define SYNTAX_SET               '='
#define SYNTAX_LGROUP            '('
#define SYNTAX_RGROUP            ')'
#define SYNTAX_DIRECTIVE_DELIM   '#'
#define SYNTAX_APPLY             '.'
#define SYNTAX_LIST_DELIM        ','
#define SYNTAX_TAG_DELIM         ':'
#define SYNTAX_NAMESPACE_DELIM   '!'
#define SYNTAX_LBLOCK            '{'
#define SYNTAX_RBLOCK            '}'
#define SYNTAX_RLIST             '['
#define SYNTAX_LLIST             ']'
#define SYNTAX_ESC               '\\'

/* Characters that can appear in keywords. */
#define SYNTAX_KWD_CHARS         "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_~|&+-/*<>=%^$@?"

#endif