Skip to content

Commit

Permalink
Protocol Buffers: Don't use captures if not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed Oct 22, 2017
1 parent 678b621 commit 3e256d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions components/prism-protobuf.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Prism.languages.protobuf = Prism.languages.extend('clike', {
keyword: /\b(package|import|message|enum)\b/,
builtin: /\b(required|repeated|optional|reserved)\b/,
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/,
pattern: /\b(?:double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes)\b/,
alias: 'symbol'
}
});
2 changes: 1 addition & 1 deletion components/prism-protobuf.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3e256d8

Please sign in to comment.