summary refs log tree commit diff
path: root/src/path/parser.lalrpop
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@gmail.com>2020-12-29 01:25:30 -0800
committerIrene Knapp <ireneista@gmail.com>2020-12-29 01:25:30 -0800
commit3378c0c3704e1b85f23459fc1273186ec9ecbd8a (patch)
treef5a5f57c48ddfe43a1a3371e7e96dc7aa07af445 /src/path/parser.lalrpop
parentdb31e770be89cc3e693ffef470878267efeff406 (diff)
add a FromStr instance for GenericPathComponent, and a new type PathError
Diffstat (limited to 'src/path/parser.lalrpop')
-rw-r--r--src/path/parser.lalrpop2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path/parser.lalrpop b/src/path/parser.lalrpop
index 9705fc3..c41b3fd 100644
--- a/src/path/parser.lalrpop
+++ b/src/path/parser.lalrpop
@@ -70,7 +70,7 @@ PathNoColons2: Vec<GenericPathComponent> = {
   }
 }
 
-PathComponent: GenericPathComponent = {
+pub PathComponent: GenericPathComponent = {
   DOT => GenericPathComponent::CurrentDirectory,
   DOT_DOT => GenericPathComponent::ParentDirectory,
   <PATH_COMPONENT_NO_COLONS> =>