lib/yard/handlers/c/constant_handler.rb in yard-0.9.5 vs lib/yard/handlers/c/constant_handler.rb in yard-0.9.6
- old
+ new
@@ -1,7 +1,8 @@
+# frozen_string_literal: true
class YARD::Handlers::C::ConstantHandler < YARD::Handlers::C::Base
- MATCH = %r{\brb_define_((?:readonly_)?variable|(?:global_)?const)
- \s*\((?:\s*(\w+),)?\s*"(\w+)",\s*(.*?)\s*\)\s*;}xm
+ MATCH = /\brb_define_((?:readonly_)?variable|(?:global_)?const)
+ \s*\((?:\s*(\w+),)?\s*"(\w+)",\s*(.*?)\s*\)\s*;/xm
handles MATCH
statement_class BodyStatement
process do
statement.source.scan(MATCH) do |type, var_name, const_name, value|