Commit 8077965
committed
Fix crash in Pattern Language syntax highlighting for self-inheriting structs
``` rust
struct Rec : Rec {
};
```
Prevent infinite recursion in appendInheritances by erasing processed
inheritance entries during traversal, and safely iterate over
m_inheritances in appendInheritances to avoid
modification-during-iteration issues.1 parent c8652b0 commit 8077965
File tree
1 file changed
+6
-4
lines changed- plugins/builtin/source/content/text_highlighting
1 file changed
+6
-4
lines changedLines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1603 | 1603 | | |
1604 | 1604 | | |
1605 | 1605 | | |
1606 | | - | |
1607 | | - | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
1608 | 1610 | | |
1609 | 1611 | | |
1610 | 1612 | | |
| |||
1628 | 1630 | | |
1629 | 1631 | | |
1630 | 1632 | | |
1631 | | - | |
1632 | | - | |
| 1633 | + | |
| 1634 | + | |
1633 | 1635 | | |
1634 | 1636 | | |
1635 | 1637 | | |
| |||
0 commit comments