Skip to content

Commit

Permalink
Add boolean keywords
Browse files Browse the repository at this point in the history
Summary: Add 'true' and 'false' keywords to vim thrift syntax file.

Reviewed By: createdbysk

Differential Revision: D67864429

fbshipit-source-id: 7e3702d14a4fe753ac75ddf9a84a9438257435bf
  • Loading branch information
yoney authored and facebook-github-bot committed Jan 6, 2025
1 parent 380c005 commit b4636c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions third-party/thrift/src/thrift/contrib/thrift.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit b4636c7

Please sign in to comment.