Skip to content

Commit

Permalink
Ruby: fill the mixin field with "prepend X" and "extend X"
Browse files Browse the repository at this point in the history
  • Loading branch information
AmaiKinono committed Apr 2, 2020
1 parent 6c50aae commit 83096cc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions parsers/ruby.c
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,14 @@ static void findRubyTags (void)
{
readAndStoreMixinSpec (&cp, "include");
}
else if (canMatchKeywordWithAssign (&cp, "prepend"))
{
readAndStoreMixinSpec (&cp, "prepend");
}
else if (canMatchKeywordWithAssign (&cp, "extend"))
{
readAndStoreMixinSpec (&cp, "extend");
}
else if (canMatchKeywordWithAssign (&cp, "def"))
{
rubyKind kind = K_METHOD;
Expand Down

0 comments on commit 83096cc

Please sign in to comment.