Add Buffer::enclosing_bracket_ranges

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
Antonio Scandurra
2021-05-28 19:35:04 +02:00
co-authored by Nathan Sobo Max Brunsfeld
parent 0b51e99c6e
commit bf8eee26f8
3 changed files with 116 additions and 7 deletions
+7
View File
@@ -14,6 +14,13 @@ pub struct LanguageDir;
pub struct LanguageConfig {
pub name: String,
pub path_suffixes: Vec<String>,
pub bracket_pairs: Vec<BracketPair>,
}
#[derive(Deserialize)]
pub struct BracketPair {
pub start: String,
pub end: String,
}
pub struct Language {