lib/yard/handlers/c/symbol_handler.rb in yard-0.9.5 vs lib/yard/handlers/c/symbol_handler.rb in yard-0.9.6
- old
+ new
@@ -1,7 +1,8 @@
+# frozen_string_literal: true
# Keeps track of function bodies for symbol lookup during Ruby method declarations
class YARD::Handlers::C::SymbolHandler < YARD::Handlers::C::Base
- MATCH = %r{\A\s*(?:(?:\w+)\s+)?(?:intern\s+)?VALUE\s+(\w+)\s*\(}
+ MATCH = /\A\s*(?:(?:\w+)\s+)?(?:intern\s+)?VALUE\s+(\w+)\s*\(/
handles MATCH
statement_class ToplevelStatement
process { symbols[statement.source[MATCH, 1]] = statement }
end