summaryrefslogtreecommitdiff
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
commita30fe695e64783e834945f08fc77282b3f3cc2fb (patch)
tree87e935208870ad102b766a2ccc33c65a15f2850d /keywords
parentcebc9bb19d219aaf5d035ff2d0e5fb69636bd2c1 (diff)
* keywords: enclose C code in declaration section by %{ and %}.
git-svn-id: svn+ssh://ci.ruby-lang.org/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 f306d8d..8741eb4 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