I'm using sphinx with the ScssLexer class pygments.lexers.css.ScssLexer
.
When I try to include a .. code-block: scss
in an .rst
file that uses variables, such as:
.. code-block:: scss
h1 {
color: $blue;
}
I get the following warning:
WARNING: Could not lex literal_block as "scss". Highlighting skipped.
The variables are defined in an scss file that is meant to be included in the code by the reader of the docs.
How can I fix this?