Skip to content

Commit f911a28

Browse files
committed
Register as a SyntaxTree handler
1 parent 93efc7a commit f911a28

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
1313
- 🎉 Initial release! 🎉
1414

1515
[unreleased]: https://github.com/ruby-syntax-tree/syntax_tree-rbs/compare/v0.1.0...HEAD
16-
[0.1.0]: https://github.com/ruby-syntax-tree/syntax_tree-rbs/compare/ba5aef...v0.1.0
16+
[0.1.0]: https://github.com/ruby-syntax-tree/syntax_tree-rbs/compare/93efc7...v0.1.0

Gemfile.lock

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ GEM
1111
docile (1.4.0)
1212
minitest (5.15.0)
1313
rake (13.0.6)
14-
rbs (2.2.2)
14+
rbs (2.3.2)
1515
simplecov (0.21.2)
1616
docile (~> 1.1)
1717
simplecov-html (~> 0.11)
@@ -22,6 +22,7 @@ GEM
2222

2323
PLATFORMS
2424
x86_64-darwin-21
25+
x86_64-linux
2526

2627
DEPENDENCIES
2728
bundler
@@ -31,4 +32,4 @@ DEPENDENCIES
3132
syntax_tree-rbs!
3233

3334
BUNDLED WITH
34-
2.4.0.dev
35+
2.3.6

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ From the CLI:
3636

3737
```sh
3838
$ stree ast --plugins=rbs file.rbs
39-
(root object=(object values={"Hello"=>(literal value="world!")}))
39+
(root declarations=[(constant name=(type-name "Hello") type=(class-instance (type-name "World")))])
4040
```
4141

4242
or
4343

4444
```sh
4545
$ stree format --plugins=rbs file.rbs
46-
{ "Hello": "world!" }
46+
Hello: World
4747
```
4848

4949
or

lib/syntax_tree/rbs.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,6 @@ def read(filepath)
8484
end
8585
end
8686
end
87+
88+
register_handler(".rbs", RBS)
8789
end

0 commit comments

Comments
 (0)