rewrite doc command parser

- properly break statements into words
- pick statement where cursor is
- detect unmatched braces + indicator
- fix huge memory leak
- add cs ident details
- add debug view (broken into words)
- menu entries for the settings

  docidentverbose 0|1|2|3

    enables ident details or statement analyser

DOCREF docidentverbose
This commit is contained in:
ac-stef
2017-06-23 12:48:17 +02:00
parent ec12d6872e
commit 57093ed70c
8 changed files with 284 additions and 296 deletions
+2 -1
View File
@@ -608,8 +608,9 @@ void keypress(int code, bool isdown, int cooked, SDLMod mod)
else exechook(HOOK_SP, "KEYRELEASE", "%d", code);
}
char *getcurcommand()
char *getcurcommand(int *pos)
{
if(pos && saycommandon) *pos = cmdline.pos;
return saycommandon ? cmdline.buf : NULL;
}