Skip to main content

classify_word

Function classify_word 

Source
pub fn classify_word(
    word: &str,
    keywords: &[&str],
    primitive_types: &[&str],
    go_type_names: &[&str],
    kw_style: Style,
    primitive_style: Style,
    num_style: Style,
    type_style: Style,
    default_style: Style,
    lang: &str,
) -> Style
Expand description

根据语言规则判断一个 word 应该使用哪种颜色样式