From 6ab147af9470cf48fe92bd9d9ebfa66db02c3c8c Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 23 Aug 2024 11:33:22 -0500 Subject: [PATCH] fix(varcon)!: Add Preposition 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 691cfd4..f408f3e 100644 --- a/crates/varcon-core/src/lib.rs +++ b/crates/varcon-core/src/lib.rs @@ -125,6 +125,7 @@ pub enum Pos { Adjective = 0x04, Adverb = 0x08, Interjection = 0x10, + Preposition = 0x20, } #[cfg(feature = "flags")] diff --git a/crates/varcon-core/src/parser.rs b/crates/varcon-core/src/parser.rs index bf40777..85ae0af 100644 --- a/crates/varcon-core/src/parser.rs +++ b/crates/varcon-core/src/parser.rs @@ -1937,6 +1937,7 @@ impl Pos { "Adj".value(Pos::Adjective), "Adv".value(Pos::Adverb), "Inj".value(Pos::Interjection), + "Prep".value(Pos::Preposition), )) .parse_next(input) }) diff --git a/crates/varcon/src/codegen.rs b/crates/varcon/src/codegen.rs index ed40997..1764f6e 100644 --- a/crates/varcon/src/codegen.rs +++ b/crates/varcon/src/codegen.rs @@ -398756,8 +398756,8 @@ Cluster { ], }, ], - pos: None, archaic: false, note: false, - description: Some(""), + pos: Some(Pos::Preposition), archaic: false, note: false, + description: None, comment: None, }, ],