lib/rouge/lexers/llvm.rb in rouge-2.2.1 vs lib/rouge/lexers/llvm.rb in rouge-3.0.0
- old
+ new
@@ -8,13 +8,9 @@
tag 'llvm'
filenames '*.ll'
mimetypes 'text/x-llvm'
- def self.analyze_text(text)
- return 0.1 if text =~ /\A%\w+\s=\s/
- end
-
string = /"[^"]*?"/
identifier = /([-a-zA-Z$._][-a-zA-Z$._0-9]*|#{string})/
state :basic do
rule /;.*?$/, Comment::Single