Simplify pattern

Co-authored-by: Camden Cheek <camden@ccheek.com>
This commit is contained in:
Martin Jambon 2022-01-05 15:27:43 -08:00 committed by Martin Jambon
parent 37f059a2aa
commit edb5613f52

View file

@ -212,7 +212,7 @@ module.exports = grammar({
),
image_name: ($) => seq(
choice(/[^@:\s\$-][^@:\s\$]*/, $.expansion),
choice(/[^@:\s\$-]/, $.expansion),
repeat(choice(/[^@:\s\$]+/, $.expansion))
),