@willbooster/tree-sitter-python 4.0.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/grammar.js CHANGED
@@ -740,7 +740,7 @@ module.exports = grammar({
740
740
  prec.left(
741
741
  PREC.compare,
742
742
  seq(
743
- $.primary_expression,
743
+ field('operands', $.primary_expression),
744
744
  repeat1(
745
745
  seq(
746
746
  field(
@@ -759,7 +759,7 @@ module.exports = grammar({
759
759
  alias($._is_not, 'is not')
760
760
  )
761
761
  ),
762
- $.primary_expression
762
+ field('operands', $.primary_expression)
763
763
  )
764
764
  )
765
765
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-python",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "Python grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
@@ -1081,6 +1081,16 @@
1081
1081
  "type": "comparison_operator",
1082
1082
  "named": true,
1083
1083
  "fields": {
1084
+ "operands": {
1085
+ "multiple": true,
1086
+ "required": true,
1087
+ "types": [
1088
+ {
1089
+ "type": "primary_expression",
1090
+ "named": true
1091
+ }
1092
+ ]
1093
+ },
1084
1094
  "operators": {
1085
1095
  "multiple": true,
1086
1096
  "required": true,
@@ -1131,16 +1141,6 @@
1131
1141
  }
1132
1142
  ]
1133
1143
  }
1134
- },
1135
- "children": {
1136
- "multiple": true,
1137
- "required": true,
1138
- "types": [
1139
- {
1140
- "type": "primary_expression",
1141
- "named": true
1142
- }
1143
- ]
1144
1144
  }
1145
1145
  },
1146
1146
  {
Binary file
package/tree-sitter.json CHANGED
@@ -19,7 +19,7 @@
19
19
  }
20
20
  ],
21
21
  "metadata": {
22
- "version": "4.0.0",
22
+ "version": "4.1.0",
23
23
  "license": "MIT",
24
24
  "description": "Python grammar for tree-sitter",
25
25
  "authors": [