Commit 8ce20c01 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Forbid ``"'' as first character of word.

Yes, I know I should be more restrictive in the syntax.
parent c6b6c943
...@@ -62,7 +62,7 @@ getword(int c, char **token_r, gnc_t gnc, void *closure) ...@@ -62,7 +62,7 @@ getword(int c, char **token_r, gnc_t gnc, void *closure)
c = skip_whitespace(c, gnc, closure); c = skip_whitespace(c, gnc, closure);
if(c < 0) if(c < 0)
return c; return c;
if(c == '\n') if(c == '"' || c == '\n')
return -2; return -2;
do { do {
if(i >= 255) return -2; if(i >= 255) return -2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment