lib/tnql/grammars/registry.treetop in tnql-1.0.4 vs lib/tnql/grammars/registry.treetop in tnql-1.1.0
- old
+ new
@@ -1,8 +1,12 @@
module Tnql
grammar Registry
rule registry
- space registry:(registry_code / registry_abbr) <Nodes::RegistryNode>
+ exclude:exclude_crown_dependencies? space registry:(registry_code / registry_abbr) <Nodes::RegistryNode>
+ end
+
+ rule exclude_crown_dependencies
+ space ('not' / 'non' / 'exclude') space crown_dependency:('channel islands' / 'iom' / 'isle of man') <Nodes::ExcludeCrownDependencyNode>
end
rule registry_code
'y' [0-9] 4..4 <Nodes::RegistryCodeNode>
end