parsers

package
v0.0.0-...-24f2d34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitLinesAndRemoveComments

func SplitLinesAndRemoveComments(source string) ([]string, []string)

SplitLinesAndRemoveComments takes a multiline string, splits it into lines, and returns two equal-length arrays of strings: one with the original lines, and another one with the original lines minus any "// line comments" and "/* block comments */".

This should work for any language that uses C++-style comments, including TypeScript and Sass.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL