style: format imports
This commit is contained in:
parent
a48054f1ae
commit
b35efa8f33
69 changed files with 481 additions and 316 deletions
|
|
@ -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]>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue