aboutsummaryrefslogtreecommitdiff
path: root/Map/Presentation/MapEditor.swift
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-07-09 01:55:50 +0200
committerRuben Beltran del Rio <git@r.bdr.sh>2025-07-09 01:55:50 +0200
commit6926feead1a7fadb7f5f974996bef8c30b3bfdbe (patch)
tree5a16e64f70bea3b9f33220cce5ca524e686dbedf /Map/Presentation/MapEditor.swift
parentc21a68c807dcb84b4ce910ee0f73238a8019ffe9 (diff)
Use AST based text editor
Diffstat (limited to 'Map/Presentation/MapEditor.swift')
-rw-r--r--Map/Presentation/MapEditor.swift4
1 files changed, 4 insertions, 0 deletions
diff --git a/Map/Presentation/MapEditor.swift b/Map/Presentation/MapEditor.swift
index 11545e2..167ef77 100644
--- a/Map/Presentation/MapEditor.swift
+++ b/Map/Presentation/MapEditor.swift
@@ -19,6 +19,9 @@ struct MapEditor: View {
var url: URL?
@State var selectedEvolution: StageType = .behavior
@State var isSearching: Bool = false
+ var parsedMap: [Wmap.Entity] {
+ document.parsed
+ }
private let changeDebouncer: Debouncer = Debouncer(seconds: 0.05)
@@ -103,6 +106,7 @@ struct MapEditor: View {
get: { document.text },
set: { document.text = $0 }
),
+ parsedMap: parsedMap,
highlightRanges: results,
selectedRange: selectedTerm
)