lib/yard/handlers/c/symbol_handler.rb in yard-0.9.18 vs lib/yard/handlers/c/symbol_handler.rb in yard-0.9.19
- old
+ new
@@ -1,8 +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 = /\A\s*(?:(?:\w+)\s+)?(?:intern\s+)?VALUE\s+(\w+)\s*\(/
- handles MATCH
- statement_class ToplevelStatement
- process { symbols[statement.source[MATCH, 1]] = statement }
-end
+# 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 = /\A\s*(?:(?:\w+)\s+)?(?:intern\s+)?VALUE\s+(\w+)\s*\(/
+ handles MATCH
+ statement_class ToplevelStatement
+ process { symbols[statement.source[MATCH, 1]] = statement }
+end