Skip to content
This repository was archived by the owner on Dec 8, 2025. It is now read-only.

Commit f906fcf

Browse files
authored
Merge pull request #13 from fac/update-to-upstream
update to upstream
2 parents 8327ac8 + 681e322 commit f906fcf

File tree

377 files changed

+14782
-8795
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

377 files changed

+14782
-8795
lines changed

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ export PATH="$PWD/javascript/packages/printer/bin:$PATH"
33
export PATH="$PWD/javascript/packages/formatter/bin:$PATH"
44
export PATH="$PWD/javascript/packages/language-server/bin:$PATH"
55
export PATH="$PWD/javascript/packages/highlighter/bin:$PATH"
6+
export PATH="$PWD/javascript/packages/stimulus-lint/bin:$PATH"

.github/workflows/build-gems.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
- name: Add LLVM apt Repo
6666
run: |-
6767
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
68-
sudo add-apt-repository "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-19 main"
68+
sudo add-apt-repository "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-21 main"
6969
sudo apt update
7070
7171
- name: Install APT dependencies

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Build
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
permissions:
66
contents: read
@@ -18,7 +18,7 @@ jobs:
1818
- name: Add LLVM apt Repo
1919
run: |-
2020
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
21-
sudo add-apt-repository "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-19 main"
21+
sudo add-apt-repository "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-21 main"
2222
sudo apt update
2323
2424
- name: Install APT dependencies
@@ -57,13 +57,13 @@ jobs:
5757
run: ./run_herb_tests
5858

5959
- name: clang-format version
60-
run: clang-format-19 --version
60+
run: clang-format-21 --version
6161

6262
- name: Lint
6363
run: bin/lint
6464

6565
- name: clang-tidy version
66-
run: clang-tidy-19 --version
66+
run: clang-tidy-21 --version
6767

6868
- name: Tidy
6969
run: bin/tidy

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Add LLVM apt Repo
4444
run: |-
4545
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
46-
sudo add-apt-repository "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-19 main"
46+
sudo add-apt-repository "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-21 main"
4747
sudo apt update
4848
4949
- name: Install APT dependencies

.github/workflows/javascript.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Add LLVM apt Repo
3131
run: |-
3232
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
33-
sudo add-apt-repository "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-19 main"
33+
sudo add-apt-repository "deb http://apt.llvm.org/$(lsb_release -cs)/ llvm-toolchain-$(lsb_release -cs)-21 main"
3434
sudo apt update
3535
3636
- name: Install APT dependencies

Aptfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
check
2-
clang-19
3-
clang-format-19
4-
clang-tidy-19
2+
clang-21
3+
clang-format-21
4+
clang-tidy-21
55
emscripten
66
doxygen
77
xvfb

Brewfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

33
brew "check"
4-
brew "llvm@19" # for clang, clang-format and clang-tidy
4+
brew "llvm@21" # for clang, clang-format and clang-tidy
55
brew "emscripten"
66
brew "doxygen"

CONTRIBUTING.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
Pull request, bug reports, and any other forms of contribution are welcomed and highly encouraged.
44

5-
If you encounter any issues when following along with this file please dont hesitate to reach out and file an issue!
5+
If you encounter any issues when following along with this file please don't hesitate to reach out and file an issue!
66

77
## Running Locally
88

99
### Requirements
1010

1111
- [**Check**](https://libcheck.github.io/check/): For unit testing.
12-
- [**Clang 19**](https://clang.llvm.org): The compiler used to build this project.
13-
- [**Clang Format 19**](https://clang.llvm.org/docs/ClangFormat.html): For formatting the project.
14-
- [**Clang Tidy 19**](https://clang.llvm.org/extra/clang-tidy/): For linting the project.
15-
- [**Prism Ruby Parser v1.5.1**](https://github.com/ruby/prism/releases/tag/v1.5.1): We use Prism for Parsing the Ruby Source Code in the HTML+ERB files.
12+
- [**Clang 21**](https://clang.llvm.org): The compiler used to build this project.
13+
- [**Clang Format 21**](https://clang.llvm.org/docs/ClangFormat.html): For formatting the project.
14+
- [**Clang Tidy 21**](https://clang.llvm.org/extra/clang-tidy/): For linting the project.
15+
- [**Prism Ruby Parser v1.6.0**](https://github.com/ruby/prism/releases/tag/v1.6.0): We use Prism for Parsing the Ruby Source Code in the HTML+ERB files.
1616
- [**Ruby**](https://www.ruby-lang.org/en/): We need Ruby as a dependency for `bundler`.
1717
- [**Bundler**](https://bundler.io): We are using `bundler` to build [`prism`](https://github.com/ruby/prism) from source so we can build `herb` against it.
1818
- [**Emscripten**](https://emscripten.org): For the WebAssembly build of `libherb` so it can be used in the browser using the [`@herb-tools/browser`](https://github.com/marcoroth/herb/blob/main/javascript/packages/browser) package.
@@ -27,7 +27,7 @@ xargs sudo apt-get install < Aptfile
2727
or:
2828

2929
```bash
30-
sudo apt-get install check clang-19 clang-tidy-19 clang-format-19 emscripten doxygen
30+
sudo apt-get install check clang-21 clang-tidy-21 clang-format-21 emscripten doxygen
3131
```
3232

3333
##### For macOS (using Homebrew)
@@ -38,7 +38,7 @@ brew bundle
3838
or:
3939

4040
```bash
41-
brew install check llvm@19 emscripten doxygen
41+
brew install check llvm@21 emscripten doxygen
4242
```
4343

4444
### Building
@@ -73,7 +73,6 @@ The `herb` executable exposes a few commands for interacting with `.html.erb` fi
7373
Herb 🌿 Powerful and seamless HTML-aware ERB parsing and tooling.
7474
7575
./herb lex [file] - Lex a file
76-
./herb lex_json [file] - Lex a file and return the result as json.
7776
./herb parse [file] - Parse a file
7877
./herb ruby [file] - Extract Ruby from a file
7978
./herb html [file] - Extract HTML from a file

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ source "https://rubygems.org"
44

55
gemspec
66

7-
gem "prism", github: "ruby/prism", tag: "v1.5.1"
7+
gem "prism", github: "ruby/prism", tag: "v1.6.0"
88

99
gem "actionview", "~> 8.0"
1010
gem "lz_string"

Gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ GIT
99

1010
GIT
1111
remote: https://github.com/ruby/prism.git
12-
revision: 23f16d31a7c57c4b927e1e3ec8f1281b45e7cb9f
13-
tag: v1.5.1
12+
revision: 2924f8f8832d57def7895cd7e2cc199ee58b3a3b
13+
tag: v1.6.0
1414
specs:
15-
prism (1.5.1)
15+
prism (1.6.0)
1616

1717
PATH
1818
remote: .
1919
specs:
20-
herb (0.7.4)
20+
herb (0.7.5)
2121

2222
GEM
2323
remote: https://rubygems.org/

0 commit comments

Comments
 (0)