lib/rouge/lexers/idlang.rb in rouge-2.2.1 vs lib/rouge/lexers/idlang.rb in rouge-3.0.0
- old
+ new
@@ -8,15 +8,9 @@
desc "Interactive Data Language"
tag 'idlang'
filenames '*.idl'
- def self.analyze_text(text)
- # Does there exist a statement that starts with 'pro' or
- # 'function'?
- return 0.4 if text =~ /^\s+(pro|function)\z/
- end
-
name = /[_A-Z]\w*/i
kind_param = /(\d+|#{name})/
exponent = /[dDeE][+-]\d+/
def self.exec_unit