From 24357bf19f90d55ff02e3d41f1fe9f6f3f84c728 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Mon, 12 Aug 2024 19:13:25 -0400 Subject: [PATCH] TSS sheets store their file name --- internal/styles/tss/tss.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/styles/tss/tss.go b/internal/styles/tss/tss.go index 9879e39..89a15b9 100644 --- a/internal/styles/tss/tss.go +++ b/internal/styles/tss/tss.go @@ -5,6 +5,7 @@ import "git.tebibyte.media/tomo/tomo/event" import "git.tebibyte.media/tomo/backend/style" type Sheet struct { + Path string Variables map[string] ValueList Rules []Rule flat bool @@ -75,5 +76,6 @@ func LoadFile (name string) (*style.Style, event.Cookie, error) { sheet, err := Parse(Lex(name, file)) if err != nil { return nil, nil, err } + sheet.Path = name return BuildStyle(sheet) }