-
Notifications
You must be signed in to change notification settings - Fork 743
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lexer: c: Highlight #includes as Comment::PreprocFile
When changing https://chrisdown.name over from Pygments to Rouge, one quite noticeable change was that `{% highlight c %}` blocks lost the delineation between #include statements and the actual include, with them all now just being stylised as a comment. This patch brings back Comment::PreprocFile support for C-like languages, as it was with Pygments. Tested locally by rebuilding chrisdown.name with a gem from this commit, and seeing that the Comment::PreprocFile highlighting reappeared.
- Loading branch information
Showing
2 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters