lib/rouge/lexers/properties.rb in rouge-2.2.1 vs lib/rouge/lexers/properties.rb in rouge-3.0.0
- old
+ new
@@ -8,13 +8,9 @@
tag 'properties'
filenames '*.properties'
mimetypes 'text/x-java-properties'
- def self.analyze_text(text)
- return 0.1 if text =~ /\A\[[\w.-]+\]\s*\w+=\w+/
- end
-
identifier = /[\w.-]+/
state :basic do
rule /[!#].*?\n/, Comment
rule /\s+/, Text