rename trait meta syntaxkinds

This commit is contained in:
Schrottkatze 2024-10-27 16:56:39 +01:00
parent cee9b97dbf
commit f7d05ead2c
Signed by: schrottkatze
SSH key fingerprint: SHA256:hXb3t1vINBFCiDCmhRABHX5ocdbLiKyCdKI4HK2Rbbc
4 changed files with 10 additions and 7 deletions

View file

@ -62,13 +62,15 @@ pub enum SyntaxKind {
PARSE_ERR,
// Meta SyntaxKinds
ROOT,
EOF,
}
impl pawarser::parser::SyntaxElement for SyntaxKind {
const EOF: Self = Self::EOF;
const SYNTAX_EOF: Self = Self::EOF;
const ERROR: Self = Self::PARSE_ERR;
const SYNTAX_ERROR: Self = Self::PARSE_ERR;
const SYNTAX_ROOT: Self = Self::ROOT;
}
impl From<SyntaxKind> for rowan::SyntaxKind {