docs: add back detailed info about points

This commit is contained in:
Amaan Qureshi 2024-12-28 16:12:45 -05:00
parent 4f9869142f
commit d2db7eb8ef
No known key found for this signature in database
GPG key ID: E67890ADC4227273

View file

@ -68,7 +68,10 @@ A syntax node's _type_ is a string that indicates which grammar rule the node re
const char *ts_node_type(TSNode);
```
Syntax nodes store their position in the source code both in raw bytes and row/column coordinates:
Syntax nodes store their position in the source code both in raw bytes and row/column
coordinates. In a point, rows and columns are zero-based. The `row` field represents
the number of newlines before a given position, while `column` represents the number
of bytes between the position and beginning of the line.
```c
uint32_t ts_node_start_byte(TSNode);