-
Notifications
You must be signed in to change notification settings - Fork 144
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
Update packages (sublime syntaxes) #228
Comments
The YAML 1.2 parser we use in syntect has a problem handling the unquoted syntax, see trishume/syntect#228
see also chyh1990/yaml-rust#118 |
The most recent go syntax definition doesn't work with syntect (see trishume/syntect#228) so this replaces it with an older, working version.
The most recent go syntax definition doesn't work with syntect (see trishume/syntect#228) so this replaces it with an older, working version.
I've raised a PR to fix yaml-rust: chyh1990/yaml-rust#122 Unfortunately it looks like yaml-rust is not actively maintained. Should we:
What do people think? |
Depending on a fork sounds best to me |
Good news, my fix was merged and yaml-rust 0.4.3 was released, we don't need to fork :). But there's another problem, with the Python syntax:
The regex with better formatting:
The problem is this bit: Because this is within a Note that the pattern comes from a variable, here: https://github.com/sublimehq/Packages/blob/master/Python/Python.sublime-syntax#L35 So now I'm wondering:
@keith-hall maybe you can help out? :) |
I believe it is a bug in the syntax definition and a bug in ST that it "works": sublimehq/sublime_text#2354 |
Hmm, that looks like a similar problem, but I'm not sure it's the same. In our case, we only have a |
Good point. Maybe ST's regex engine ignores the |
You were right! So:
So that means it's just a bug in the Python syntax, I'll raise a PR for it. |
Thanks for taking the time to investigate and solve this @robinst :) |
Raised a PR with the updates here: #246 |
I'm looking at updating
testdata/Packages
and syntect's built-in dumps of them.Just doing a
git submodule update --recursive --remote && make packs
, the second step fails with:I suspect this is something that some YAML parsers don't have a problem with, but the one we use for syntect does, or something that used to be allowed with an older YAML spec. I'll raise a PR for https://github.com/sublimehq/Packages/.
The text was updated successfully, but these errors were encountered: