Add tree-sitter grammars for common languages I use.

This commit is contained in:
2025-12-25 22:01:58 +00:00
parent f3c87431a3
commit b6e40ae1a6
26 changed files with 259 additions and 54 deletions

View File

@@ -52,6 +52,7 @@ struct Coord {
bool operator>=(const Coord &other) const { return !(*this < other); }
};
std::string path_abs(const std::string &path_str);
std::string path_to_file_uri(const std::string &path_str);
int display_width(const char *str, size_t len);
uint32_t get_visual_col_from_bytes(const char *line, uint32_t len,