New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect highlighting with .fish files #205
Comments
for reference, it seems like |
I believe precedence works in Sublime Text by lexicographical order https://github.com/guillermooo/sublime-undocs/blob/a571f5ba987176607f12bb141965bf4596775eeb/source/extensibility/packages.rst#id62, so a package named |
in |
Sounds good. I'm not sure if that's the loading code that you're talking about, but there is sorting here: https://github.com/trishume/syntect/blob/master/src/parsing/syntax_set.rs#L336 So maybe it's just about doing the search in reverse. |
You're right, somehow I didn't notice that earlier. 👍 It looks like the |
Ah, we can actually change how that code works now that If you're not comfortable changing it, I can look at raising a PR to change it tomorrow. |
oops, just realized I forgot to comment - if you could spare a few mins to raise a PR for this, that'd be grand @robinst, thanks - save me botching it and thus taking more of our time to review and fix it ;) |
@keith-hall done :) #216 I'll leave the actual logic change to you, so that I don't botch it and take your time to review and fix it ;) |
I haven't double checked, but sounds as if the merged PR #217 fixed this problem, so I'm closing this issue now. Feel free to reopen if I am mistaken of course. |
Given the following small snippet of fish code:
Syntect seems to render the following, at least through
bat
:Not sure if this should be reported here or in
bat
, so sorry if this is the wrong place 👍The text was updated successfully, but these errors were encountered: