Skip to content

Commit 1f059d6

Browse files
nobuaycabta
authored andcommitted
Exclude parenthesized function declarations such as NORETURN
Fixes ruby/ruby#3883
1 parent 6c7d2d2 commit 1f059d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rdoc/parser/c.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ def gen_body_table file_content
572572
((?>/\*.*?\*/\s*)?)
573573
((?:(?:\w+)\s+)?
574574
(?:intern\s+)?VALUE\s+(\w+)
575-
\s*(?:\([^)]*\))(?:[^;]|$))
575+
\s*(?:\([^)]*\))(?:[^\);]|$))
576576
| ((?>/\*.*?\*/\s*))^\s*(\#\s*define\s+(\w+)\s+(\w+))
577577
| ^\s*\#\s*define\s+(\w+)\s+(\w+)
578578
}xm) do

0 commit comments

Comments
 (0)