Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle chained method calls with command call receivers #266

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ module.exports = grammar({
//
// Because of this distinction, a lot of rules have two variants: the
// normal variant, which can appear anywhere that an expression is valid,
// and the "command" varaint, which is only valid in a more limited set of
// and the "command" variant, which is only valid in a more limited set of
// positions, because it can contain "command calls".
//
// The `_expression` rule can appear in relatively few places, but can
Expand Down Expand Up @@ -777,6 +777,7 @@ module.exports = grammar({
call: $ => {
const receiver = choice(
$._call,
$._chained_command_call,
field('method', choice(
$._variable, $._function_identifier,
)),
Expand Down
20 changes: 20 additions & 0 deletions src/grammar.json

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

Loading