summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/yaml.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/coderay/scanners/yaml.rb')
-rw-r--r--lib/coderay/scanners/yaml.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/coderay/scanners/yaml.rb b/lib/coderay/scanners/yaml.rb
index a0b1ae2..386265d 100644
--- a/lib/coderay/scanners/yaml.rb
+++ b/lib/coderay/scanners/yaml.rb
@@ -108,10 +108,10 @@ module Scanners
encoder.text_token match, :class_variable
next
when match = scan(/\d\d:\d\d:\d\d/)
- encoder.text_token match, :oct
+ encoder.text_token match, :octal
next
when match = scan(/\d\d\d\d-\d\d-\d\d\s\d\d:\d\d:\d\d(\.\d+)? [-+]\d\d:\d\d/)
- encoder.text_token match, :oct
+ encoder.text_token match, :octal
next
when match = scan(/:\w+/)
encoder.text_token match, :symbol