src/javacodegen.c

changeset 26
05c3c6842aef
parent 24
e43dee5892f4
child 28
1be8ea902ef4
equal deleted inserted replaced
25:f82aa7afe872 26:05c3c6842aef
67 dp += 29; 67 dp += 29;
68 } 68 }
69 69
70 for (char c = src[sp] ; c ; c=src[++sp]) { 70 for (char c = src[sp] ; c ; c=src[++sp]) {
71 /* comments */ 71 /* comments */
72 if (c == '/') { 72 if (!isstring && c == '/') {
73 if (hltr->iscommentml && sp > 0 && src[sp-1] == '*') { 73 if (hltr->iscommentml && sp > 0 && src[sp-1] == '*') {
74 iscomment = 0; 74 iscomment = 0;
75 hltr->iscommentml = 0; 75 hltr->iscommentml = 0;
76 memcpy(&(dest[dp]), "/</span>", 8); 76 memcpy(&(dest[dp]), "/</span>", 8);
77 dp += 8; 77 dp += 8;

mercurial