From edb5613f525c748a125d4e079493f5683aa66332 Mon Sep 17 00:00:00 2001 From: Martin Jambon Date: Wed, 5 Jan 2022 15:27:43 -0800 Subject: [PATCH] Simplify pattern Co-authored-by: Camden Cheek --- grammar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grammar.js b/grammar.js index b17bcae..71a205f 100644 --- a/grammar.js +++ b/grammar.js @@ -212,7 +212,7 @@ module.exports = grammar({ ), image_name: ($) => seq( - choice(/[^@:\s\$-][^@:\s\$]*/, $.expansion), + choice(/[^@:\s\$-]/, $.expansion), repeat(choice(/[^@:\s\$]+/, $.expansion)) ),