Exclude parenthesized function declarations such as NORETURN

Fixes https://github.com/ruby/ruby/pull/3883
This commit is contained in:
Nobuyoshi Nakada 2020-12-11 13:40:03 +09:00
parent b53ccb9c69
commit 288e93bea8
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

View File

@ -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