We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec60c83 commit 316f071Copy full SHA for 316f071
lib/coderay/scanners/yaml.rb
@@ -76,7 +76,7 @@ def scan_tokens encoder, options
76
when match = scan(/[,{}\[\]]/)
77
encoder.text_token match, :operator
78
next
79
- when state == :initial && match = scan(/[\w.() ]*\S(?= *:(?: |$))/)
+ when state == :initial && match = scan(/[-\w.()\/ ]*\S(?= *:(?: |$))/)
80
encoder.text_token match, :key
81
key_indent = column(pos - match.size) - 1
82
state = :colon
0 commit comments