diff options
Diffstat (limited to 'helix-core/src/syntax.rs')
-rw-r--r-- | helix-core/src/syntax.rs | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs index e75dc724..c352f8f2 100644 --- a/helix-core/src/syntax.rs +++ b/helix-core/src/syntax.rs @@ -1,12 +1,13 @@ use crate::{Change, Rope, RopeSlice, Transaction}; -pub use helix_syntax::Lang; -pub use helix_syntax::{get_language, get_language_name}; - -use std::borrow::Cow; -use std::cell::RefCell; -use std::collections::HashMap; -use std::path::{Path, PathBuf}; -use std::sync::Arc; +pub use helix_syntax::{get_language, get_language_name, Lang}; + +use std::{ + borrow::Cow, + cell::RefCell, + collections::HashMap, + path::{Path, PathBuf}, + sync::Arc, +}; use once_cell::sync::{Lazy, OnceCell}; @@ -355,9 +356,11 @@ pub struct LanguageLayer { pub(crate) tree: Option<Tree>, } -use crate::coords_at_pos; -use crate::transaction::{ChangeSet, Operation}; -use crate::Tendril; +use crate::{ + coords_at_pos, + transaction::{ChangeSet, Operation}, + Tendril, +}; impl LanguageLayer { // pub fn new() -> Self { |