GNOME Bugzilla – Bug 136117
Highlight which part of equation is causing error
Last modified: 2012-10-14 00:15:56 UTC
Pressed the Send key too soon... Would be really cool if the error reporting could be improved somehow, e.g. to highlight in the display where exactly the expression parsing broke down, rather than just showing "Malformed expression" in the status bar.
Created attachment 226004 [details] [review] Highlight which part is causing error.
Created attachment 226006 [details] [review] Highlight which part is causing error.
Oops!! There was an Internal Server error, when I first submitted it.. :/ Never mind.
Review of attachment 226004 [details] [review]: Just minor whitespace changes but otherwise looks good, thanks Arth! ::: src/lexer.c @@ +16,3 @@ return FALSE; } + if((*(state->parent->function_is_defined))(state->parent, name)) Accidental whitespace changes (more in this file)
Some good examples: unknownvariable 192+abc+102 11ab45+3
Sorry for the whitespace changes. I came across them while looking at the code. Hence fixed it in the same patch. Some more examples are 12⁻ 1+12.
http://git.gnome.org/browse/gcalctool/commit/?id=ee76472d758098b8042c8f53ecafbe7ee54d6c72