clang-format: [JS] handle single lines comments ending in `\\`.
authorMartin Probst <martin@probst.io>
Tue, 8 Aug 2017 14:52:42 +0000 (14:52 +0000)
committerMartin Probst <martin@probst.io>
Tue, 8 Aug 2017 14:52:42 +0000 (14:52 +0000)
commit64d31edef33097f3878a12285a6db4d1e9488454
tree0a893cef65ce1f0a744e77fa1c67ce58778598a7
parent6a824b9a456c0ef7a43dfe09b94e081333208e64
clang-format: [JS] handle single lines comments ending in `\\`.

Summary:
Previously, clang-format would consider the following code line to be part of
the comment and incorrectly format the rest of the file.

Reviewers: djasper

Subscribers: klimek, cfe-commits

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

llvm-svn: 310365
clang/lib/Format/FormatTokenLexer.cpp
clang/unittests/Format/FormatTestJS.cpp