Parse digits in sigil modifiers (#3)
This commit is contained in:
parent
3817c5f986
commit
ab50f8bbda
|
@ -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: ($) =>
|
keywords: ($) =>
|
||||||
|
|
|
@ -219,10 +219,20 @@ modifiers
|
||||||
|
|
||||||
~r/left|right/i
|
~r/left|right/i
|
||||||
~r/left|right/iUx
|
~r/left|right/iUx
|
||||||
|
~r/left|right/0
|
||||||
|
~r/left|right/u8
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
(source
|
(source
|
||||||
|
(sigil
|
||||||
|
(sigil_name)
|
||||||
|
(quoted_content)
|
||||||
|
(sigil_modifiers))
|
||||||
|
(sigil
|
||||||
|
(sigil_name)
|
||||||
|
(quoted_content)
|
||||||
|
(sigil_modifiers))
|
||||||
(sigil
|
(sigil
|
||||||
(sigil_name)
|
(sigil_name)
|
||||||
(quoted_content)
|
(quoted_content)
|
||||||
|
|
Loading…
Reference in New Issue