1. Georg Brandl
  2. pygments-main
Issue #890 new

YAML highlight

piuccio
created an issue

Hello, I've tried to style YAML files but I think the parser should be improved

The following code

resources: some text

generates

<span class="l-Scalar-Plain">resources</span>
<span class="p-Indicator">resources</span>
<span class="l-Scalar-Plain">some text</span>

It should be something like

<span class="nt">resources</span>
<span class="p">resources</span>
<span class="sx">some text</span>

resources is a tag and some text is unquoted string

Comments (4)

  1. Log in to comment