First pass at semantic tokens

This commit is contained in:
Ayaz Hafiz 2023-10-22 20:24:12 -04:00
parent 0437645293
commit ce6c340ebc
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
10 changed files with 981 additions and 34 deletions

View file

@ -30,6 +30,10 @@ impl Region {
self.start == self.end
}
pub const fn len(&self) -> u32 {
self.end.offset - self.start.offset
}
pub fn span_across(start: &Region, end: &Region) -> Self {
Region {
start: start.start,