Commit 36d91bf
Add a lock around parse, to prevent concurrent access to the underlying parse tree. (simonbs#367)
* Add a lock around parse, as we can have both the OperationQueue-based parse and this parse happen at the same time
* Fixes SwiftLint violation
---------
Co-authored-by: Simon Støvring <mail@simonbs.dk>1 parent 9a48654 commit 36d91bf
1 file changed
Lines changed: 4 additions & 1 deletion
File tree
- Sources/Runestone/TextView/SyntaxHighlighting/Internal/TreeSitter
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| |||
0 commit comments