Christian Grasser 213e9135ba Update to scintilla 5.5.3 & Lexilla 5.4.1
Release 5.5.3 (https://www.scintilla.org/scintilla553.zip)

    Released 19 October 2024.
    On Win32 change direction of horizontal mouse wheel and touchpad scrolling to match other applications. Bug #2449.

Release 5.4.1 (https://www.scintilla.org/lexilla541.zip)

    Released 19 October 2024.
    Lexer added for Dart "dart". Pull request #265, Pull request #275.
    Lexer added for troff / nroff "troff". Pull request #264.
    Lexer added for Zig "zig". Pull request #267.
    C++: Fix crash for empty documentation comment keyword where '<' occurs at line end.
    F#: Include EOLs in the style range of SCE_FSHARP_COMMENTLINE. Stabilizes EOL detection when folding line comment groups. Issue #276.
    F#: Fix per-line folding in F# documents. Issue #277.
    HTML: Improve SGML/DTD lexing. Don't terminate SGML when > inside quoted string. Lex both [ and ] as SCE_H_SGML_DEFAULT. Nested sections handled instead of switching to SCE_H_SGML_ERROR. Issue #272.
    JavaScript: New SCE_HJ_TEMPLATELITERAL and SCE_HJA_TEMPLATELITERAL styles for template literals when lexer is hypertext, or xml. Issue #280.
    PHP: Fix failure to recognize PHP start "<?php' at end of document. Caused by not capping retrieval range at document end causing no text to be retrieved. Issue #269.
    Smalltalk: Fix scaled decimal numbers without decimal separator. Pull request #274.

Fix #15228, fix #15368, fix #15650, close #15717
2024-10-20 17:33:07 +02:00

52 lines
2.2 KiB
Plaintext

{1}module{0} {6}FormatSpecifiersTest{0}
{1}let{0} {6}x{0} {12}={0} {3}List{0}.{2}fold{0} {12}(*){0} {13}24.5{0} {12}[{0} {13}1.{12};{0} {13}2.{12};{0} {13}3.{0} {12}]{0}
{9}// expect "147.00"
{2}printfn{0} {15}"Speed: {19}%.2f{15} m/s"{0} {6}x{0}
{2}printfn{0} {15}$"Speed: {19}%.2f{15}{x} m/s"{0}
{2}printfn{0} {15}$"Speed: {x{19}:f2{15}} m/s"{0}
{2}printfn{0} {16}$@"Speed: {19}%.2f{16}{x} m/s"{0}
{2}printfn{0} {16}@$"Speed: {x{19}:f2{16}} m/s"{0}
{9}// expect " 147%"
{2}printfn{0} {15}"""{19}%%{15} increase:{19}% .0F%%{15} over last year"""{0} {6}x{0}
{2}printfn{0} {15}$"""{19}%%{15} increase:{19}% .0F{15}{x}{19}%%{15} over last year"""{0}
{2}printfn{0} {15}$"""{19}%%{15} increase:{x / 100.{19},5:P0{15}} over last year"""{0}
{2}printfn{0} {16}$@"""{19}%%{16} increase:{19}% .0F{16}{x}{19}%%{16} over last year"""{0}
{2}printfn{0} {16}@$"""{19}%%{16} increase:{x / 100.{19},5:P0{16}} over last year"""{0}
{9}// expect "1.5E+002"
// NB: units should look like text even without a space
{2}printfn{0} {16}@"Time: {19}%-0.1E{16}secs"{0} {6}x{0}
{2}printfn{0} {15}$"Time: {19}%-0.1E{15}{x}secs"{0}
{2}printfn{0} {15}$"Time: {x{19}:E1{15}}secs"{0}
{2}printfn{0} {16}$@"Time: {19}%-0.1E{16}{x}secs"{0}
{2}printfn{0} {16}@$"Time: {x{19}:E1{16}}secs"{0}
{9}// expect "\" +147\""
{2}printfn{0} {16}@"""Temp: {19}%+12.3g{16} K"""{0} {6}x{0}
{2}printfn{0} {15}$"""{'"'}Temp: {19}%+12.3g{15}{x} K{'"'}"""{0}
{2}printfn{0} {15}$"""{'"'}Temp: {'+'{19},9{15}}{x{19}:g3{15}} K{'"'}"""{0}
{2}printfn{0} {16}$@"""Temp: {19}%+12.3g{16}{x} K"""{0}
{2}printfn{0} {16}@$"""Temp: {'+'{19},9{16}}{x{19}:g3{16}} K"""{0}
{9}// Since F# 6.0
{2}printfn{0} {16}@"{19}%B{16}"{0} {13}0b1_000_000{0}
{2}printfn{0} {15}"{19}%B{15}"{0} {15}"\x40"B{0}.{12}[{13}0{12}]{0}
{2}printfn{0} {15}$"""{19}%B{15}{'\064'B}"""{0}
{2}printfn{0} {16}$@"""{19}%B{16}{0b1_000_000}"""{0}
{2}printfn{0} {16}@$"""{19}%B{16}{'\064'B}"""{0}
{9}// These don't work
{2}printfn{0} {7}``%.2f``{0} {6}x{0}
{2}printfn{0} {15}$"%.2f"{0} {6}x{0}
{2}printfn{0} {16}$@"%.2f"{0} {6}x{0}
{2}printfn{0} {16}@$"%.2f"{0} {6}x{0}
{2}printfn{0} {15}$"%.2f {x}"{0}
{2}printfn{0} {16}$@"%.2f {x}"{0}
{2}printfn{0} {16}@$"%.2f {x}"{0}
{2}printfn{0} {15}$"""%.2f {x}"""{0}
{2}printfn{0} {16}$@"""%.2f {x}"""{0}
{2}printfn{0} {16}@$"""%.2f {x}"""{0}