diff options
author | pommicket <pommicket@gmail.com> | 2023-03-23 13:22:16 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-03-23 13:22:16 -0400 |
commit | 63f54d13aa7233986f784ef857faef259a889ed6 (patch) | |
tree | 32e658f2de4505c90beda98091f53d212054cccc /ted.h | |
parent | 000d571290008378ae64109f7dcb5947d452ef41 (diff) |
go-to-build-error now also detects rust ::: references
Diffstat (limited to 'ted.h')
-rw-r--r-- | ted.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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. |