src/javacodegen.c

changeset 32
10389d866a4d
parent 29
ec6e97454e64
child 35
abaf2489c549
--- a/src/javacodegen.c	Wed Feb 10 12:34:31 2016 +0100
+++ b/src/javacodegen.c	Wed Feb 10 12:45:14 2016 +0100
@@ -53,14 +53,8 @@
                                     dp += sizeof(str)-1
 
 void jparseline(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;
+    size_t wp = 0, sp = 0, dp = 0;
     int isstring = 0, iscomment = 0, isimport = 0;
     char quote = '\0';
     int isescaping = 0;

mercurial