Docs for indent_size_for_line and co

This commit is contained in:
Piotr Osiewicz 2024-01-09 20:50:34 +01:00
parent 686dce85dd
commit 6144ee1b5d
2 changed files with 11 additions and 3 deletions

View file

@ -11,7 +11,7 @@ pub struct HighlightId(pub u32);
const DEFAULT_SYNTAX_HIGHLIGHT_ID: HighlightId = HighlightId(u32::MAX);
impl HighlightMap {
pub fn new(capture_names: &[&str], theme: &SyntaxTheme) -> Self {
pub(crate) fn new(capture_names: &[&str], theme: &SyntaxTheme) -> Self {
// For each capture name in the highlight query, find the longest
// key in the theme's syntax styles that matches all of the
// dot-separated components of the capture name.
@ -51,7 +51,7 @@ impl HighlightMap {
}
impl HighlightId {
pub fn is_default(&self) -> bool {
pub(crate) fn is_default(&self) -> bool {
*self == DEFAULT_SYNTAX_HIGHLIGHT_ID
}