Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Unbreak on ruby 1.9.x.
Browse files Browse the repository at this point in the history
  • Loading branch information
bernd committed Oct 22, 2011
1 parent 0590a8d commit 6873e41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/nagios_parser/object/parser.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/nagios_parser/object/parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def create_token(string)
result << [:VALUE, match.to_i]
when (inside and match = scanner.scan(/[^\n\}]+/))
# Make sure to ignore inline comments starting with ';'.
result << [:VALUE, match.first.gsub(/\s+$/, '')]
result << [:VALUE, match.gsub(/\s+$/, '')]
else
raise "Can't tokenize <#{scanner.peek(10)}>"
end
Expand Down

0 comments on commit 6873e41

Please sign in to comment.