Skip to content

Commit

Permalink
Add Generic.EmphStrong token (#2444)
Browse files Browse the repository at this point in the history
  • Loading branch information
diskdance committed May 29, 2023
1 parent 5ea3b0b commit b7c8f35
Show file tree
Hide file tree
Showing 31 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/docs/tokens.rst
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,9 @@ highlight a programming language but a patch file.
`Generic.Strong`
Marks the token value as bold (e.g. for rst lexer).

`Generic.EmphStrong`
Marks the token value as bold and emphasized.

`Generic.Subheading`
Marks the token value as subheadline.

Expand Down
1 change: 1 addition & 0 deletions pygments/styles/autumn.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class AutumnStyle(Style):
Generic.Error: '#aa0000',
Generic.Emph: 'italic',
Generic.Strong: 'bold',
Generic.EmphStrong: 'bold italic',
Generic.Prompt: '#555555',
Generic.Output: '#888888',
Generic.Traceback: '#aa0000',
Expand Down
1 change: 1 addition & 0 deletions pygments/styles/borland.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class BorlandStyle(Style):
Generic.Error: '#aa0000',
Generic.Emph: 'italic',
Generic.Strong: 'bold',
Generic.EmphStrong: 'bold italic',
Generic.Prompt: '#555555',
Generic.Output: '#888888',
Generic.Traceback: '#aa0000',
Expand Down
1 change: 1 addition & 0 deletions pygments/styles/bw.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class BlackWhiteStyle(Style):
Generic.Subheading: "bold",
Generic.Emph: "italic",
Generic.Strong: "bold",
Generic.EmphStrong: "bold italic",
Generic.Prompt: "bold",

Error: "border:#FF0000"
Expand Down
1 change: 1 addition & 0 deletions pygments/styles/colorful.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ class ColorfulStyle(Style):
Generic.Error: "#FF0000",
Generic.Emph: "italic",
Generic.Strong: "bold",
Generic.EmphStrong: "bold italic",
Generic.Prompt: "bold #c65d09",
Generic.Output: "#888",
Generic.Traceback: "#04D",
Expand Down
1 change: 1 addition & 0 deletions pygments/styles/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class DefaultStyle(Style):
Generic.Error: "#E40000",
Generic.Emph: "italic",
Generic.Strong: "bold",
Generic.EmphStrong: "bold italic",
Generic.Prompt: "bold #000080",
Generic.Output: "#717171",
Generic.Traceback: "#04D",
Expand Down
1 change: 1 addition & 0 deletions pygments/styles/dracula.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class DraculaStyle(Style):
Generic.Output: "#44475a",
Generic.Prompt: "#f8f8f2",
Generic.Strong: "#f8f8f2",
Generic.EmphStrong: "#f8f8f2 underline",
Generic.Subheading: "#f8f8f2 bold",
Generic.Traceback: "#f8f8f2",

Expand Down
1 change: 1 addition & 0 deletions pygments/styles/emacs.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class EmacsStyle(Style):
Generic.Error: "#FF0000",
Generic.Emph: "italic",
Generic.Strong: "bold",
Generic.EmphStrong: "bold italic",
Generic.Prompt: "bold #000080",
Generic.Output: "#888",
Generic.Traceback: "#04D",
Expand Down
1 change: 1 addition & 0 deletions pygments/styles/friendly.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class FriendlyStyle(Style):
Generic.Error: "#FF0000",
Generic.Emph: "italic",
Generic.Strong: "bold",
Generic.EmphStrong: "bold italic",
Generic.Prompt: "bold #c65d09",
Generic.Output: "#888",
Generic.Traceback: "#04D",
Expand Down
1 change: 1 addition & 0 deletions pygments/styles/friendly_grayscale.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class FriendlyGrayscaleStyle(Style):
Generic.Error: "#898989",
Generic.Emph: "italic",
Generic.Strong: "bold",
Generic.EmphStrong: "bold italic",
Generic.Prompt: "bold #7E7E7E",
Generic.Output: "#888888",
Generic.Traceback: "#6D6D6D",
Expand Down
1 change: 1 addition & 0 deletions pygments/styles/gh_dark.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ class GhDarkStyle(Style):
Generic.Output: GRAY_3,
Generic.Prompt: GRAY_3,
Generic.Strong: "bold",
Generic.EmphStrong: "bold italic",
Generic.Subheading: BLUE_2,
Generic.Traceback: RED_3,
Generic.Underline: "underline",
Expand Down
1 change: 1 addition & 0 deletions pygments/styles/gruvbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class GruvboxDarkStyle(Style):
Generic.Error: '#fb4934',
Generic.Emph: 'italic',
Generic.Strong: 'bold',
Generic.EmphStrong: 'bold italic',
Generic.Prompt: '#a89984',
Generic.Output: '#f2e5bc',
Generic.Traceback: '#fb4934',
Expand Down
1 change: 1 addition & 0 deletions pygments/styles/inkpot.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class InkPotStyle(Style):
Generic.Error: "#FF0000",
Generic.Emph: "italic",
Generic.Strong: "bold",
Generic.EmphStrong: "bold italic",
Generic.Prompt: "bold #000080",
Generic.Output: "#888",
Generic.Traceback: "#04D",
Expand Down
1 change: 1 addition & 0 deletions pygments/styles/lovelace.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class LovelaceStyle(Style):
Generic.Output: '#666666',
Generic.Prompt: '#444444',
Generic.Strong: 'bold',
Generic.EmphStrong: 'bold italic',
Generic.Traceback: _KW_BLUE,

Error: 'bg:'+_OW_PURPLE,
Expand Down
1 change: 1 addition & 0 deletions pygments/styles/manni.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class ManniStyle(Style):
Generic.Error: '#FF0000',
Generic.Emph: 'italic',
Generic.Strong: 'bold',
Generic.EmphStrong: 'bold italic',
Generic.Prompt: 'bold #000099',
Generic.Output: '#AAAAAA',
Generic.Traceback: '#99CC66',
Expand Down
1 change: 1 addition & 0 deletions pygments/styles/material.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ class MaterialStyle(Style):
Generic.Output: faded,
Generic.Prompt: yellow,
Generic.Strong: red,
Generic.EmphStrong: yellow,
Generic.Subheading: cyan,
Generic.Traceback: red,
}
1 change: 1 addition & 0 deletions pygments/styles/monokai.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ class MonokaiStyle(Style):
Generic.Output: "#66d9ef", # class: 'go'
Generic.Prompt: "bold #f92672", # class: 'gp'
Generic.Strong: "bold", # class: 'gs'
Generic.EmphStrong: "bold italic", # class: 'ges'
Generic.Subheading: "#75715e", # class: 'gu'
Generic.Traceback: "", # class: 'gt'
}
1 change: 1 addition & 0 deletions pygments/styles/murphy.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class MurphyStyle(Style):
Generic.Error: "#FF0000",
Generic.Emph: "italic",
Generic.Strong: "bold",
Generic.EmphStrong: "bold italic",
Generic.Prompt: "bold #c65d09",
Generic.Output: "#888",
Generic.Traceback: "#04D",
Expand Down
1 change: 1 addition & 0 deletions pygments/styles/native.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class NativeStyle(Style):
Generic.Error: '#d22323',
Generic.Emph: 'italic',
Generic.Strong: 'bold',
Generic.EmphStrong: 'bold italic',
Generic.Prompt: '#aaaaaa',
Generic.Output: '#cccccc',
Generic.Traceback: '#d22323',
Expand Down
1 change: 1 addition & 0 deletions pygments/styles/nord.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ class NordStyle(Style):
Generic.Error: '#bf616a',
Generic.Emph: 'italic',
Generic.Strong: 'bold',
Generic.EmphStrong: 'bold italic',
Generic.Prompt: 'bold #616e88',
Generic.Output: '#d8dee9',
Generic.Traceback: '#bf616a',
Expand Down
1 change: 1 addition & 0 deletions pygments/styles/paraiso_dark.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ class ParaisoDarkStyle(Style):
Generic.Output: "", # class: 'go'
Generic.Prompt: "bold " + COMMENT, # class: 'gp'
Generic.Strong: "bold", # class: 'gs'
Generic.EmphStrong: "bold italic", # class: 'ges'
Generic.Subheading: "bold " + AQUA, # class: 'gu'
Generic.Traceback: "", # class: 'gt'
}
1 change: 1 addition & 0 deletions pygments/styles/paraiso_light.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ class ParaisoLightStyle(Style):
Generic.Output: "", # class: 'go'
Generic.Prompt: "bold " + COMMENT, # class: 'gp'
Generic.Strong: "bold", # class: 'gs'
Generic.EmphStrong: "bold italic", # class: 'ges'
Generic.Subheading: "bold " + AQUA, # class: 'gu'
Generic.Traceback: "", # class: 'gt'
}
1 change: 1 addition & 0 deletions pygments/styles/pastie.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class PastieStyle(Style):
Generic.Error: '#aa0000',
Generic.Emph: 'italic',
Generic.Strong: 'bold',
Generic.EmphStrong: 'bold italic',
Generic.Prompt: '#555555',
Generic.Output: '#888888',
Generic.Traceback: '#aa0000',
Expand Down
1 change: 1 addition & 0 deletions pygments/styles/perldoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class PerldocStyle(Style):
Generic.Error: '#aa0000',
Generic.Emph: 'italic',
Generic.Strong: 'bold',
Generic.EmphStrong: 'bold italic',
Generic.Prompt: '#555555',
Generic.Output: '#888888',
Generic.Traceback: '#aa0000',
Expand Down
1 change: 1 addition & 0 deletions pygments/styles/rainbow_dash.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class RainbowDashStyle(Style):
Generic.Output: GREY,
Generic.Prompt: 'bold {}'.format(BLUE),
Generic.Strong: 'bold',
Generic.EmphStrong: 'bold italic',
Generic.Subheading: 'bold {}'.format(BLUE),
Generic.Traceback: RED_DARK,

