From 8dc746fb35b9fcc8aa569f5c63af3e088addf0a1 Mon Sep 17 00:00:00 2001 From: Elliot Fontaine <92150839+elliotfontaine@users.noreply.github.com> Date: Sun, 29 Sep 2024 15:09:15 +0200 Subject: [PATCH] fix: allow single `?` for task output (when `:succeed` assumed) --- grammar.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/grammar.js b/grammar.js index 1c0bee8..61d3b48 100644 --- a/grammar.js +++ b/grammar.js @@ -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("]")),