Permalink
Browse files

Override needs keywords

  • Loading branch information...
1 parent 5477a63 commit a5b553fbf29940726d4e1f330659085efe165525 @steveyen committed Apr 16, 2011
Showing with 6 additions and 1 deletion.
  1. +2 −1 bubble-to-pegjs.rb
  2. +4 −0 bubble-to-pegjs_ex.rb
View
@@ -85,6 +85,7 @@ def optx(*rest)
nil = ''
whitespace = [\\s]*
+whitespace1 = [\\s]+
unary_operator = '-' / '+' / '~' / 'NOT'
binary_operator =
@@ -144,6 +145,6 @@ def optx(*rest)
print "#{$extra}\n"
$keywords.keys.sort.each do |keyword|
- print "#{keyword} = whitespace \"#{keyword}\"\n"
+ print "#{keyword} = whitespace1 \"#{keyword}\"\n"
end
@@ -1,5 +1,9 @@
#!/usr/bin/env ruby
+$keywords['EXPLAIN'] = true
+$keywords['QUERY'] = true
+$keywords['PLAN'] = true
+
$override[:sql_stmt] = <<-EOS
( ( EXPLAIN ( QUERY PLAN )? )? (
// alter_table_stmt

0 comments on commit a5b553f

Please sign in to comment.