summaryrefslogtreecommitdiff
path: root/ext/ripper/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-02 14:43:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-02 14:43:10 +0000
commitd2a81a3aa319d7f1c24c32e315dbf2b7c0e099a9 (patch)
tree6ee165b740742964e40b0a5ab444958c28713c6a /ext/ripper/lib
parent34adacb036e1aac4b6b914e1515e4a907c30a0b7 (diff)
* parse.y: pragma support on ripper. [ruby-dev:26266]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/ripper/lib')
-rw-r--r--ext/ripper/lib/ripper/core.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/ripper/lib/ripper/core.rb b/ext/ripper/lib/ripper/core.rb
index b362d30..a365c8e 100644
--- a/ext/ripper/lib/ripper/core.rb
+++ b/ext/ripper/lib/ripper/core.rb
@@ -93,6 +93,7 @@ class Ripper
:params => 4,
:paren => 1,
:parse_error => 1,
+ :pragma => 2,
:program => 1,
:qwords_add => 2,
:qwords_new => 0,
@@ -509,6 +510,10 @@ class Ripper
a
end
+ def on_pragma(a, b)
+ a
+ end
+
def on_program(a)
a
end