Continuous Releases from main
Parser: Re-parse on `unexpected ";"` error for more accurate errors (#902)
This pull request changes the way the parser handles the `unexpected
";"` errors.
In https://github.com/marcoroth/herb/pull/824, we changed the
`herb_extract_ruby_to_buffer_with_semicolons` method to only add
semicolons when needed. This pull request reverts that. But instead of
just outputting the `unexpected ";"` errors (as it was before #824), we
check if the `;` was actually part of the source file.
If it wasn't part of the source file we re-parse this individual
`ERBContentNode` to check for syntax errors in the raw source of that
`ERBContentNode` instead, which shouldn't have the semicolon and thus
shouldn't append the `unexpected ";"` errors.
Resolves https://github.com/marcoroth/herb/issues/854
Resolves https://github.com/marcoroth/herb/issues/865
Resolves #899last week7c07d9d
Update `glob` and `js-yaml` (#897)
Bumps the npm_and_yarn group with 2 updates in the / directory:
[glob](https://github.com/isaacs/node-glob) and
[js-yaml](https://github.com/nodeca/js-yaml).
Updates `glob` from 11.0.3 to 11.1.0
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>last weekda67f5c
Tailwind Class Sort: Fix support for Tailwind V4 projects (#892)
Resolves https://github.com/marcoroth/herb/issues/852
Resolves https://github.com/marcoroth/herb/issues/875
Resolves #876last weekb5d862c
C: Add `hb_buffer_init_arena` for allocating a buffer using the arena allocator (#862)
This PR adds an alternative way to initialize a buffer that uses the
arena allocator to allocate the backing buffer.last week4d10c9e
Linter/Formatter: Add `<%# herb:* ignore %>` directives (#891)
Add support for `<%# herb:formatter ignore %>` and `<%# herb:linter
ignore %>` directives to stop the formatter or linter from operating on
the entire file.
```erb
<%# herb:formatter ignore %>
<div><div>This entire file will not be formatted</div></div>
```
```erb
<%# herb:linter ignore %>
<DIV>
<SPAN>This entire file will not be linted</SPAN>
</DIV>
```last weeka9d2961