Merge remote-tracking branch 'origin/main' into editor2
This commit is contained in:
commit
097171b9b8
37 changed files with 2910 additions and 1842 deletions
|
@ -234,7 +234,6 @@ impl SyntaxMap {
|
|||
self.snapshot.interpolate(text);
|
||||
}
|
||||
|
||||
#[allow(dead_code)] // todo!()
|
||||
#[cfg(test)]
|
||||
pub fn reparse(&mut self, language: Arc<Language>, text: &BufferSnapshot) {
|
||||
self.snapshot
|
||||
|
@ -786,7 +785,6 @@ impl SyntaxSnapshot {
|
|||
)
|
||||
}
|
||||
|
||||
#[allow(dead_code)] // todo!()
|
||||
#[cfg(test)]
|
||||
pub fn layers<'a>(&'a self, buffer: &'a BufferSnapshot) -> Vec<SyntaxLayerInfo> {
|
||||
self.layers_for_range(0..buffer.len(), buffer).collect()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue