pub fn from_ctag(lang: Option<Language>, identifier: char) -> TokenKind {
        LOOKUP
            .iter()
            .filter(|(l, c, _)| Some(*l) == lang && *c == identifier)
            .nth(0)
            .map(|(_, _, t)| *t)
            .unwrap_or(match lang {
                Some(Language::SVG) => Self::from_ctag(Some(Language::XML), identifier),
                Some(l) => TokenKind::MissingLanguageToken(l, identifier),
                None => TokenKind::Unknown(identifier),
            })
    }
/// Construct a TokenKind given a language (or lack thereof) with a character
///
/// This is based off of Universal Ctags' generated list:
///   $ ctags --list-kinds-full
///
/// This list is not comprehensive in that it is based off of the languages accounted for.
Construct a TokenKind given a language (or lack thereof) with a character
This is based off of Universal Ctags' generated list:
$ ctags --list-kinds-full

This list is not comprehensive in that it is based off of the languages accounted for.
Construct a TokenKind given a language ( or lack thereof ) with a character This is based off of Universal Ctags ' generated list : $ ctags -- list - kinds - full This list is not comprehensive in that it is based off of the languages accounted for .
pub fn from_ctag(lang: Option<Language>, identifier: char) -> TokenKind {
        LOOKUP
            .iter()
            .filter(|(l, c, _)| Some(*l) == lang && *c == identifier)
            .nth(0)
            .map(|(_, _, t)| *t)
            .unwrap_or(match lang {
                Some(Language::SVG) => Self::from_ctag(Some(Language::XML), identifier),
                Some(l) => TokenKind::MissingLanguageToken(l, identifier),
                None => TokenKind::Unknown(identifier),
            })
    }
pub fn from_ctag ( lang : Option < Language > , identifier : char ) -> TokenKind { LOOKUP . iter ( ) . filter ( | ( l , c , _ ) | Some ( * l ) == lang && * c == identifier ) . nth ( 0 ) . map ( | ( _ , _ , t ) | * t ) . unwrap_or ( match lang { Some ( Language :: SVG ) => Self :: from_ctag ( Some ( Language :: XML ) , identifier ) , Some ( l ) => TokenKind :: MissingLanguageToken ( l , identifier ) , None => TokenKind :: Unknown ( identifier ) , } ) }
Construct a TokenKind given a language (or lack thereof) with a character
This is based off of Universal Ctags' generated list:
$ ctags --list-kinds-full
Construct a TokenKind given a language ( or lack thereof ) with a character This is based off of Universal Ctags ' generated list : $ ctags -- list - kinds - full
lang
Option<Language>
identifier
char
lang
Option<Language>
identifier
char