Skip to main content

oak_protobuf/language/
mod.rs

1use oak_core::{Language, LanguageCategory};
2
3#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]
4pub struct ProtobufLanguage {}
5
6impl ProtobufLanguage {
7    pub fn new() -> Self {
8        Self {}
9    }
10}
11
12impl Language for ProtobufLanguage {
13    const NAME: &'static str = "protobuf";
14    const CATEGORY: LanguageCategory = LanguageCategory::Programming;
15
16    type TokenType = crate::kind::ProtobufSyntaxKind;
17    type ElementType = crate::kind::ProtobufSyntaxKind;
18    type TypedRoot = crate::ast::ProtobufRoot;
19}