Skip to content

Commit 9c4d567

Browse files
committed
syntax: Move config types to a separate module
1 parent a2c580c commit 9c4d567

File tree

24 files changed

+657
-639
lines changed

24 files changed

+657
-639
lines changed

helix-core/src/comment.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
use smallvec::SmallVec;
55

66
use crate::{
7-
syntax::BlockCommentToken, Change, Range, Rope, RopeSlice, Selection, Tendril, Transaction,
7+
syntax::config::BlockCommentToken, Change, Range, Rope, RopeSlice, Selection, Tendril,
8+
Transaction,
89
};
910
use helix_stdx::rope::RopeSliceExt;
1011
use std::borrow::Cow;

helix-core/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::syntax::{Configuration, Loader, LoaderError};
1+
use crate::syntax::{config::Configuration, Loader, LoaderError};
22

33
/// Language configuration based on built-in languages.toml.
44
pub fn default_lang_config() -> Configuration {

helix-core/src/indent.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ use tree_sitter::{Query, QueryCursor, QueryPredicateArg};
66
use crate::{
77
chars::{char_is_line_ending, char_is_whitespace},
88
graphemes::{grapheme_width, tab_width_at},
9-
syntax::{IndentationHeuristic, LanguageConfiguration, RopeProvider, Syntax},
9+
syntax::{
10+
config::{IndentationHeuristic, LanguageConfiguration},
11+
RopeProvider, Syntax,
12+
},
1013
tree_sitter::Node,
1114
Position, Rope, RopeSlice, Tendril,
1215
};

helix-core/src/movement.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use crate::{
1313
},
1414
line_ending::rope_is_line_ending,
1515
position::char_idx_at_visual_block_offset,
16-
syntax::LanguageConfiguration,
16+
syntax::config::LanguageConfiguration,
1717
text_annotations::TextAnnotations,
1818
textobject::TextObject,
1919
visual_offset_from_block, Range, RopeSlice, Selection, Syntax,

0 commit comments

Comments
 (0)