lib/biodiversity/parser/scientific_name.treetop in dimus-biodiversity-0.0.11 vs lib/biodiversity/parser/scientific_name.treetop in dimus-biodiversity-0.0.12
- old
+ new
@@ -520,40 +520,55 @@
rule latin_word
a:[a-zë] b:full_name_letters {
def value
a.text_value + b.value
end
+ def details
+ {}
+ end
}
/
a:digraph b:full_name_letters {
def value
a.value + b.value
end
+ def details
+ {}
+ end
}
end
rule full_name_letters
a:digraph b:full_name_letters {
def value
a.value + b.value
end
+ def details
+ {}
+ end
}
/
a:valid_name_letters b:digraph c:full_name_letters {
def value
a.value + b.value + c.value
end
+ def details
+ {}
+ end
}
/
valid_name_letters
end
rule valid_name_letters
[a-z\-ëüäöï]+ {
def value
text_value
end
+ def details
+ {}
+ end
}
end
rule digraph
[æ] {
@@ -572,10 +587,13 @@
rule hybrid_separator
("x"/"X"/"×") {
def value
"x"
end
+ def details
+ {}
+ end
}
end
rule year
year_with_character
@@ -600,12 +618,21 @@
end
}
end
rule space
- [\s]*
+ [\s]* {
+ def details
+ {
+ }
+ end
+ }
end
rule space_hard
- [\s]+
+ [\s]+ {
+ def details
+ {}
+ end
+ }
end
end
\ No newline at end of file