Detect supported comment styles.
(input: string)
| 13 | |
| 14 | /** Detect supported comment styles. */ |
| 15 | function isComment(input: string): boolean { |
| 16 | return ( |
| 17 | input.startsWith("#") || |
| 18 | input.startsWith(";") || |
| 19 | input.startsWith("//") |
| 20 | ); |
| 21 | } |
| 22 | |
| 23 | /** Detect a section start. */ |
| 24 | function isSection(input: string, lineNumber: number): boolean { |