Skip to content

Commit

Permalink
add protobuf support
Browse files Browse the repository at this point in the history
  • Loading branch information
just-boris committed Apr 25, 2016
1 parent 86cfe7f commit ae4a4f2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions components/prism-proto.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Prism.languages.proto = 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'
}
});

0 comments on commit ae4a4f2

Please sign in to comment.