Skip to content

Commit

Permalink
Add ellipsis operator to grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
chrhansk committed Oct 31, 2024
1 parent 30ba598 commit 133b20b
Show file tree
Hide file tree
Showing 4 changed files with 157,796 additions and 156,811 deletions.
5 changes: 4 additions & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,14 +495,17 @@ module.exports = grammar(Python, {

c_parameters: $ => seq("(", optional($._typedargslist), ")"),
_typedargslist: $ =>
choice(

Check failure on line 498 in grammar.js

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 6 spaces but found 4
"...",

Check failure on line 499 in grammar.js

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 8 spaces but found 6
seq(

Check failure on line 500 in grammar.js

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 8 spaces but found 6
commaSep1(seq(

Check failure on line 501 in grammar.js

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 10 spaces but found 8
$.maybe_typed_name,

Check failure on line 502 in grammar.js

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 12 spaces but found 10
optional(seq(":", $.c_type)),

Check failure on line 503 in grammar.js

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 12 spaces but found 10
optional(seq("=", choice($.expression, "*"))),

Check failure on line 504 in grammar.js

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 12 spaces but found 10
)),

Check failure on line 505 in grammar.js

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 10 spaces but found 8
optional(","),

Check failure on line 506 in grammar.js

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 10 spaces but found 8
),
)

Check failure on line 507 in grammar.js

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 8 spaces but found 6
),

gil_spec: _ => choice(seq("with", choice("gil", "nogil")), "nogil"),
exception_value: $ =>
Expand Down
181 changes: 95 additions & 86 deletions src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions src/node-types.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 133b20b

Please sign in to comment.