Skip to content

Syntax highlighting doesn't appear to work correctly

Summary

On some themes, the syntax highlighting seems pretty broken.

Take this file for instance: https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/services/vulnerabilities/resolve_service.rb

Light and Monokai seem wrong, but for posterity I've included all the themes below.

Not that in my tests Sourcegraph is turned off.

Theme Screenshot
Light Screen_Shot_2022-06-21_at_1.16.44_PM
Dark Screen_Shot_2022-06-21_at_1.23.41_PM
Solarized Light Screen_Shot_2022-06-21_at_1.24.03_PM
Solarized Dark Screen_Shot_2022-06-21_at_1.24.30_PM
Monokai Screen_Shot_2022-06-21_at_1.24.51_PM

Steps to reproduce

Set a theme and visit the file.