Suporta comentários.
[cascardo/declara.git] / lib / token.c
index da2b8bc..78a409b 100644 (file)
@@ -53,7 +53,9 @@ static char * token_next(char *line, char **end)
        start = line;
        while (isspace(*start))
                start++;
-       if (*start == '"') {
+       if (*start == '#') {
+               lend = start;
+       } else if (*start == '"') {
                lend = start + 1;
                while (*lend) {
                        cend = *lend;