From dfd1252f5f48a410c33fe58c235a6850a04b7ea2 Mon Sep 17 00:00:00 2001 From: Nikita Revenco <154856872+nikitarevenco@users.noreply.github.com> Date: Wed, 13 Nov 2024 19:14:29 +0000 Subject: [PATCH] chore: remove "pub" keyword from functions which do not need export --- helix-core/src/surround.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/helix-core/src/surround.rs b/helix-core/src/surround.rs index fada7c5c6..50f77c6dc 100644 --- a/helix-core/src/surround.rs +++ b/helix-core/src/surround.rs @@ -339,12 +339,12 @@ pub fn get_surround_pos_tag( /// JSX tags may have `.` in them for scoping /// HTML tags may have `-` in them if it's a custom element /// Both JSX and HTML tags may have `_` -pub fn is_valid_tagname_char(ch: char) -> bool { +fn is_valid_tagname_char(ch: char) -> bool { ch.is_alphanumeric() || ch == '_' || ch == '-' || ch == '.' } /// Get the two sorted `Range`s corresponding to nth matching tags surrounding the cursor, as well as the name of the tags. -pub fn find_nth_nearest_tag( +fn find_nth_nearest_tag( forward_text: RopeSlice, cursor_pos: usize, skip: usize, @@ -425,7 +425,7 @@ pub fn find_nth_nearest_tag( /// Returns the Range of the tag's name (excluding the `<` and `>` characters.) /// As well as the actual name of the tag /// Additionally, it returns the last position where it stopped searching. -pub fn find_prev_tag( +fn find_prev_tag( text: RopeSlice, mut cursor_pos: usize, skip: usize, @@ -470,7 +470,7 @@ pub fn find_prev_tag( /// Find the closing `` starting from `pos` and iterating the end of the text. /// Returns the Range of the tag's name (excluding the `` characters.) /// As well as the actual name of the tag and where it last stopped searching. -pub fn find_next_tag( +fn find_next_tag( text: RopeSlice, mut cursor_pos: usize, skip: usize,