From 40fc92a6fc162dcebcc4da9876bf3d8de94115ba Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 23 Aug 2024 11:30:42 -0500 Subject: [PATCH] fix(varcon)!: Add Interjection support --- crates/varcon-core/src/lib.rs | 1 + crates/varcon-core/src/parser.rs | 1 + crates/varcon/src/codegen.rs | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/varcon-core/src/lib.rs b/crates/varcon-core/src/lib.rs index 614bf4a..691cfd4 100644 --- a/crates/varcon-core/src/lib.rs +++ b/crates/varcon-core/src/lib.rs @@ -124,6 +124,7 @@ pub enum Pos { Verb = 0x02, Adjective = 0x04, Adverb = 0x08, + Interjection = 0x10, } #[cfg(feature = "flags")] diff --git a/crates/varcon-core/src/parser.rs b/crates/varcon-core/src/parser.rs index e82771f..bf40777 100644 --- a/crates/varcon-core/src/parser.rs +++ b/crates/varcon-core/src/parser.rs @@ -1936,6 +1936,7 @@ impl Pos { "V".value(Pos::Verb), "Adj".value(Pos::Adjective), "Adv".value(Pos::Adverb), + "Inj".value(Pos::Interjection), )) .parse_next(input) }) diff --git a/crates/varcon/src/codegen.rs b/crates/varcon/src/codegen.rs index 7c8a19d..ed40997 100644 --- a/crates/varcon/src/codegen.rs +++ b/crates/varcon/src/codegen.rs @@ -182564,8 +182564,8 @@ Cluster { ], }, ], - pos: None, archaic: false, note: false, - description: Some(" :2"), + pos: Some(Pos::Interjection), archaic: false, note: false, + description: Some(":2"), comment: None, }, ],