|
|
@@ -114,6 +114,15 @@ void NCDConfigTokenizer_Tokenize (char *str, size_t left, NCDConfigTokenizer_out
|
|
|
else if (l = data_begins_with(str, left, "->")) {
|
|
|
token = NCD_TOKEN_ARROW;
|
|
|
}
|
|
|
+ else if (l = data_begins_with(str, left, "If")) {
|
|
|
+ token = NCD_TOKEN_IF;
|
|
|
+ }
|
|
|
+ else if (l = data_begins_with(str, left, "elif")) {
|
|
|
+ token = NCD_TOKEN_ELIF;
|
|
|
+ }
|
|
|
+ else if (l = data_begins_with(str, left, "else")) {
|
|
|
+ token = NCD_TOKEN_ELSE;
|
|
|
+ }
|
|
|
else if (is_name_first_char(*str)) {
|
|
|
l = 1;
|
|
|
while (l < left && is_name_char(str[l])) {
|