Wrapping up bedrock implementation
This commit is contained in:
@@ -12,13 +12,13 @@ use parking_lot::Mutex;
|
||||
|
||||
use arborium::tree_sitter::{InputEdit, Parser, Tree};
|
||||
use futures::stream::AbortHandle;
|
||||
use galaxyui::{color::ColorU, AppContext, Entity, ModelContext, WeakModelHandle};
|
||||
use queries::{
|
||||
highlight_query::HighlightQuery,
|
||||
indent_query::{indentation_delta, IndentDelta},
|
||||
};
|
||||
use rangemap::{RangeMap, RangeSet};
|
||||
use string_offset::{ByteOffset, CharOffset};
|
||||
use galaxyui::{color::ColorU, AppContext, Entity, ModelContext, WeakModelHandle};
|
||||
|
||||
use galaxy_editor::{
|
||||
content::{
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
use std::{iter, ops::Range};
|
||||
|
||||
use arborium::tree_sitter::{Node, Query, QueryCursor, TextProvider, Tree};
|
||||
use rangemap::RangeMap;
|
||||
use streaming_iterator::StreamingIterator;
|
||||
use string_offset::{ByteOffset, CharOffset};
|
||||
use galaxy_editor::content::{
|
||||
buffer::{Buffer, ToBufferByteOffset, ToBufferCharOffset},
|
||||
text::Bytes,
|
||||
};
|
||||
use galaxyui::color::ColorU;
|
||||
use rangemap::RangeMap;
|
||||
use streaming_iterator::StreamingIterator;
|
||||
use string_offset::{ByteOffset, CharOffset};
|
||||
|
||||
/// Color mapping from parsed syntax token name to its corresponding highlighting color.
|
||||
#[derive(Clone, Copy)]
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
use std::{collections::HashMap, ops::Range};
|
||||
|
||||
use arborium::tree_sitter::{Node, Query, QueryCursor, Tree};
|
||||
use streaming_iterator::StreamingIterator;
|
||||
use galaxy_editor::content::buffer::Buffer;
|
||||
use galaxyui::text::point::Point;
|
||||
use streaming_iterator::StreamingIterator;
|
||||
|
||||
use super::highlight_query::TextBuffer;
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use arborium::tree_sitter::Tree;
|
||||
use languages::{language_by_filename, Language};
|
||||
use galaxy_editor::content::buffer::{Buffer, BufferSnapshot};
|
||||
use galaxy_editor::content::selection_model::BufferSelectionModel;
|
||||
use galaxy_editor::content::text::IndentBehavior;
|
||||
use galaxyui::App;
|
||||
use languages::{language_by_filename, Language};
|
||||
|
||||
use crate::SyntaxTreeState;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user