Expand Down
1 change: 1 addition & 0 deletions pygments/styles/solarized.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def make_style(colors):
Generic.Output: colors['base0'],
Generic.Prompt: 'bold ' + colors['blue'],
Generic.Strong: 'bold',
Generic.EmphStrong: 'bold italic',
Generic.Traceback: colors['blue'],

Error: 'bg:' + colors['red'],
Expand Down
1 change: 1 addition & 0 deletions pygments/styles/tango.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ class TangoStyle(Style):
Generic.Output: "italic #000000", # class: 'go'
Generic.Prompt: "#8f5902", # class: 'gp'
Generic.Strong: "bold #000000", # class: 'gs'
Generic.EmphStrong: "bold italic #000000", # class: 'ges'
Generic.Subheading: "bold #800080", # class: 'gu'
Generic.Traceback: "bold #a40000", # class: 'gt'
}
1 change: 1 addition & 0 deletions pygments/styles/trac.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class TracStyle(Style):
Generic.Error: '#aa0000',
Generic.Emph: 'italic',
Generic.Strong: 'bold',
Generic.EmphStrong: 'bold italic',
Generic.Prompt: '#555555',
Generic.Output: '#888888',
Generic.Traceback: '#aa0000',
Expand Down
1 change: 1 addition & 0 deletions pygments/styles/vim.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class VimStyle(Style):
Generic.Error: "#FF0000",
Generic.Emph: "italic",
Generic.Strong: "bold",
Generic.EmphStrong: "bold italic",
Generic.Prompt: "bold #000080",
Generic.Output: "#888",
Generic.Traceback: "#04D",
Expand Down
1 change: 1 addition & 0 deletions pygments/styles/vs.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class VisualStudioStyle(Style):
Generic.Subheading: "bold",
Generic.Emph: "italic",
Generic.Strong: "bold",
Generic.EmphStrong: "bold italic",
Generic.Prompt: "bold",

Error: "border:#FF0000"
Expand Down
1 change: 1 addition & 0 deletions pygments/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,5 +209,6 @@ def string_to_tokentype(s):
Generic.Prompt: 'gp',
Generic.Strong: 'gs',
Generic.Subheading: 'gu',
Generic.EmphStrong: 'ges',
Generic.Traceback: 'gt',
}

0 comments on commit b7c8f35

Please sign in to comment.