lib/rouge/lexers/apiblueprint.rb in rouge-2.2.1 vs lib/rouge/lexers/apiblueprint.rb in rouge-3.0.0
- old
+ new
@@ -9,13 +9,9 @@
tag 'apiblueprint'
aliases 'apiblueprint', 'apib'
filenames '*.apib'
mimetypes 'text/vnd.apiblueprint'
- def self.analyze_text(text)
- return 1 if text.start_with?('FORMAT: 1A\n')
- end
-
prepend :root do
# Metadata
rule(/(\S+)(:\s*)(.*)$/) do
groups Name::Variable, Punctuation, Literal::String
end