From 8c99e66033b391fa3269727cef15723cbd31f33e Mon Sep 17 00:00:00 2001 From: Alper Yoney Date: Mon, 6 Jan 2025 11:21:26 -0800 Subject: [PATCH] Add boolean keywords Summary: Add 'true' and 'false' keywords to vim thrift syntax file. Reviewed By: createdbysk Differential Revision: D67864429 fbshipit-source-id: 7e3702d14a4fe753ac75ddf9a84a9438257435bf --- thrift/contrib/thrift.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/thrift/contrib/thrift.vim b/thrift/contrib/thrift.vim index 74d85d8ead7..11d07f7032b 100644 --- a/thrift/contrib/thrift.vim +++ b/thrift/contrib/thrift.vim @@ -51,6 +51,7 @@ syn region thriftString start=+'+ skip=+\\'+ end=+'+ syn match thriftNumber "-\=\<\d\+\>" contained " Keywords +syn keyword thriftBool true false syn keyword thriftKeyword namespace syn keyword thriftKeyword xsd_all xsd_optional xsd_nillable xsd_attrs syn keyword thriftKeyword include cpp_include cpp_type const optional required @@ -85,6 +86,7 @@ if version >= 508 || !exists("did_thrift_syn_inits") HiLink thriftTodo Todo HiLink thriftString String HiLink thriftNumber Number + HiLink thriftBool Boolean HiLink thriftSpecial Special HiLink thriftStructure Structure