Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit 1cb25dd

Browse files
Fix proto lang handler to work minified and to use the type style for types like uint32.
1 parent 0d51552 commit 1cb25dd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/lang-proto.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
*/
2626

2727
PR['registerLangHandler'](PR['sourceDecorator']({
28-
keywords: (
29-
'bool bytes default double enum extend extensions false fixed32 '
30-
+ 'fixed64 float group import int32 int64 max message option '
31-
+ 'optional package repeated required returns rpc service '
32-
+ 'sfixed32 sfixed64 sint32 sint64 string syntax to true uint32 '
33-
+ 'uint64'),
34-
cStyleComments: true
28+
'keywords': (
29+
'bytes,default,double,enum,extend,extensions,false,'
30+
+ 'group,import,max,message,option,'
31+
+ 'optional,package,repeated,required,returns,rpc,service,'
32+
+ 'syntax,to,true'),
33+
'types': /^(bool|(double|s?fixed|[su]?int)(32|64)|float|string)\b/,
34+
'cStyleComments': true
3535
}), ['proto']);

0 commit comments

Comments
 (0)