Prior to this version, the source code was parsed and then post-processed - to rebalance the tree around operator precedence and to attach documentation comments.
This is now all done in a single pass, which improves performance by about 15%.
This rewrite includes a few additional changes:
a few bug fixes where code that was incorrect Elm code (according to the Elm compiler) was successfully parsed
The Elm.Writer module has never been very good and tended to, and we do not desire maintaining it, and it will therefore likely be removed in a future major version.
We highly recommend using the-sett/elm-syntax-dsl instead, which is much better anyways.
[7.3.2] - 2022-09-03
Stop parsing FloatPattern (this is an invalid pattern in Elm 0.19)
Stop parsing Destructuring declaration (this is an invalid declaration in Elm 0.19)
Fail to parse when doing exposing clause is empty (exposing ())
Fail to parse when encountering an annotation for the wrong declaration (a : T followed by b = 1)
Various performance improvements that make the parser 6% to 9% faster
[7.3.1] - 2022-08-16
Fixed an infinite recursion during parsing of a file.
[7.3.0] - 2023-08-16
Added [Elm.Parser.parseToFile] to parse a file without the need to post-process the file, and deprecated [Elm.Parser.parse]
Added [Elm.Syntax.Range.empty] as an alias to [Elm.Syntax.Range.emptyRange] which is now deprecated
Added [Elm.Syntax.Node.empty]
[7.2.9] - 2022-02-11
Fix necessary parenthesis missing from some type annotations (i.e. Typed Int -> String vs Typed (Int -> String)) in Writer module
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps stil4m/elm-syntax from 7.1.3 to 7.3.4.
Changelog
Sourced from stil4m/elm-syntax's changelog.
... (truncated)
Commits
5359c36
7.3.49ce6552
Fix changelog468376c
Fix unordered records71b2601
Improve arity for Expose.typeExposeb7c1434
introduce Layout.positivelyIndentedCore96d6e75
Combine.many reverse the final List lazilyb97dd2f
revert NoUnused exceptions for test helpers71bf2fd
only store comments in state1972137
state indents switch from List Int to Int7a949bc
merge concepts of expectedColumn and currentIndentationDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show