Skip to content

v0.7.0

Latest

Choose a tag to compare

@github-actions github-actions released this 11 Nov 03:21
· 1 commit to master since this release

Added

  • Added formatting for multiline string interior whitespace. Enabled by default with new setting format_multiline_strings.
    1. Indentation is normalised to align the trailing quote with the leading quote. Lines in the
      middle are adjusted to retain their original significant leading whitespace.
    2. Internal line endings are normalised to match the configured line ending.
    3. Invalid multiline strings are left untouched.
  • All keywords are now set to lowercase. This includes reserved words (like begin and const) but also includes
    non-reserved words (like absolute and override) when used in the context that makes them special.
  • Added formatting for the interior of inline comments
    • If no whitespace exists after the // (or ///), one space is added.
      • "separator" lines are exempt, defined as a comment containing only 10 or more repetitions of a
        non-alphanumeric character.
    • Trailing whitespace at the end of the comment is trimmed.
  • All compiler directives are now set to uppercase. This includes switch directives (e.g. {$O+}), parameter directives
    (e.g. {$HINTS on}), and conditional directives (e.g. {$IFDEF Foo}).