Skip to content

Commit

Permalink
feat: add wait grammar
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Jan 13, 2025
1 parent 09f8fbf commit 0d09fbc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ module.exports = grammar({
up: $ => seq('Up', optional($.speed), optional($.integer)),
pageup: $ => seq('PageUp', optional($.speed), optional($.integer)),
pagedown: $ => seq('PageDown', optional($.speed), optional($.integer)),
wait: $ => seq('Wait', optional($.speed), optional($.integer)),

setting: $ => choice(
seq('Shell', $.string),
Expand Down Expand Up @@ -77,6 +78,7 @@ module.exports = grammar({
json: $ => /\{.*\}/,
path: $ => /[\.\-\/A-Za-z0-9%]+/,
speed: $ => seq('@', $.time),
waitOn: $ => seq('+', choice("Screen", "Line")),
time: $ => /\d*\.?\d+(ms|s)?/,
boolean: $ => /true|false/,
}
Expand Down

0 comments on commit 0d09fbc

Please sign in to comment.