10000 minor #4418 use the C lexer for Varnish config examples (xabbuh) · symfony/symfony-docs@0577559 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0577559

Browse files
committed
minor #4418 use the C lexer for Varnish config examples (xabbuh)
This PR was merged into the 2.3 branch. Discussion ---------- use the C lexer for Varnish config examples Commits ------- 1d84139 use the C lexer for Varnish config examples
2 parents 97d8f61 + 1d84139 commit 0577559

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222

2323
# adding PhpLexer
2424
from sphinx.highlighting import lexers
25+
from pygments.lexers.compiled import CLexer
2526
from pygments.lexers.web import PhpLexer
26-
from pygments.lexers.agile import RubyLexer
2727

2828
# -- General configuration -----------------------------------------------------
2929

@@ -101,9 +101,9 @@
101101
lexers['php-annotations'] = PhpLexer(startinline=True)
102102
lexers['php-standalone'] = PhpLexer(startinline=True)
103103
lexers['php-symfony'] = PhpLexer(startinline=True)
104-
lexers['varnish2'] = RubyLexer()
105-
lexers['varnish3'] = RubyLexer()
106-
lexers['varnish4'] = RubyLexer()
104+
lexers['varnish2'] = CLexer()
105+
lexers['varnish3'] = CLexer()
106+
lexers['varnish4'] = CLexer()
107107

108108
config_block = {
109109
'varnish2': 'Varnish 2',

0 commit comments

Comments
 (0)
0