-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom syntax highlighting style
- Loading branch information
1 parent
221d20c
commit 204cdc4
Showing
5 changed files
with
72 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
''' | ||
Pygments styles. | ||
''' | ||
|
||
from pygments.style import Style | ||
from pygments.token import ( | ||
Comment, | ||
Operator, | ||
Name, | ||
Keyword, | ||
String, | ||
Literal, | ||
Number, | ||
Error | ||
) | ||
|
||
|
||
class MetastoreStyle(Style): | ||
''' | ||
Metastore syntax highlighting style. | ||
''' | ||
|
||
default_style = '' | ||
|
||
styles = { | ||
Comment: '#666f78', | ||
Comment.Preproc: '#666f78', | ||
Operator: '#000000', | ||
Name: '#000000', | ||
Name.Builtin: 'bold #015493', | ||
Name.Builtin.Pseudo: 'bold #015493', | ||
Name.Variable: '#000000', | ||
Name.Tag: 'bold #015493', | ||
Name.Decorator: '#000000', | ||
Name.Label: '#000000', | ||
Name.Attribute: '#000000', | ||
Name.Class: '#000000', | ||
Name.Function: '#000000', | ||
Keyword: 'bold #015493', | ||
String: '#dd2458', | ||
String.Char: '#dd2458', | ||
Literal: '#009b44', | ||
Number: '#009b44', | ||
Error: '#000000' | ||
} |
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
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