| 516 cxstring word = cx_strn(wbuf->space, wbuf->size); |
516 cxstring word = cx_strn(wbuf->space, wbuf->size); |
| 517 int closespan = 1; |
517 int closespan = 1; |
| 518 if (check_keyword(word, jkeywords)) { |
518 if (check_keyword(word, jkeywords)) { |
| 519 cxBufferPutString(dest, |
519 cxBufferPutString(dest, |
| 520 "<span class=\"c2html-keyword\">"); |
520 "<span class=\"c2html-keyword\">"); |
| |
521 } else if (check_capsonly(word)) { |
| |
522 cxBufferPutString(dest, |
| |
523 "<span class=\"c2html-macroconst\">"); |
| 521 } else if (isupper(word.ptr[0])) { |
524 } else if (isupper(word.ptr[0])) { |
| 522 cxBufferPutString(dest, |
525 cxBufferPutString(dest, |
| 523 "<span class=\"c2html-type\">"); |
526 "<span class=\"c2html-type\">"); |
| 524 } else if (word.ptr[0] == '@') { |
527 } else if (word.ptr[0] == '@') { |
| 525 cxBufferPutString(dest, |
528 cxBufferPutString(dest, |
| 526 "<span class=\"c2html-directive\">"); |
529 "<span class=\"c2html-directive\">"); |
| 527 } else if (check_capsonly(word)) { |
|
| 528 cxBufferPutString(dest, |
|
| 529 "<span class=\"c2html-macroconst\">"); |
|
| 530 } else { |
530 } else { |
| 531 closespan = 0; |
531 closespan = 0; |
| 532 } |
532 } |
| 533 put_htmlescapedstr(dest, word); |
533 put_htmlescapedstr(dest, word); |
| 534 |
534 |