You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many languages offer some form of spreading a string over multiple lines. Some using triple quotes (Python, C#, Toml, ...), others with special indicators (Rust's r#""#, C#'s @"", PHP's here- and nowdoc syntax, ...), and others do it based on specific quoting characters (JS/TS with `````) or with adding backslashes at the end of a line. Or SQL, which is valid without newlines but much more readable when using them.
Usually strings are spread across multiple lines to keep code more readable, or to prefer visual newlines over backslash escapes. It'd be nice to have a per-language option to "collapse" multiline strings in code to be counted as a single line. Alternatively (or additionally) a global flag to count it would be great as well.
The text was updated successfully, but these errors were encountered:
Many languages offer some form of spreading a string over multiple lines. Some using triple quotes (Python, C#, Toml, ...), others with special indicators (Rust's
r#""#
, C#'s@""
, PHP's here- and nowdoc syntax, ...), and others do it based on specific quoting characters (JS/TS with `````) or with adding backslashes at the end of a line. Or SQL, which is valid without newlines but much more readable when using them.Usually strings are spread across multiple lines to keep code more readable, or to prefer visual newlines over backslash escapes. It'd be nice to have a per-language option to "collapse" multiline strings in code to be counted as a single line. Alternatively (or additionally) a global flag to count it would be great as well.
The text was updated successfully, but these errors were encountered: