summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/coderay/encoder.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/coderay/encoder.rb b/lib/coderay/encoder.rb
index 6e32e75..7acfe79 100644
--- a/lib/coderay/encoder.rb
+++ b/lib/coderay/encoder.rb
@@ -167,8 +167,7 @@ module CodeRay
content = nil
for item in tokens
if item.is_a? Array
- warn 'two-element array tokens are deprecated'
- content, item = *item
+ raise ArgumentError, 'Two-element array tokens are no longer supported.'
end
if content
token content, item
@@ -177,8 +176,11 @@ module CodeRay
content = item
end
end
- raise if content
+ raise 'odd number list for Tokens' if content
end
+
+ alias tokens compile
+ public :tokens
end