summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-28 11:45:07 -0500
committerpommicket <pommicket@gmail.com>2022-12-28 11:45:07 -0500
commit11df4f10197d67e5b61898bd98cdfccc1159dd26 (patch)
tree7639b03aa348183eb563f6179c2435b5ea28a106 /ted.h
parent47adb1651d35dcc545850916c4a16b747901dba5 (diff)
parsing signature help
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/ted.h b/ted.h
index 7cfdbd4..aa475f8 100644
--- a/ted.h
+++ b/ted.h
@@ -417,9 +417,22 @@ typedef struct {
Rect rect; // rectangle where the autocomplete menu is (needed to avoid interpreting autocomplete clicks as other clicks)
} Autocomplete;
+typedef struct {
+ // displayed normal
+ char *label_pre;
+ // displayed bold
+ char *label_active;
+ // displayed normal
+ char *label_post;
+} Signature;
+
+#define SIGNATURE_HELP_MAX 5
+
// "signature help" (LSP) is thing that shows the current parameter, etc.
typedef struct {
bool open;
+ u16 signature_count;
+ Signature signatures[SIGNATURE_HELP_MAX];
} SignatureHelp;