| 2361 | } |
| 2362 | |
| 2363 | /* Poor man's code highlighter inspired by antirez/kilo: a tiny language table |
| 2364 | * plus one line-oriented tokenizer for comments, strings, numbers, and |
| 2365 | * separator-bounded keywords. This is deliberately not a full parser; it is |
| 2366 | * only for making fenced Markdown code readable in the terminal. */ |
| 2367 | #define AGENT_HL_NORMAL 0 |
| 2368 | #define AGENT_HL_COMMENT 1 |
| 2369 | #define AGENT_HL_KEYWORD1 2 |
| 2370 | #define AGENT_HL_KEYWORD2 3 |
| 2371 | #define AGENT_HL_STRING 4 |
| 2372 | #define AGENT_HL_NUMBER 5 |
| 2373 | |
| 2374 | #define AGENT_SYNTAX_NUMBERS (1u<<0) |
no test coverage detected