katoikia-app/web-ui/web-react/node_modules/prismjs/components/prism-protobuf.js

9 lines
333 B
JavaScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
Prism.languages.protobuf = Prism.languages.extend('clike', {
keyword: /\b(?:package|import|message|enum)\b/,
builtin: /\b(?:required|repeated|optional|reserved)\b/,
primitive: {
pattern: /\b(?:double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes)\b/,
alias: 'symbol'
}
});