summaryrefslogtreecommitdiffstats
path: root/keywords
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-15 11:50:45 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-15 11:50:45 +0000
commitb2344150fbfe6ded56d3b419d5c5a8cf2d9500c5 (patch)
tree87e935208870ad102b766a2ccc33c65a15f2850d /keywords
parent07dc1fbb18e23f0a9d1d37e66cc96948014d2c41 (diff)
downloadruby-b2344150fbfe6ded56d3b419d5c5a8cf2d9500c5.tar.gz
ruby-b2344150fbfe6ded56d3b419d5c5a8cf2d9500c5.tar.xz
ruby-b2344150fbfe6ded56d3b419d5c5a8cf2d9500c5.zip
* keywords: enclose C code in declaration section by %{ and %}.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'keywords')
-rw-r--r--keywords3
1 files changed, 3 insertions, 0 deletions
diff --git a/keywords b/keywords
index f306d8dd9..8741eb46b 100644
--- a/keywords
+++ b/keywords
@@ -1,7 +1,10 @@
+%{
struct kwtable {char *name; int id[2]; enum lex_state_e state;};
const struct kwtable *rb_reserved_word _((const char *, unsigned int));
#ifndef RIPPER
+%}
+struct kwtable;
%%
__LINE__, {keyword__LINE__, keyword__LINE__}, EXPR_END
__FILE__, {keyword__FILE__, keyword__FILE__}, EXPR_END