lib/fonte/parsers/player.treetop in fonte-0.0.1 vs lib/fonte/parsers/player.treetop in fonte-0.1.0
- old
+ new
@@ -4,11 +4,15 @@
include Number
include Word
include SteamID
rule player
- nickname "<" uid ">" "<" steam_id ">" "<" team ">"
+ nickname "<" uid ">" "<" steam_id ">" "<" team ">" {
+ def value
+ text_value
+ end
+ }
end
rule nickname
(![<>] .)* {
def value
@@ -20,10 +24,10 @@
rule uid
integer
end
rule team
- (![<>] .)* {
+ (![<>] character)* {
def value
text_value == "Unassigned" || text_value == "Console" || text_value == "" ? nil : text_value
end
}
end