extend colorize_states to 16 bits per line
* extend colorize_states to 16 bits to allow for more recursive coloring, such as html-src -> js... * make htmlsrc-colorize_line public
This commit is contained in:
parent
85a63671d9
commit
054ac2c141
3 changed files with 11 additions and 4 deletions
|
|
@ -66,8 +66,8 @@ enum {
|
|||
HTML_SCRIPT = 0x80, /* <SCRIPT> [...] </SCRIPT> */
|
||||
};
|
||||
|
||||
static void htmlsrc_colorize_line(unsigned int *buf, int len,
|
||||
int *colorize_state_ptr, int state_only)
|
||||
void htmlsrc_colorize_line(unsigned int *buf, int len,
|
||||
int *colorize_state_ptr, int state_only)
|
||||
{
|
||||
int c, state, js_state, l;
|
||||
unsigned int *p, *p_start, *p_end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue