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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user