Commit 19f7d9e
authored
schema: Specify the encoding for character offsets (#224)
This PR adds a new `PositionEncoding` field so that indexers can specify
what type of character offsets they are using. This way, consumers of SCIP
can unambiguously interpret the offsets for non-ASCII data.
I have kept it as a field on `Document` rather than `Index` because:
1. There is no additional benefit from having it on `Index` because
occurrences only belong inside Documents, not outside.
2. It allows one to concatenate indexes from different sources
which use different kinds of offsets.1 parent beb6593 commit 19f7d9e
File tree
7 files changed
+3384
-2777
lines changed- bindings
- go/scip
- haskell/src/Proto
- rust/src/generated
- typescript
- docs
7 files changed
+3384
-2777
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
105 | 118 | | |
106 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
107 | 146 | | |
108 | 147 | | |
109 | 148 | | |
| |||
594 | 633 | | |
595 | 634 | | |
596 | 635 | | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
597 | 639 | | |
598 | 640 | | |
599 | 641 | | |
| |||
0 commit comments