-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathscip.sprig
84 lines (61 loc) · 1.93 KB
/
scip.sprig
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!-- DO NOT EDIT DIRECTLY -->
<!-- Generated by protoc-gen-doc. Regenerate using `./dev/proto-generate.sh`. -->
# Semantic Code Intelligence Protocol (SCIP) reference
{{ range .Files -}}
{{ .Description }}
{{ end -}}
{{ range .Files -}}
{{ $Enums := .Enums -}}
{{ range .Messages -}}
{{ $MessageName := .LongName -}}
##{{ repeat (splitList "." $MessageName | len) "#" }} {{ splitList "." $MessageName | last }}
{{ .Description }}
| Name | Type | Description |
| ---- | ---- | ----------- |
{{ range .Fields -}}
| {{ .Label }} **{{ .Name }}** | {{ .Type }} | {{ splitList "\n\n" .Description | first | replace "\n" " " }}
{{ end -}}
{{ range .Fields -}}
{{ if ne (splitList "\n\n" .Description | len) 1 }}
Additional notes on **{{ .Name }}**:
{{ .Description }}
{{ end }}
{{ end -}}
{{ range $Enums -}}
{{ $EnumName := .LongName -}}
{{ if eq (nospace (cat $MessageName "." .Name)) $EnumName -}}
##{{ repeat (splitList "." $EnumName | len) "#" }} {{ splitList "." $EnumName | last }}
{{ .Description }}
| Number | Name | Description |
| ------ | ---- | ----------- |
{{ range .Values -}}
| {{ .Number }} | {{ .Name }} | {{ splitList "\n\n" .Description | first | replace "\n" " " }}
{{ end -}}
{{ range .Values -}}
{{ if ne (splitList "\n\n" .Description | len) 1 }}
Additional notes on **{{ .Name }}**:
{{ .Description }}
{{ end -}}
{{ end -}}
{{ end -}}
{{ end -}}
{{ end -}}
{{ range .Enums -}}
{{ $EnumName := .LongName -}}
{{ if eq (splitList "." $EnumName | len) 1 }}
##{{ repeat (splitList "." $EnumName | len) "#" }} {{ splitList "." $EnumName | last }}
{{ .Description }}
| Number | Name | Description |
| ------ | ---- | ----------- |
{{ range .Values -}}
| {{ .Number }} | {{ .Name }} | {{ splitList "\n\n" .Description | first | replace "\n" " " }}
{{ end -}}
{{ range .Values -}}
{{ if ne (splitList "\n\n" .Description | len) 1 }}
Additional notes on **{{ .Name }}**:
{{ .Description }}
{{ end -}}
{{ end -}}
{{ end -}}
{{ end -}}
{{ end -}}