Make Buffer::language_at fall back to Buffer::language
For languages with no grammar (plain text), there will be no layers.
This commit is contained in:
@@ -92,6 +92,7 @@ struct SyntaxLayer {
|
||||
language: Arc<Language>,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct SyntaxLayerInfo<'a> {
|
||||
pub depth: usize,
|
||||
pub node: Node<'a>,
|
||||
|
||||
Reference in New Issue
Block a user