rust/src/syntax_kinds.rs
2017-12-29 20:47:54 +03:00

15 lines
373 B
Rust

// Generated from grammar.ron
use tree::{SyntaxKind, SyntaxInfo};
pub const IDENT: SyntaxKind = SyntaxKind(0);
pub const WHITESPACE: SyntaxKind = SyntaxKind(1);
static INFOS: [SyntaxInfo; 2] = [
SyntaxInfo { name: "IDENT" },
SyntaxInfo { name: "WHITESPACE" },
];
pub(crate) fn syntax_info(kind: SyntaxKind) -> &'static SyntaxInfo {
&INFOS[kind.0 as usize]
}