| 63 |
} |
} |
| 64 |
|
|
| 65 |
#define LML_TAG_QUOTE_MAX_LEVEL 10 |
#define LML_TAG_QUOTE_MAX_LEVEL 10 |
|
#define LML_TAG_QUOTE_LEVEL_LOOP 3 |
|
| 66 |
|
|
| 67 |
static const char *lml_tag_quote_color[] = { |
static const char *lml_tag_quote_color[] = { |
| 68 |
"\033[33m", // yellow |
"\033[33m", // yellow |
| 70 |
"\033[35m", // magenta |
"\033[35m", // magenta |
| 71 |
}; |
}; |
| 72 |
|
|
| 73 |
|
static const int LML_TAG_QUOTE_LEVEL_LOOP = (int)(sizeof(lml_tag_quote_color) / sizeof(const char *)); |
| 74 |
|
|
| 75 |
static int lml_tag_quote_level = 0; |
static int lml_tag_quote_level = 0; |
| 76 |
|
|
| 77 |
static int lml_tag_quote_filter(const char *tag_name, const char *tag_param_buf, char *tag_output_buf, size_t tag_output_buf_len, int quote_mode) |
static int lml_tag_quote_filter(const char *tag_name, const char *tag_param_buf, char *tag_output_buf, size_t tag_output_buf_len, int quote_mode) |
| 119 |
const LML_TAG_DEF lml_tag_def[] = { |
const LML_TAG_DEF lml_tag_def[] = { |
| 120 |
// Definition of tuple: {lml_tag, lml_output, default_param, quote_mode_output, lml_filter_cb} |
// Definition of tuple: {lml_tag, lml_output, default_param, quote_mode_output, lml_filter_cb} |
| 121 |
{"plain", NULL, NULL, NULL, lml_tag_disable_filter}, |
{"plain", NULL, NULL, NULL, lml_tag_disable_filter}, |
| 122 |
{"nolml", "", NULL, "", NULL}, |
{"nolml", "", NULL, "", NULL}, // deprecated |
| 123 |
{"lml", "", NULL, "", NULL}, |
{"lml", "", NULL, "", NULL}, // deprecated |
| 124 |
|
{"align", "", "", "", NULL}, // N/A |
| 125 |
|
{"/align", "", "", "", NULL}, // N/A |
| 126 |
|
{"size", "", "", "", NULL}, // N/A |
| 127 |
|
{"/size", "", "", "", NULL}, // N/A |
| 128 |
{"left", "[", "", "[left]", NULL}, |
{"left", "[", "", "[left]", NULL}, |
| 129 |
{"right", "]", "", "[right]", NULL}, |
{"right", "]", "", "[right]", NULL}, |
| 130 |
{"bold", "\033[1m", "", "", NULL}, // does not work in Fterm |
{"bold", "\033[1m", "", "", NULL}, // does not work in Fterm |