Skip to content

Latest commit

 

History

History
104 lines (88 loc) · 4.93 KB

CHANGELOG.md

File metadata and controls

104 lines (88 loc) · 4.93 KB

0.10.5

  • Add Objective C language.
  • Updated Rust, Svelte, and Python languages.

0.10.4

All thanks to @leandrocp.

  • (Bugfix) - Fixed Lua not highlighting correctly.
  • Updated languages:
    • Elixir
    • Erlang
    • Gleam
    • HEEx
    • Lua
    • CSS
    • HTML
    • Javascript
    • Python
    • Ruby
    • SQL

0.10.3

  • Added Svelte language.

0.10.2

  • Added Vimscript, TSX and JSX languages.
  • Update TOML dependency to 0.8.

0.10.1

  • (Bugfix) - Fix Javascript and Typescript highlighting (thanks @leandrop!)
  • Updated Haskell grammar.

0.10.0

  • (Bugfix, breaking) - The ThemedHtml formatter is now feature-gated behind theme instead of html.
  • (Improvement) - Remove rayon and indoc from build dependencies, replacing them with std::thread::spawn and format!. This should speed up build times by a few seconds.
  • (Improvement) - Gate development portions of the build script behind a feature, further improving build times.
  • (Improvement) - Language::from_token and Highlight::highlight_* now accept an AsRef<str> instead of a plain &str.
  • (Feature) - Added the Runtime variant to Language, which holds an fn() -> &'static HighlightConfiguration. This makes it possible to use languages not statically known by Inkjet.

0.9.2

  • (Bugfix) - Fix missing cfg attribute that made compiling without the theme feature impossible.
  • (Bugfix) - Fix typo in inline HTML formatter.
  • (Feature) - Added new plaintext language. Under the hood, this uses the diff grammar (small and cheap to load) but doesn't provide any highlighting queries, which makes highlighting with it a no-op.
  • Tidied up a few docs and added some additional tests.

0.9.1

  • (Bugfix) - highlight_to_writer no longer erroneously shells out to highlight_to_fmt.

0.9.0

  • (Bugfix, Breaking) - Due to an error in the test code, highlight configurations were not properly tested prior to this version. The following languages have been removed, as no working queries are available:
    • CMake
    • Jinja2
    • Julia
    • Just
  • (Thanks again to @leandrop for the detective work. Hopefully I'll be able to re-introduce these languages down the road.)

0.8.1

  • Added HEEx, IEx and EEx
  • Fix some typos and missing names in HIGHLIGHT_NAMES
  • Fix HCL not being properly included in the languages list

Thank you to @leandrocp for the PRs!

0.8.0

Changes to formatters:

  • (Feature) Added the IoWrapper newtype, which allows instances of io::Write to be treated as an instance of fmt::Write.
  • (Feature) Added optional start_* and finish_* methods to Formatter. These methods are called once before and after highlighting, which is useful for formatters that need (say) to write a header or footer. By default, these methods are a no-op.
  • (Feature) Added theme-aware HTML formatter. This formatter generates HTML span elements with inline styles rather than class names, which is ideal for simpler use cases.
    • The new Theme type is additionally output-agnostic, making it usable in custom formatters for non-web use cases.
    • Themes can be loaded from TOML files, or created programmatically.
    • Currently no themes are included, but I will likely bundle some in the future.
  • (Improvement, Breaking) - Formatter now only requires an implementation of write (which takes an instance of fmt::Write). The *_io variants now have default implementations that use the aformentioned IoWrapper.

Changes to the primary highlighting API:

  • (Feature) Added new highlight_raw method to Highlighter, which gives direct access to the underlying iterator of HighlightEvents. For advanced use only.
  • (Feature) Added new highlight_to_fmt method to Highlighter, which highlights to an instance of fmt::Write. This is useful for highlighting into an existing String or more exotic implementors like OsString.

Other changes:

  • (Bugfix) Corrected some erroneous documentation.

0.7.0

  • (Feature) Added new languages:
    • WASM (WAT and WAST)
  • (Enhancement, Breaking) HIGHLIGHT_CLASS_NAMES now separates selectors with spaces rather than dashes. For example, type-builtin is now type builtin. This makes theming in CSS easier, as you can simply style (say) the keyword class and have that automatically apply to every keyword variant. (Of course, you can override this by using chained selectors, such as .keyword.function.)

0.6.0

  • (Feature) Added new languages:
    • Astro
    • Awk
    • Bicep
    • CMake
    • Forth
    • GDScript
    • Gleam
    • INI
    • Jinja2
    • Julia
    • Just
    • LaTeX
    • YAML
  • (Feature) Highlighting queries from the Helix project are now used where possible.
  • (Feature) Added the ability to enable and disable certain languages via Cargo features. All languages are enabled by default (using the all-languages feature.)

0.5.2

  • (Bugfix) Removed a stray debug println! from the write_io implementation of the HTML formatter.