Skip to content

Commit

Permalink
Fix unquoting invalid AST. Closes #53
Browse files Browse the repository at this point in the history
  • Loading branch information
kipcole9 committed Nov 12, 2024
1 parent 2afd995 commit 0c75713
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## Cldr Numbers v2.33.4

This is the changelog for Cldr v2.33.4 released on November 13th, 2024. For older changelogs please consult the release tag on [GitHub](https://github.com/elixir-cldr/cldr_numbers/tags)

### Bug Fixes

* Fixes unquoting invalid AST on the upcoming Elixir 1.18. Thanks very much to @sabiwara for the [PR](https://github.com/elixir-cldr/cldr_numbers/pull/52). Thanks too to @SteffenDE for the report. Closes #53.

## Cldr Numbers v2.33.3

This is the changelog for Cldr v2.33.3 released on August 16th, 2024. For older changelogs please consult the release tag on [GitHub](https://github.com/elixir-cldr/cldr_numbers/tags)
Expand Down
10 changes: 5 additions & 5 deletions lib/cldr/number/backend/decimal_formatter.ex
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ defmodule Cldr.Number.Backend.Decimal.Formatter do
end
end

# # Precompile the known formats and build the formatting pipeline
# # specific to this format thereby optimizing the performance.
# Precompile the known formats and build the formatting pipeline
# specific to this format thereby optimizing the performance.
unquote(Decimal.define_to_string(backend))

# # Other number formatting systems may create the formatting
# # metadata by other means (like a printf function) in which
# # case we don't do anything except format
# Other number formatting systems may create the formatting
# metadata by other means (like a printf function) in which
# case we don't do anything except format
def to_string(number, %Meta{} = meta, %Options{} = options) do
meta = Decimal.update_meta(meta, number, unquote(backend), options)
Decimal.do_to_string(number, meta, unquote(backend), options)
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule Cldr.Numbers.Mixfile do

use Mix.Project

@version "2.33.3"
@version "2.33.4"

def project do
[
Expand Down

0 comments on commit 0c75713

Please sign in to comment.