summaryrefslogtreecommitdiffstats
path: root/misc/syntax/protobuf.syntax
blob: 2490889b915ce38d459bcc61dfd74a66c5f6a52a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Syntax rules for Protobuf files and gRPC extensions

context default
    keyword whole enum yellow
    keyword whole extend yellow
    keyword whole extensions yellow
    keyword whole import yellow
    keyword whole map yellow
    keyword whole message yellow
    keyword whole oneof yellow
    keyword whole option yellow
    keyword whole optional yellow
    keyword whole package yellow
    keyword whole public yellow
    keyword whole repeated yellow
    keyword whole required yellow
    keyword whole reserved yellow
    keyword whole returns yellow
    keyword whole rpc yellow
    keyword whole service yellow
    keyword whole stream yellow

    keyword whole double yellow
    keyword whole float yellow
    keyword whole int32 yellow
    keyword whole int64 yellow
    keyword whole uint32 yellow
    keyword whole uint64 yellow
    keyword whole sint32 yellow
    keyword whole sint64 yellow
    keyword whole fixed32 yellow
    keyword whole fixed64 yellow
    keyword whole sfixed32 yellow
    keyword whole sfixed64 yellow
    keyword whole bool yellow
    keyword whole string yellow
    keyword whole bytes yellow

    keyword // brown

# punctuation characters, sorted by ASCII code
    keyword ( brightcyan
    keyword ) brightcyan
    keyword , brightcyan
    keyword : brightcyan
    keyword ; brightmagenta
    keyword = yellow
    keyword [ brightcyan
    keyword ] brightcyan
    keyword { brightcyan
    keyword } brightcyan

context exclusive // \n brown
    spellcheck

context " " green
    spellcheck