packages feed

brick-skylighting 0.2 → 0.3

raw patch · 3 files changed

+13/−4 lines, 3 filesdep ~brickdep ~vtyPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: brick, vty

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,5 +1,12 @@ # Revision history for brick-skylighting +0.3+===++ * Increased Vty lower bound to 5.23.1 to support italics.+ * Skylighting token styles that used italics now translate to the Vty+   italics style rather than the standout style.+ 0.2 === 
brick-skylighting.cabal view
@@ -1,5 +1,5 @@ name:                brick-skylighting-version:             0.2+version:             0.3 synopsis:            Show syntax-highlighted text in your Brick UI description:         This package provides a module to use Skylighting to perform                      syntax highlighting and display the results in Brick-based@@ -35,8 +35,8 @@     Brick.Widgets.Skylighting    build-depends:       base <= 5,-                       brick,-                       vty,+                       brick >= 0.39,+                       vty >= 5.23.1,                        skylighting-core >= 0.7,                        text,                        containers
src/Brick/Widgets/Skylighting.hs view
@@ -6,6 +6,8 @@ -- --  * have some 'Text' you want to syntax-highlight. --  * know the language in which the 'Text' is expressed.+--  * have a loaded 'SyntaxMap' or 'Syntax' that can be used to format+--    the input text. --  * have a Skylighting 'Style' you'd like to use to determine the --    colors, either from the Skylighting package or one of your own. --@@ -185,7 +187,7 @@         baseAttr = baseAttrFromPair (Sky.tokenColor tSty, Sky.tokenBackground tSty)         setStyle =             if Sky.tokenBold tSty then flip V.withStyle V.bold else id .-            if Sky.tokenItalic tSty then flip V.withStyle V.standout else id .+            if Sky.tokenItalic tSty then flip V.withStyle V.italic else id .             if Sky.tokenUnderline tSty then flip V.withStyle V.underline else id      in (attrNameForTokenType ty, a)