Skip to content

Commit

Permalink
fix: allow single ? for task output (when :succeed assumed)
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotfontaine committed Sep 29, 2024
1 parent 3bd4e8d commit 8dc746f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,13 @@ module.exports = grammar({
),

task_output: ($) =>
seq(token.immediate(":"), $.nametag, optional(token.immediate("?"))),
choice(
seq(
seq(token.immediate(":"), $.nametag),
optional(token.immediate("?")),
),
token.immediate("?"),
),

intercycle_annotation: ($) =>
seq(token.immediate("["), optional($.recurrence), token.immediate("]")),
Expand Down

0 comments on commit 8dc746f

Please sign in to comment.