aboutsummaryrefslogtreecommitdiff
path: root/parse.rb
diff options
context:
space:
mode:
Diffstat (limited to 'parse.rb')
-rw-r--r--parse.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/parse.rb b/parse.rb
index 5fcfad2..0625c15 100644
--- a/parse.rb
+++ b/parse.rb
@@ -1,9 +1,10 @@
def sub_vars(string)
outvars = []
blockvars = []
+ notvars = %w(true false nil)
vars = string.split(",").map(&:strip)
vars.each do |var|
- if var =~ /[a-z_][a-zA-Z0-9_]*?/ then
+ if var =~ /[a-z_][a-zA-Z0-9_]*?/ && !notvars.include?(var) then
outvars << "Patter::Var"
blockvars << var
else