41 |
/* if already in a state, go directly in the code parsing it */ |
/* if already in a state, go directly in the code parsing it */ |
42 |
if (state & XML_SCRIPT) |
if (state & XML_SCRIPT) |
43 |
goto parse_script; |
goto parse_script; |
44 |
switch(state) { |
switch (state) { |
45 |
case XML_COMMENT: |
case XML_COMMENT: |
46 |
goto parse_comment; |
goto parse_comment; |
47 |
case XML_TAG: |
case XML_TAG: |
53 |
break; |
break; |
54 |
} |
} |
55 |
|
|
56 |
for(;;) { |
for (;;) { |
57 |
p_start = p; |
p_start = p; |
58 |
c = *p; |
c = *p; |
59 |
if (c == '\n') { |
if (c == '\n') { |
102 |
/* javascript coloring */ |
/* javascript coloring */ |
103 |
p_start = p; |
p_start = p; |
104 |
parse_script: |
parse_script: |
105 |
for(;;) { |
for (;;) { |
106 |
if (*p == '\n') { |
if (*p == '\n') { |
107 |
state &= ~XML_SCRIPT; |
state &= ~XML_SCRIPT; |
108 |
c_colorize_line(p_start, p - p_start, &state, state_only); |
c_colorize_line(p_start, p - p_start, &state, state_only); |
129 |
/* stylesheet coloring */ |
/* stylesheet coloring */ |
130 |
p_start = p; |
p_start = p; |
131 |
parse_style: |
parse_style: |
132 |
for(;;) { |
for (;;) { |
133 |
if (*p == '\n') { |
if (*p == '\n') { |
134 |
set_color(p_start, p - p_start, QE_STYLE_CSS); |
set_color(p_start, p - p_start, QE_STYLE_CSS); |
135 |
break; |
break; |