diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/ini.tm | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
