Merge lines.love
[?]
Jan 13, 2023, 5:33 PM
ZTZOO2OQ2DXRG3MI4RQVNWRHALXQ6BCIOWTTYPP2URQF5EWSNTOACDependencies
- [2]
VO2ZVTWKMerge lines.love - [3]
NQM25OZVreduce use of rfind - [4]
MD3W5IRAnew fork: rip out drawing support - [5]
UTDSCN3GMerge lines.love - [6]
3QNOKBFMbeginnings of a test harness - [7]
VHUNJHXBMerge lines.love - [8]
DB7HJBHJMerge lines.love - [9]
KG7YVGVRMerge lines.love - [10]
XX7G2FFJintermingle freehand line drawings with text - [11]
VXORMHMEdelete experimental REPL - [12]
GUOQRUL7Merge lines.love - [13]
BLWAYPKVextract a module - [14]
6LJZN727handle chords - [15]
4YDBYBA4clean up memory leak experiments - [16]
KKMFQDR4editing source code from within the app - [17]
D2GCFTTTclean up repl functionality - [18]
2CTN2IEFMerge lines.love - [19]
LXTTOB33extract a couple of files - [20]
CE4LZV4Tdrop last couple of manual tests - [21]
FS2ITYYHrecord a known issue - [22]
TLOAPLBJadd a license - [23]
OTIBCAUJlove2d scaffold - [24]
KMSL74GAsupport selections in the source editor - [25]
DW6SNODMsource editing: highlight [[ ]] comments/strings - [26]
ORKN6EOBMerge lines.love - [27]
66X36NZNa little more prose describing manual_tests - [28]
T4FRZSYLdelete an ancient, unused file - [29]
OGUV4HSAremove some memory leaks from rendered fragments - [30]
K2X6G75Zstart writing some tests for drawings - [31]
JOPVPUSAediting source code from within the app - [32]
3PSFWAILMerge lines.love - [33]
RSZD5A7Gforgot to add json.lua - [34]
TVCPXAAUrename - [35]
R5QXEHUIsomebody stop me - [36]
ETXNVRPTMerge lines.love - [37]
XGHCLIKBMerge lines.love - [38]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [39]
VHQCNMARseveral more modules - [40]
VP5KC4XZMerge lines.love - [41]
AVTNUQYRbasic test-enabled framework - [42]
BULPIBEGbeginnings of a module for the text editor - [43]
73OCE2MCafter much struggle, a brute-force undo - [44]
2L5MEZV3experiment: new edit namespace
Change contents
- file deletion: colorize.lua colorize.lua
if edge.suffix and ends_with(frag, edge.suffix) thenCurrent_state = edge.targetbreakendendif edge.prefix and starts_with(frag, edge.prefix) thenCurrent_state = edge.targetbreakendendendfunction switch_color_based_on_suffix(frag)if Next_state[Current_state] == nil thenreturnendfrag = rtrim(frag)for _,edge in pairs(Next_state[Current_state]) do - replacement in colorize.lua at line 63
if edge.prefix and find(frag, edge.prefix, nil, --[[plain]] true) == 1 thenif edge.prefix and starts_with(frag, edge.prefix) then - replacement in colorize.lua at line 76
if edge.suffix and rfind(frag, edge.suffix, nil, --[[plain]] true) == #frag - #edge.suffix + 1 thenif edge.suffix and ends_with(frag, edge.suffix) then - edit in colorize.lua at line 81
endfunction trim(s)return s:gsub('^%s+', ''):gsub('%s+$', '')endfunction ltrim(s)return s:gsub('^%s+', '')endfunction rtrim(s)return s:gsub('%s+$', '')