From b5b1fe7fc0cf460d6204c18ba7bb4c40f7597efa Mon Sep 17 00:00:00 2001 From: Wiimm Date: Tue, 11 Jul 2023 16:18:26 +0200 Subject: SZS v2.35a --- project/dclib/dclib-parser.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'project/dclib/dclib-parser.c') diff --git a/project/dclib/dclib-parser.c b/project/dclib/dclib-parser.c index b64914f..a94b8c6 100644 --- a/project/dclib/dclib-parser.c +++ b/project/dclib/dclib-parser.c @@ -49,6 +49,7 @@ void SetupScanText ( ScanText_t *st, cvp data, uint data_size ) st->data = data; st->data_size = data_size; st->ignore_comments = true; + st->ignore_values = true; RewindScanText(st); } @@ -97,6 +98,7 @@ bool NextLineScanText ( ScanText_t *st ) { DASSERT(st); st->is_section = false; + st->is_value = false; ccp ptr = st->ptr; ccp eot = st->eot; @@ -120,7 +122,8 @@ bool NextLineScanText ( ScanText_t *st ) while ( eol > line && eol[-1] == ' ' || eol[-1] == '\t' ) eol--; - if ( line == eol || *line == '#' && st->ignore_comments ) + st->is_value = *line == '@'; + if ( line == eol || *line == '#' && st->ignore_comments || st->is_value && st->ignore_values ) continue; if ( st->detect_sections > 0 && *line == '[' -- cgit v1.3.1