# File lib/rouge/lexers/yaml.rb, line 13 def self.analyze_text(text) # look for the %YAML directive return 1 if text =~ /\A\s*%YAML/m end