Skip to content

Explore removing brackets of language configuration file from the string/regex before evaluating indentation #209862

@aiday-mar

Description

@aiday-mar

In relation to #209519

In the case of a single line string, or a string that appears in conjunction with other tokens on a line, we would like to remove the brackets of the language configuration file from the string, before evaluating the indentation rules on that stripped string. We want to do this to avoid indenting in cases such as the following:

const aString = 'function f() {'

Do the same for brackets inside of the regexes.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions