Recognize a named comment-section heading.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_header_is_section_header

Purpose

Recognize a named comment-section heading.

Description

Accepts a leading hash, space, a letter-led heading and a trailing colon; rejects indented content lines.

Arguments

  • $1 — Single source-comment line.

Returns

  • 0 for a section header; 1 otherwise.

Usage

  sgnd_header_is_section_header "# Metadata:"