| ▲ | Panzerschrek 9 hours ago | |||||||||||||||||||||||||||||||||||||
That's exactly what I found. Why these files should exist at all? Some other IDEs just have a bunch of highlighting rules based on regular expressions and have a folder of tiny XML grammar files instead of a folder of bloaty shared libraries. | ||||||||||||||||||||||||||||||||||||||
| ▲ | homebrewer 9 hours ago | parent [-] | |||||||||||||||||||||||||||||||||||||
Because it's far more reliable to use proper parsers instead of a bunch of regular expressions. Most languages cannot be properly parsed with regexes. Those files are compiled tree-sitter grammars, read up on why it exists and where it is used instead of me poorly regurgitating official documentation: | ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||