Switch Carbon language to upstream grammar.#8024
Conversation
Previously it seemingly used a mixture of Go and V grammars!
lildude
left a comment
There was a problem hiding this comment.
Please follow the instructions for replacing a grammar detailed in the CONTRIBUTING.md file.
Done. (I assume you don't actually want I also fixed up some broken syntax and some other slightly odd things in the Carbon sample code. |
We generally don't modify samples as they're expected to be correct at the time they were added and help identify older files as a language's syntax evolves. If the language has evolved, it's best to add new samples and leave the old as-is. |
These samples were never correct. (But nor was using the V syntax highlighter or the Go syntax highligher to highlight Carbon. This language was set up pretty strangely.) |
Previously it seemingly used a mixture of Go and V grammars!
Checklist: