Minor bug fixes
diff --git a/plyxproto/model.py b/plyxproto/model.py
index 832c17a..d19eeff 100644
--- a/plyxproto/model.py
+++ b/plyxproto/model.py
@@ -161,7 +161,7 @@
Base.p(self.body, self)
def accept(self, visitor):
- if visitor.visit_EnumDefinition(self):
+ if visitor.visit_PolicyDefinition(self):
self.v(self.name, visitor)
self.v(self.body, visitor)
diff --git a/plyxproto/parser.py b/plyxproto/parser.py
index acc3279..abf39fa 100755
--- a/plyxproto/parser.py
+++ b/plyxproto/parser.py
@@ -20,7 +20,7 @@
keywords = ('double', 'float', 'int32', 'int64', 'uint32', 'uint64', 'sint32', 'sint64',
'fixed32', 'fixed64', 'sfixed32', 'sfixed64', 'bool', 'string', 'bytes',
'message', 'required', 'optional', 'repeated', 'enum', 'extensions', 'max', 'extend',
- 'to', 'package', '_service', 'rpc', 'returns', 'true', 'false', 'option', 'import', 'manytoone', 'manytomany', 'onetoone', 'policy', 'map', 'reduce')
+ 'to', 'package', '_service', 'rpc', 'returns', 'True', 'False', 'option', 'import', 'manytoone', 'manytomany', 'onetoone', 'policy', 'map', 'reduce')
tokens = [
'POLICYBODY',