summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-03-23 13:22:16 -0400
committerpommicket <pommicket@gmail.com>2023-03-23 13:22:16 -0400
commit63f54d13aa7233986f784ef857faef259a889ed6 (patch)
tree32e658f2de4505c90beda98091f53d212054cccc /ted.h
parent000d571290008378ae64109f7dcb5947d452ef41 (diff)
go-to-build-error now also detects rust ::: references
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/ted.h b/ted.h
index 79bab2f..2e935ff 100644
--- a/ted.h
+++ b/ted.h
@@ -531,7 +531,12 @@ typedef struct {
typedef struct {
char *path;
- BufferPos pos;
+ u32 line;
+ u32 column;
+ /// if this is 1, then column == UTF-32 index.
+ /// if this is 4, for example, then column 4 in a line starting with a tab would
+ /// be the character right after the tab.
+ u8 columns_per_tab;
/// which line in the build output corresponds to this error
u32 build_output_line;
} BuildError;
@@ -914,6 +919,7 @@ u8 buffer_tab_width(TextBuffer *buffer);
bool buffer_indent_with_spaces(TextBuffer *buffer);
/// NOTE: this string will be invalidated when the line is edited!!!
/// only use it briefly!!
+/// returns an empty string if `line_number` is out of range.
String32 buffer_get_line(TextBuffer *buffer, u32 line_number);
/// get at most `nchars` characters starting from position `pos`.
/// returns the number of characters actually available.