Skip to content
This repository was archived by the owner on Aug 28, 2020. It is now read-only.

Commit 9392149

Browse files
committed
as I said, pyinstaller and pygments are being weird
1 parent 02ffb52 commit 9392149

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pugdebug/syntaxer.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99

1010
__author__ = "robertbasic"
1111

12-
from pygments import highlight, lexers, formatter
12+
from pygments import highlight, formatter
13+
from pygments.lexers.php import PhpLexer
14+
from pygments.styles.default import DefaultStyle
1315

1416
from PyQt5.QtGui import QSyntaxHighlighter, QColor, QTextCharFormat
1517

@@ -31,7 +33,7 @@ def __init__(self, document, formatter):
3133
super(PugdebugSyntaxer, self).__init__(document)
3234

3335
self.formatter = formatter
34-
self.lexer = lexers.PhpLexer()
36+
self.lexer = PhpLexer()
3537

3638
self.highlight()
3739

0 commit comments

Comments
 (0)