2024-04-30 12:21:06 +02:00
|
|
|
use crate::lst_parser::syntax_kind::SyntaxKind;
|
2024-04-24 11:07:38 +02:00
|
|
|
|
2024-06-03 10:53:59 +02:00
|
|
|
#[derive(Debug, PartialEq, Eq, Clone)]
|
2024-04-24 11:07:38 +02:00
|
|
|
pub enum SyntaxError {
|
|
|
|
Expected(Vec<SyntaxKind>),
|
2024-04-30 12:21:06 +02:00
|
|
|
PipelineNeedsSink,
|
2024-05-04 23:12:47 +02:00
|
|
|
// if there was two space seperated items in a list
|
|
|
|
SpaceSepInList,
|
|
|
|
SemicolonInList,
|
2024-06-03 11:22:36 +02:00
|
|
|
CommaInMatOrVec,
|
|
|
|
UnterminatedTopLevelItem,
|
|
|
|
UnclosedModuleBody,
|
2024-06-03 12:05:38 +02:00
|
|
|
UnfinishedPath,
|
|
|
|
PathSepContainsSemicolon,
|
2024-04-24 11:07:38 +02:00
|
|
|
}
|