diff options
author | Daniel Jasper <djasper@google.com> | 2015-12-30 08:00:58 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-12-30 08:00:58 +0000 |
commit | 779c66f3ca9e51efd0b8eaac75347df4b109c7d2 (patch) | |
tree | 218bb1d451e9091ed9f7c4250dee8a0db6bd2355 /clang/lib/Format/FormatToken.h | |
parent | f98eb3548cafbeb780a251f17682fa0572c6dc6d (diff) | |
download | bcm5719-llvm-779c66f3ca9e51efd0b8eaac75347df4b109c7d2.tar.gz bcm5719-llvm-779c66f3ca9e51efd0b8eaac75347df4b109c7d2.zip |
clang-format: [JS] Support TypeScript 1.6 user defined type guards.
Before:
function foo(check: Object): check
is{foo: string, bar: string, baz: string, foobar: string} {
return 'bar' in check;
}
After:
function foo(check: Object):
check is {foo: string, bar: string, baz: string, foobar: string} {
return 'bar' in check;
}
llvm-svn: 256631
Diffstat (limited to 'clang/lib/Format/FormatToken.h')
-rw-r--r-- | clang/lib/Format/FormatToken.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Format/FormatToken.h b/clang/lib/Format/FormatToken.h index 93baaf29321..78bc0edc45c 100644 --- a/clang/lib/Format/FormatToken.h +++ b/clang/lib/Format/FormatToken.h @@ -536,6 +536,7 @@ struct AdditionalKeywords { kw_finally = &IdentTable.get("finally"); kw_function = &IdentTable.get("function"); kw_import = &IdentTable.get("import"); + kw_is = &IdentTable.get("is"); kw_let = &IdentTable.get("let"); kw_var = &IdentTable.get("var"); @@ -580,6 +581,7 @@ struct AdditionalKeywords { IdentifierInfo *kw_finally; IdentifierInfo *kw_function; IdentifierInfo *kw_import; + IdentifierInfo *kw_is; IdentifierInfo *kw_let; IdentifierInfo *kw_var; |