diff options
author | Nobuyoshi Nakada <[email protected]> | 2020-12-11 13:40:03 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2020-12-11 13:43:18 +0900 |
commit | 288e93bea872e99ccf706294dc63b8a2b139ea2c (patch) | |
tree | f5fffa97e07881c8377ab1b9f054749d3086a5c1 /lib/rdoc | |
parent | b53ccb9c69abd24e3bdad66cbe4c7e7480eaef16 (diff) |
Exclude parenthesized function declarations such as NORETURN
Fixes https://github.com/ruby/ruby/pull/3883
Diffstat (limited to 'lib/rdoc')
-rw-r--r-- | lib/rdoc/parser/c.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/parser/c.rb b/lib/rdoc/parser/c.rb index deaef4dc79..9d8db6cdee 100644 --- a/lib/rdoc/parser/c.rb +++ b/lib/rdoc/parser/c.rb @@ -572,7 +572,7 @@ class RDoc::Parser::C < RDoc::Parser ((?>/\*.*?\*/\s*)?) ((?:(?:\w+)\s+)? (?:intern\s+)?VALUE\s+(\w+) - \s*(?:\([^)]*\))(?:[^;]|$)) + \s*(?:\([^)]*\))(?:[^\);]|$)) | ((?>/\*.*?\*/\s*))^\s*(\#\s*define\s+(\w+)\s+(\w+)) | ^\s*\#\s*define\s+(\w+)\s+(\w+) }xm) do |