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:
Charlie Gordon 2014-03-06 20:36:50 +00:00
commit 054ac2c141
3 changed files with 11 additions and 4 deletions

View file

@ -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;