mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Exclude parenthesized function declarations such as NORETURN
Fixes https://github.com/ruby/ruby/pull/3883
This commit is contained in:
parent
b53ccb9c69
commit
288e93bea8
1 changed files with 1 additions and 1 deletions
|
@ -572,7 +572,7 @@ class RDoc::Parser::C < RDoc::Parser
|
||||||
((?>/\*.*?\*/\s*)?)
|
((?>/\*.*?\*/\s*)?)
|
||||||
((?:(?:\w+)\s+)?
|
((?:(?:\w+)\s+)?
|
||||||
(?:intern\s+)?VALUE\s+(\w+)
|
(?:intern\s+)?VALUE\s+(\w+)
|
||||||
\s*(?:\([^)]*\))(?:[^;]|$))
|
\s*(?:\([^)]*\))(?:[^\);]|$))
|
||||||
| ((?>/\*.*?\*/\s*))^\s*(\#\s*define\s+(\w+)\s+(\w+))
|
| ((?>/\*.*?\*/\s*))^\s*(\#\s*define\s+(\w+)\s+(\w+))
|
||||||
| ^\s*\#\s*define\s+(\w+)\s+(\w+)
|
| ^\s*\#\s*define\s+(\w+)\s+(\w+)
|
||||||
}xm) do
|
}xm) do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue