about summary refs log tree commit diff
path: root/utils/parse-syllable.raku
diff options
context:
space:
mode:
Diffstat (limited to 'utils/parse-syllable.raku')
-rw-r--r--utils/parse-syllable.raku5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/parse-syllable.raku b/utils/parse-syllable.raku
index 22ff38b..16deb04 100644
--- a/utils/parse-syllable.raku
+++ b/utils/parse-syllable.raku
@@ -87,6 +87,11 @@ sub parse-one ($word) {
 	if $word ∈ <. , ? ! ( ) :> {
 		return extras($word);
 	}
+	if $word eqv '-' {
+		my %parsing;
+		%parsing{"type"} = "space";
+		return %parsing
+	}
 	my $C1 = Syllable.parse($word)<onset><consonant>.join;
 	my $C2 = Syllable.parse(
 		$word, actions => Parser)<coda>.made;