html-languageservice 0.12.0

The basics of an HTML language server.
Documentation
1
2
3
4
5
6
7
#[cfg(any(feature = "completion", feature = "hover"))]
pub fn is_letter_or_digit(text: &str, index: usize) -> bool {
    use regex::Regex;

    let c = text.get(index..index + 1);
    c.is_some_and(|c| Regex::new("^[A-Za-z0-9]+$").unwrap().is_match(c))
}