HomePhabricator

clang-format: [JS] pragmas for tslint, tsc.

Authored by mprobst on Jan 17 2020, 1:44 AM.

Description

clang-format: [JS] pragmas for tslint, tsc.

Summary:
tslint and tsc (the TypeScript compiler itself) use comment pragmas of
the style:

// tslint:disable-next-line:foo
// @ts-ignore

These must not be wrapped and must stay on their own line, in isolation.
For tslint, this required adding it to the pragma regexp. The comments
starting with @ are already left alone, but this change adds test
coverage for them.

Reviewers: krasimir

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D72907

Details

Committed
mprobstJan 17 2020, 4:39 AM
Differential Revision
D72907: clang-format: [JS] pragmas for tslint, tsc.
Parents
rG33463cfba2be: clang-format: fix spacing in `operator const char*()`
Branches
Unknown
Tags
Unknown