Commit d306724
authored
Fix valid class tweaker files initially erroring until reopened (#2608)
* Fix valid class tweaker files initially erroring until reopened
The slightly hacky fix utilises a "fake token" that matches real-looking
line starts. It's unused in the parser so the user will still see an error
when possible, but eliminating the BAD_CHARACTER inputs for valid
*characters* seems to fix the incorrect error highlighting.
* CtParser: Make invalid_entry_start_holder private to remove unused PSI itf
* Clarify comment1 parent 6ad3fd7 commit d306724
2 files changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
81 | 85 | | |
82 | 86 | | |
83 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
0 commit comments