From 288e93bea872e99ccf706294dc63b8a2b139ea2c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 11 Dec 2020 13:40:03 +0900 Subject: Exclude parenthesized function declarations such as NORETURN Fixes https://github.com/ruby/ruby/pull/3883 --- lib/rdoc/parser/c.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3