lib/rouge/lexers/smarty.rb in rouge-2.2.1 vs lib/rouge/lexers/smarty.rb in rouge-3.0.0
- old
+ new
@@ -8,20 +8,9 @@
tag 'smarty'
aliases 'smarty'
filenames '*.tpl', '*.smarty'
mimetypes 'application/x-smarty', 'text/x-smarty'
- def self.analyze_text(text)
- rv = 0.0
- rv += 0.15 if text =~ /\{if\s+.*?\}.*?\{\/if\}/
- rv += 0.15 if text =~ /\{include\s+file=.*?\}/
- rv += 0.15 if text =~ /\{foreach\s+.*?\}.*?\{\/foreach\}/
- rv += 0.01 if text =~ /\{\$.*?\}/
- return rv
- end
-
-
-
def self.builtins
@builtins ||= %w(
append assign block call capture config_load debug extends
for foreach foreachelse break continue function if elseif
else include include_php insert ldelim rdelim literal nocache