From 520bf02582be7ab36b17fd78f8931cfdb702b07f Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Tue, 25 May 2021 21:55:17 +0900 Subject: Add fragment expression A fragment entry is defined by an entry whose `fragment` field is `true`, and is referenced by a fragment expression (`\f{...}`). --- spec/spec.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'spec/spec.go') diff --git a/spec/spec.go b/spec/spec.go index e3c318e..61955ac 100644 --- a/spec/spec.go +++ b/spec/spec.go @@ -88,11 +88,12 @@ func (n LexModeNum) IsNil() bool { } type LexEntry struct { - Kind LexKind `json:"kind"` - Pattern LexPattern `json:"pattern"` - Modes []LexModeName `json:"modes"` - Push LexModeName `json:"push"` - Pop bool `json:"pop"` + Kind LexKind `json:"kind"` + Pattern LexPattern `json:"pattern"` + Modes []LexModeName `json:"modes"` + Push LexModeName `json:"push"` + Pop bool `json:"pop"` + Fragment bool `json:"fragment"` } func (e *LexEntry) validate() error { -- cgit v1.2.3