PavelTorgashov / FastColoredTextBox

Fast Colored TextBox for Syntax Highlighting. The text editor component for .NET.
Other
1.21k stars 463 forks source link

Setting "wrong" Folding Markers, when these are in a string or in a comment #235

Open NaMToK14 opened 3 years ago

NaMToK14 commented 3 years ago

Hi,

in my example I've got a curly backet "}" in a string or in a comment. Then the fastColoredTextBox would fold from "{" to the "}" in the string. Is it easy to fix that issue?

Hexman768 commented 1 year ago

This is part of a known issue with the string and comment regex. If you are good at regex and could help to resolve this issue by creating a regex that could recognize comments and strings without picking up on keywords or symbols, that'd be great!