https://bugs.kde.org/show_bug.cgi?id=423428

            Bug ID: 423428
           Summary: WARNING: Could not lex literal_block as "cmake"
           Product: extra-cmake-modules
           Version: 5.71.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: ecm-bugs-n...@kde.org
          Reporter: gm...@ratijas.tk
  Target Milestone: ---

SUMMARY

Moved from https://invent.kde.org/frameworks/extra-cmake-modules/-/issues/1

```
/projects/qt/extra-cmake-modules/docs/module/ECMSetupQtPluginMacroNames.rst:89:
WARNING: Could not lex literal_block as "cmake". Highlighting skipped.
```

`modules/ECMSetupQtPluginMacroNames.cmake`:
```
# .. code-block:: cmake
#
#   @PACKAGE_SETUP_AUTOMOC_VARIABLES@
#
```

Strictly speaking this is not a cmake block but rather cmake.in. Unfortunately,
Pygments library doesn't support that. I don't know workarounds for cases like
this one.

STEPS TO REPRODUCE
1. Build the documentation with `cmake && make`

OBSERVED RESULT

WARNING: Could not lex literal_block as "cmake". Highlighting skipped.

EXPECTED RESULT

No warning.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Not relevant
(available in About System)
KDE Plasma Version: Not relevant
KDE Frameworks Version: Not relevant
Qt Version: Not relevant

ADDITIONAL INFORMATION

Python 3.8
sphinx-build 3.1.1
Pygments version 2.6.1

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to