Parse digits in sigil modifiers (#3)

This commit is contained in:
Jonatan Kłosko 2021-10-04 10:26:04 +02:00 committed by GitHub
parent 3817c5f986
commit ab50f8bbda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -344,7 +344,7 @@ module.exports = grammar({
)
)
),
optional(alias(token.immediate(/[a-zA-Z]+/), $.sigil_modifiers))
optional(alias(token.immediate(/[a-zA-Z0-9]+/), $.sigil_modifiers))
),
keywords: ($) =>

View File

@ -219,10 +219,20 @@ modifiers
~r/left|right/i
~r/left|right/iUx
~r/left|right/0
~r/left|right/u8
---
(source
(sigil
(sigil_name)
(quoted_content)
(sigil_modifiers))
(sigil
(sigil_name)
(quoted_content)
(sigil_modifiers))
(sigil
(sigil_name)
(quoted_content)