diff options
| author | nikhilbhatt <nikhilbhatt931@gmail.com> | 2024-01-17 08:39:40 +0530 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-01-17 17:35:07 +0000 |
| commit | 32cbbfc97d56d9c01677b5411518b52c9404c484 (patch) | |
| tree | 109dbfa3489d4b4c76d12353c420f15378abf7d6 | |
| parent | 5273c4c9199c154f1818e256127fc539ff8a8a55 (diff) | |
[ruby/prism] Added descriptive comments
https://github.com/ruby/prism/commit/2695ae115d
| -rw-r--r-- | prism/config.yml | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/prism/config.yml b/prism/config.yml index cfc6f2f1e0..85d0f50103 100644 --- a/prism/config.yml +++ b/prism/config.yml @@ -476,21 +476,27 @@ nodes: - name: left type: node comment: | - Represents left side of expression. + Represents left side of expression. It includes any kind of node that returns a non-void value. left and right ^^^^ + 1 && 2 + ^ - name: right type: node comment: | - Represents right side of expression. + Represents right side of expression. It includes any kind of node that returns non-void value. + If nothing is given, it will be replaced by MissingNode. left && right ^^^^^ + 1 and 2 + ^ - name: operator_loc type: location comment: | The Location of `and` keyword or `&&` operator. + The only difference between the two is that `&&` has higher precedence than `and`. left and right ^^^ @@ -2289,21 +2295,27 @@ nodes: - name: left type: node comment: | - Represents left side of expression. + Represents left side of expression. It includes any kind of node that returns a non-void value. left or right ^^^^ + 1 || 2 + ^ - name: right type: node comment: | - Represents right side of expression. + Represents right side of expression. It includes any kind of node that returns a non-void value. + If nothing is given, it will be replaced by MissingNode. left || right ^^^^^ + 1 or 2 + ^ - name: operator_loc type: location comment: | The Location of `or` keyword or `||` operator. + The only difference between the two is that `||` has higher precedence than `or`. left or right ^^ |
