yini-parser
Version:
Node.js parser for YINI — a clean, structured INI alternative with types, simple section nesting, comments, and strict mode.
14 lines (13 loc) • 486 B
TypeScript
import { ErrorDataHandler } from '../core/ErrorDataHandler';
import { TSectionHeaderType } from '../core/types';
import { SectionContext } from '../grammar/YiniParser';
/**
* Extract ...
* @param rawLine Raw line with the section header.
*/
declare const parseSectionHeader: (rawLine: string, errorHandler: ErrorDataHandler, ctx: null | SectionContext) => {
markerType: TSectionHeaderType;
sectionName: string;
sectionLevel: number;
};
export default parseSectionHeader;