style: format imports

This commit is contained in:
Amaan Qureshi 2024-04-09 13:35:08 -04:00
parent a48054f1ae
commit b35efa8f33
69 changed files with 481 additions and 316 deletions

View file

@ -1,13 +1,13 @@
use super::{Error, Highlight, HighlightConfiguration, Highlighter, HtmlRenderer};
use std::{
collections::HashMap, ffi::CStr, fmt, os::raw::c_char, process::abort, slice, str,
sync::atomic::AtomicUsize,
};
use regex::Regex;
use std::collections::HashMap;
use std::ffi::CStr;
use std::os::raw::c_char;
use std::process::abort;
use std::sync::atomic::AtomicUsize;
use std::{fmt, slice, str};
use tree_sitter::Language;
use super::{Error, Highlight, HighlightConfiguration, Highlighter, HtmlRenderer};
pub struct TSHighlighter {
languages: HashMap<String, (Option<Regex>, HighlightConfiguration)>,
attribute_strings: Vec<&'static [u8]>,