Compare commits

..

No commits in common. "db1199cfa8d25964e338b8b5db4016964e7d7643" and "8a3adb7862163803b31845c43944e0fdaca6c238" have entirely different histories.

View File

@ -15,11 +15,6 @@ void render_string(const char * const string, const char * const mode);
This function matches _string_ against all known highlighting rules and dispatches the appropriate callback depending on _mode_. This function matches _string_ against all known highlighting rules and dispatches the appropriate callback depending on _mode_.
```C ```C
#define HLPATH //?!
```
Coma separated list of directories to be searched for syntax scripts. `#undef` to disable it entirely.
```C
typedef void (*attribute_callback_t)(const char * const string, const int length, void * const attributes); typedef void (*attribute_callback_t)(const char * const string, const int length, void * const attributes);
``` ```
The type used for defining appropriate callbacks for render_string(). The type used for defining appropriate callbacks for render_string().
@ -66,6 +61,7 @@ There are also convinience functions:
// NOTE: the return value is the number tokens successfully inserted // NOTE: the return value is the number tokens successfully inserted
int new_keyword_tokens(const char * const * words, hl_group_t * const g); // _words_ must be NULL terminated int new_keyword_tokens(const char * const * words, hl_group_t * const g); // _words_ must be NULL terminated
int new_syntax_character_tokens(const char * const chars, hl_group_t * const g); int new_syntax_character_tokens(const char * const chars, hl_group_t * const g);
``` ```
The regex engine used for MATCHes is Jeger by default, emulating Vim regex. The regex engine used for MATCHes is Jeger by default, emulating Vim regex.
However the regex engine can be overridden: However the regex engine can be overridden:
@ -93,8 +89,7 @@ hl < source/main.c
### Environment variables ### Environment variables
```bash ```bash
$HLPATH : colon separated list of directories searched for syntax script files; $HLPATH : colon separated list of directories searched for syntax script files
overriddes the value of the HLPATH macro
``` ```
--- ---