private List<Section> readSections(LineNumberReader reader) throws IOException {

		List<Section> sections = new ArrayList<>();
		Section currentSection = new Section(NO_SECTION, 0);
		sections.add(currentSection);

		String line;
		while ((line = reader.readLine()) != null) {
			line = removeComments(line);

			if (line.isBlank()) {
				continue;
			}

			if (isSectionHeader(line)) {
				String name = line.substring(1, line.length() - 1);
				currentSection = new Section(name, reader.getLineNumber());
				sections.add(currentSection);
			}
			else {
				currentSection.add(line, reader.getLineNumber());
			}
		}

		return sections;
	}
Returns a list of errors found while parsing
@return a list of errors found while parsing
Ghidra/Framework/Gui/src/main/java/generic/theme/AbstractThemeReader.java