syntax_tree 1.1.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/gh-pages.yml +26 -0
- data/.github/workflows/main.yml +1 -1
- data/.gitignore +1 -1
- data/CHANGELOG.md +37 -1
- data/Gemfile.lock +8 -7
- data/README.md +5 -1
- data/bin/bench +11 -11
- data/bin/console +3 -3
- data/bin/profile +3 -3
- data/doc/logo.svg +284 -0
- data/exe/stree +1 -0
- data/lib/syntax_tree/cli.rb +100 -41
- data/lib/syntax_tree/formatter.rb +71 -0
- data/lib/syntax_tree/language_server/inlay_hints.rb +93 -0
- data/lib/syntax_tree/language_server.rb +99 -0
- data/lib/syntax_tree/node.rb +11979 -0
- data/lib/syntax_tree/parser.rb +3098 -0
- data/lib/syntax_tree/prettyprint.rb +4 -2
- data/lib/syntax_tree/version.rb +2 -4
- data/lib/syntax_tree.rb +18 -13673
- metadata +10 -3
@@ -113,8 +113,10 @@ class PrettyPrint
|
|
113
113
|
def pretty_print(q)
|
114
114
|
q.text("breakable")
|
115
115
|
|
116
|
-
attributes =
|
117
|
-
|
116
|
+
attributes = [
|
117
|
+
("force=true" if force?),
|
118
|
+
("indent=false" unless indent?)
|
119
|
+
].compact
|
118
120
|
|
119
121
|
if attributes.any?
|
120
122
|
q.text("(")
|