aboutsummaryrefslogtreecommitdiff
path: root/src/include/syntax.h
blob: 2645ca4998d4d5b50ee14c9bbc422555aaa3d202 (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_~|&+-/*<>=%^$@?0123456789"

#endif