File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
plugins/hls-alternate-number-format-plugin/src/Ide/Plugin Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -84,11 +84,11 @@ underscoreExtensions = \case
8484
8585alternateIntFormat :: Integer -> IntFormatType -> UnderscoreFormatType -> AlternateFormat
8686alternateIntFormat val formatType underscoreFormat = case formatType of
87- IntDecimalFormat -> (T. pack $ toDecimal underscoreFormat val , underscoreExtensions underscoreFormat)
88- HexFormat -> (T. pack $ toHex underscoreFormat val , underscoreExtensions underscoreFormat)
89- OctalFormat -> (T. pack $ toOctal underscoreFormat val , underscoreExtensions underscoreFormat)
90- BinaryFormat -> (T. pack $ toBinary underscoreFormat val , underscoreExtensions underscoreFormat <> ExtensionNeeded [BinaryLiterals ])
91- NumDecimalFormat -> (T. pack $ toFloatExpDecimal underscoreFormat (fromInteger @ Double val) , underscoreExtensions underscoreFormat <> ExtensionNeeded [NumDecimals ])
87+ IntDecimalFormat -> (T. pack $ toDecimal underscoreFormat val, underscoreExtensions underscoreFormat)
88+ HexFormat -> (T. pack $ toHex underscoreFormat val, underscoreExtensions underscoreFormat)
89+ OctalFormat -> (T. pack $ toOctal underscoreFormat val, underscoreExtensions underscoreFormat)
90+ BinaryFormat -> (T. pack $ toBinary underscoreFormat val, underscoreExtensions underscoreFormat <> ExtensionNeeded [BinaryLiterals ])
91+ NumDecimalFormat -> (T. pack $ toFloatExpDecimal underscoreFormat (fromInteger @ Double val), underscoreExtensions underscoreFormat <> ExtensionNeeded [NumDecimals ])
9292
9393alternateFracFormat :: Rational -> FracFormatType -> UnderscoreFormatType -> AlternateFormat
9494alternateFracFormat val formatType underscoreFormat = case formatType of
You can’t perform that action at this time.
0 commit comments