Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
thrift.vim75 linesDownload Raw Back to syntax
1" Vim syntax file2" Language: Thrift3" Original Author: Martin Smith <martin@facebook.com>4" Maintainer: Yinzuo Jiang <jiangyinzuo@foxmail.com>5" Last Change: 2024/07/296" https://github.com/apache/thrift/blob/master/contrib/thrift.vim7"8" Licensed to the Apache Software Foundation (ASF) under one9" or more contributor license agreements. See the NOTICE file10" distributed with this work for additional information11" regarding copyright ownership. The ASF licenses this file12" to you under the Apache License, Version 2.0 (the13" "License"); you may not use this file except in compliance14" with the License. You may obtain a copy of the License at15"16"   http://www.apache.org/licenses/LICENSE-2.017"18" Unless required by applicable law or agreed to in writing,19" software distributed under the License is distributed on an20" "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY21" KIND, either express or implied. See the License for the22" specific language governing permissions and limitations23" under the License.24"25 26if exists("b:current_syntax")27  finish28endif29 30" Todo31syn keyword thriftTodo TODO todo FIXME fixme XXX xxx contained32 33" Comments34syn match thriftComment "#.*" contains=thriftTodo35syn region thriftComment start="/\*" end="\*/" contains=thriftTodo36syn match thriftComment "//.\{-}\(?>\|$\)\@="37 38" String39syn region thriftStringDouble matchgroup=None start=+"+  end=+"+40 41" Number42syn match thriftNumber "-\=\<\d\+\>" contained43 44" Keywords45syn keyword thriftKeyword namespace46syn keyword thriftKeyword xsd_all xsd_optional xsd_nillable xsd_attrs47syn keyword thriftKeyword include cpp_include cpp_type const optional required48syn keyword thriftBasicTypes void bool byte i8 i16 i32 i64 double string binary49syn keyword thriftStructure map list set struct typedef exception enum throws union50 51" Special52syn match thriftSpecial "\d\+:"53 54" Structure55syn keyword thriftStructure service oneway extends56"async"         { return tok_async;         }57"exception"     { return tok_xception;      }58"extends"       { return tok_extends;       }59"throws"        { return tok_throws;        }60"service"       { return tok_service;       }61"enum"          { return tok_enum;          }62"const"         { return tok_const;         }63 64hi def link thriftComment Comment65hi def link thriftKeyword Special66hi def link thriftBasicTypes Type67hi def link thriftStructure StorageClass68hi def link thriftTodo Todo69hi def link thriftString String70hi def link thriftNumber Number71hi def link thriftSpecial Special72hi def link thriftStructure Structure73 74let b:current_syntax = "thrift"75 
codekingpro/portable-devtools · Team Ai