Closed asottile closed 3 years ago
fixing that I get a KeyError on block_innards
as well
Yup looks like they've been overdue for removal.
Now that the C++ and C repos are seperated, I went ahead and pulled them out of the C++ syntax
looks like there's one more c_conditional_context
on line 528
also what is the relationship between ./autogenerated
and ./syntaxes
?
Oh, use the auto-generated.
The syntaxes folder is still around because I refactored the codebase last week and haven't told Microsoft about it. They're currently pulling from the syntaxes folder so I didn't want to spontaneously break their workflow.
Also as part of the refactor, this repo is only going to have the C++ and C++ embedded syntaxes.
So if you're looking for the other ones, I created several twin repositories (better-c-syntax, better-objc-syntax, better-objcpp-syntax) to house the syntax files for the other languages.
I tried fixing the one on line 528 but it generates a lot of diffs on regeneration (though admittedly I don't have nix set up so I was just doing npm i
+ gem install ruby_grammar_builder --version 0.0.4
+ gem install walk_up
and then ruby main/main.rb
Oh oops, I didn't realize you meant line 500 in the main.rb. I was thinking you meant in the syntaxes/
I tried fixing the one on line 528 but it generates a lot of diffs on regeneration (though admittedly I don't have nix set up so I was just doing
npm i
+gem install ruby_grammar_builder --version 0.0.4
+gem install walk_up
and thenruby main/main.rb
I would have guessed that would, and that's how we used to set it up. And I pushed the change just now and it was pretty minimal so maybe you can diff against it to figure out what wasn't working. Or alternatively just use the nix setup.
Checklist
"C_Cpp.enhancedColorization": "Disabled"
The code with a problem is:
It looks like:
(causes a crash for my highlighter currently)
It should look like:
(not crash)
explanation
it looks like there's a
#c_condtional_context
in the c++ grammar, but no target for it to include. the currently checked-in C grammar contains ac_conditional_context
though