pygments / pygments.rb

💎 Ruby wrapper for Pygments syntax highlighter
MIT License
572 stars 141 forks source link

Enhancing C++ lexer for include directives #150

Closed marcodiiga closed 9 years ago

marcodiiga commented 9 years ago

Hi, I'm using Pygments indirectly through Github pages for my blog and since I wanted to have a different style for include directives and their respective include files, I changed some lines in the lexer itself. To make it clear I wanted to add a custom styling to the file path in the include directives

in order to make it look like

If there are no other problems with this change, it's a 2-lines enhancement and could be useful to people who need some additional C++ syntax highlighting.

Thanks!

tmm1 commented 9 years ago

Changes to lexers must be submitted upstream to the pygments project.