Merge lines.love
[?]
Jan 13, 2023, 5:33 PM
ZTZOO2OQ2DXRG3MI4RQVNWRHALXQ6BCIOWTTYPP2URQF5EWSNTOACDependencies
- [2]
VO2ZVTWKMerge lines.love - [3]
NQM25OZVreduce use of rfind - [4]
XX7G2FFJintermingle freehand line drawings with text - [5]
3QNOKBFMbeginnings of a test harness - [6]
73OCE2MCafter much struggle, a brute-force undo - [7]
RSZD5A7Gforgot to add json.lua - [8]
OGUV4HSAremove some memory leaks from rendered fragments - [9]
D2GCFTTTclean up repl functionality - [10]
K2X6G75Zstart writing some tests for drawings - [11]
2L5MEZV3experiment: new edit namespace - [12]
GUOQRUL7Merge lines.love - [13]
2CTN2IEFMerge lines.love - [14]
OTIBCAUJlove2d scaffold - [15]
R5QXEHUIsomebody stop me - [16]
VHUNJHXBMerge lines.love - [17]
ORKN6EOBMerge lines.love - [18]
VP5KC4XZMerge lines.love - [19]
KG7YVGVRMerge lines.love - [20]
XGHCLIKBMerge lines.love - [21]
TLOAPLBJadd a license - [22]
BLWAYPKVextract a module - [23]
KMSL74GAsupport selections in the source editor - [24]
4YDBYBA4clean up memory leak experiments - [25]
VHQCNMARseveral more modules - [26]
MD3W5IRAnew fork: rip out drawing support - [27]
ETXNVRPTMerge lines.love - [28]
T4FRZSYLdelete an ancient, unused file - [29]
TVCPXAAUrename - [30]
VXORMHMEdelete experimental REPL - [31]
6LJZN727handle chords - [32]
KKMFQDR4editing source code from within the app - [33]
UTDSCN3GMerge lines.love - [34]
66X36NZNa little more prose describing manual_tests - [35]
DW6SNODMsource editing: highlight [[ ]] comments/strings - [36]
CE4LZV4Tdrop last couple of manual tests - [37]
LXTTOB33extract a couple of files - [38]
FS2ITYYHrecord a known issue - [39]
JOPVPUSAediting source code from within the app - [40]
AVTNUQYRbasic test-enabled framework - [41]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [42]
BULPIBEGbeginnings of a module for the text editor - [43]
3PSFWAILMerge lines.love - [44]
DB7HJBHJMerge lines.love
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+$', '')