You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's an infinite loop bug on some C files due to a broken pattern in the default Sublime C syntax that can cause an infinite loop. Despite the pattern being borked syntect should handle this gracefully like Sublime Text obviously does.
No single pattern should be able to trigger more than once at the same location. Maybe keep track of which patterns have triggered and ignore any further matches, resetting the store upon advancing. The trick is maintaining performance.
The text was updated successfully, but these errors were encountered:
There's an infinite loop bug on some C files due to a broken pattern in the default Sublime C syntax that can cause an infinite loop. Despite the pattern being borked syntect should handle this gracefully like Sublime Text obviously does.
Example
text:
struct{estruct
First it matches
at position 8 and then matches
at the same position, and then repeats.
Possible solution
No single pattern should be able to trigger more than once at the same location. Maybe keep track of which patterns have triggered and ignore any further matches, resetting the store upon advancing. The trick is maintaining performance.
The text was updated successfully, but these errors were encountered: