Skip to content

HAML syntax highlighting broken #3783

@j-erasmus

Description

@j-erasmus

Describe the issue
HAML syntax highlighting is broken

Codepen

This issue was previously reported (#1435) and closed, but the issue does not seem to be fixed.

Screenshot 2023-05-08 at 15 07 12

Screenshot 2023-05-08 at 15 19 47

Which language seems to have the issue?
HAML

Sample Code to Reproduce

!!! 5
%html
  %body
    %h1.foo-bar This works fine
    %span.hello.world syntax is fine here
    .broken{ broken: 'yes' }
    %anything.working{ working: 'fine' }
      .also-broken
      .i-am-broken
        .me-too
          %h1.good All good!

Expected behavior (Rouge example)
Screenshot 2023-05-08 at 15 12 38

Additional context
Same issue with HAML mixed with Ruby:

Screenshot 2023-05-08 at 15 17 50

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions