0

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?

mzjn
  • 48,958
  • 13
  • 128
  • 248
fulv
  • 1,016
  • 1
  • 9
  • 18
  • Here's a bug report https://bitbucket.org/birkenfeld/pygments-main/issues/1096/scss-variable-not-detected-in-attribute – Steve Piercy Oct 08 '17 at 19:09
  • Also including reference to Plone Training Docs: https://github.com/plone/training/pull/285#issuecomment-335030718 – Steve Piercy Oct 08 '17 at 19:15

0 Answers0