From ed55fc2c7ab8fb921a95a5c27d9c8dc43b9c6eb9 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 13 Sep 2024 13:05:04 -0400 Subject: Minor cleanup --- examples/ini.tm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/ini.tm b/examples/ini.tm index b2e59986..50668793 100644 --- a/examples/ini.tm +++ b/examples/ini.tm @@ -18,7 +18,7 @@ func parse_ini(path:Path)->{Text:{Text:Text}}: for line in text:lines(): line = line:trim() skip if line:starts_with(";") or line:starts_with("#") - if line:matches($/{0+space}[{..}]/): + if line:matches($/[?]/): section_name := line:replace($/[?]/, "\1"):trim():lower() current_section = @{:Text:Text} sections:set(section_name, current_section) -- cgit v1.2.3