/[qemacs]/qemacs/xml.c
ViewVC logotype

Diff of /qemacs/xml.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by bellard, Sat May 29 10:18:31 2004 UTC revision 1.2 by chqrlie, Wed May 11 15:12:14 2005 UTC
# Line 41  void xml_colorize_line(unsigned int *buf Line 41  void xml_colorize_line(unsigned int *buf
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:
# Line 53  void xml_colorize_line(unsigned int *buf Line 53  void xml_colorize_line(unsigned int *buf
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') {
# Line 102  void xml_colorize_line(unsigned int *buf Line 102  void xml_colorize_line(unsigned int *buf
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);
# Line 129  void xml_colorize_line(unsigned int *buf Line 129  void xml_colorize_line(unsigned int *buf
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;

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26