Skip to content

Commit

Permalink
Add support for sizeof() with expression argument
Browse files Browse the repository at this point in the history
  • Loading branch information
chrhansk committed Nov 10, 2024
1 parent 54a59f9 commit f467346
Show file tree
Hide file tree
Showing 5 changed files with 133,556 additions and 132,887 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ module.exports = grammar(Python, {
seq(
"sizeof",
"(",
$.c_type,
choice($.c_type, $.expression),
")",
),
),
Expand Down
13 changes: 11 additions & 2 deletions src/grammar.json

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

4 changes: 4 additions & 0 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 f467346

Please sign in to comment.