Open Aerijo opened 5 years ago
Thanks for your contribution!
This issue has been automatically marked as stale because it has not had recent activity. Because the Atom team treats their issues as their backlog, stale issues are closed. If you would like this issue to remain open:
Issues that are labeled as triaged will not be automatically marked as stale.
Unstale!
Prerequisites
Description
When opening an HTML file with existing content, the TextMate grammar will have a higher score than the Tree-sitter grammar.
Looking at how the score is calculated, both get +4 for path match (file extension, etc.). But then, the TextMate grammar has a firstLineRegex, which matches and gives it a +0.5 boost. The Tree-sitter grammar does not have this, and only gets the +0.1 boost from being Tree-sitter. Neither gain any more points, so TextMate wins.
Steps to Reproduce
Expected behavior:
Use Tree-sitter
Actual behavior:
Use TextMate
Reproduces how often:
100%
Versions