src/ccodegen.c

changeset 31
50ae611a785c
parent 29
ec6e97454e64
child 35
abaf2489c549
--- a/src/ccodegen.c	Fri May 29 14:32:02 2015 +0200
+++ b/src/ccodegen.c	Wed Feb 10 12:34:31 2016 +0100
@@ -51,18 +51,14 @@
                                     dp += sizeof(str)-1
 
 void cparseline(char *src, char *dest, highlighter_t *hltr) {
-    size_t sp = 0, dp = 0;
-    /* indent */
-    while (isspace(src[sp])) {
-        dest[dp++] = src[sp++];
-    }
 
     memset(hltr->word, 0, WORDBUF_SIZE);
-    size_t wp = 0, ifp = 0;
+    size_t wp = 0, ifp = 0, sp = 0, dp = 0;
     int isstring = 0, iscomment = 0, isinclude = 0, parseinclude = 0;
     char quote = '\0';
     int isescaping = 0;
-
+    
+    /* continue a multi line comment highlighting */
     if (hltr->iscommentml) {
         iscomment = 1;
         memcpy_const(dest, dp, "<span class=\"c2html-comment\">");

mercurial