mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-21 13:47:37 +08:00
Relaxed enum value
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import ByteEntity from "../entity/ByteEntity.js"
|
||||
import Configuration from "../Configuration.js"
|
||||
import EnumDisplayValueEntity from "../entity/EnumDisplayValueEntity.js"
|
||||
import EnumEntity from "../entity/EnumEntity.js"
|
||||
import FormatTextEntity from "../entity/FormatTextEntity.js"
|
||||
import FunctionReferenceEntity from "../entity/FunctionReferenceEntity.js"
|
||||
@@ -184,6 +185,9 @@ export default class Grammar {
|
||||
case ByteEntity:
|
||||
result = this.byteEntity
|
||||
break
|
||||
case EnumDisplayValueEntity:
|
||||
result = this.enumDisplayValueEntity
|
||||
break
|
||||
case EnumEntity:
|
||||
result = this.enumEntity
|
||||
break
|
||||
@@ -375,6 +379,10 @@ export default class Grammar {
|
||||
|
||||
static byteEntity = P.lazy(() => this.byteNumber.map(v => new ByteEntity(v)))
|
||||
|
||||
static enumDisplayValueEntity = P.lazy(() =>
|
||||
P.regex(this.Regex.InsideString).map(v => new EnumDisplayValueEntity(v))
|
||||
)
|
||||
|
||||
static enumEntity = P.lazy(() => this.symbol.map(v => new EnumEntity(v)))
|
||||
|
||||
static formatTextEntity = P.lazy(() =>
|
||||
|
||||
Reference in New Issue
Block a user