clang-format: [JS] Fix corner case in template string parsing.
authorDaniel Jasper <djasper@google.com>
Sun, 14 Jun 2015 07:16:57 +0000 (07:16 +0000)
committerDaniel Jasper <djasper@google.com>
Sun, 14 Jun 2015 07:16:57 +0000 (07:16 +0000)
commit2ebb0c57fbfcebba9de721e65bea0886b8033f36
tree93667ae2f0a20b028af887d9472e35e8479c1c21
parenta6a250a21145e852fafd5ab316732134ca08eb2c
clang-format: [JS] Fix corner case in template string parsing.

Before, these would not properly detected because of the char/string
literal found when re-lexing after the first `:

  var x = `'`;  // comment with matching quote '
  var x = `"`;  // comment with matching quote "

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