Commit f44ea50
committed
Use syntax-ppss instead of parse-partial-sexp in protocol docstring detection
parse-partial-sexp from point-min rescans the entire buffer each time,
while syntax-ppss uses internal caches making it O(1) amortized during
font-lock.1 parent bc1974e commit f44ea50
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1274 | 1274 | | |
1275 | 1275 | | |
1276 | 1276 | | |
1277 | | - | |
1278 | | - | |
| 1277 | + | |
1279 | 1278 | | |
1280 | 1279 | | |
1281 | 1280 | | |
| |||
0 commit comments