Skip to content

Commit 72e29f2

Browse files
committed
corrections for pyproject.toml warnings
Change-Id: I59353dfab419b3feabe207510ee088c739de8f7d
1 parent e2231b4 commit 72e29f2

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

‎pyproject.toml‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,19 @@ mako = "mako.ext.turbogears:TGPlugin"
7474

7575
[project.entry-points."pygments.lexers"]
7676
mako = "mako.ext.pygmentplugin:MakoLexer"
77-
"html+mako" = "mako.ext.pygmentplugin:MakoHtmlLexer"
78-
"xml+mako" = "mako.ext.pygmentplugin:MakoXmlLexer"
79-
"js+mako" = "mako.ext.pygmentplugin:MakoJavascriptLexer"
80-
"css+mako" = "mako.ext.pygmentplugin:MakoCssLexer"
77+
# pygments discovers lexers by loading the entry point and reading the
78+
# lexer class's own aliases; the entry point name itself is ignored, so
79+
# these use underscores to satisfy the recommended [\w.-]+ name pattern
80+
html_mako = "mako.ext.pygmentplugin:MakoHtmlLexer"
81+
xml_mako = "mako.ext.pygmentplugin:MakoXmlLexer"
82+
js_mako = "mako.ext.pygmentplugin:MakoJavascriptLexer"
83+
css_mako = "mako.ext.pygmentplugin:MakoCssLexer"
8184

8285
[project.entry-points."babel.extractors"]
83-
mako = "mako.ext.babelplugin:extract [babel]"
86+
mako = "mako.ext.babelplugin:extract"
8487

8588
[project.entry-points."lingua.extractors"]
86-
mako = "mako.ext.linguaplugin:LinguaMakoExtractor [lingua]"
89+
mako = "mako.ext.linguaplugin:LinguaMakoExtractor"
8790

8891
[project.scripts]
8992
mako-render = "mako.cmd:cmdline"

0 commit comments

Comments
 (0)