You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce the concept of languages from the simplify branch (#4016)
It allows referencing required languages inside grammar definitions via the `language` property of an options object passed to the `grammar()` function. So, we don't need to expose the `getLanguage()` function to grammar authors.
- Don't pass `getLanguage()` to the `grammar()` function
- Don't mutate the language proto when the base grammar is specified (firstly, it's a bug, secondly, we don't want to define the base language as a property of the `languages` object—it's for the required languages only)
- Add new utility functions for working with objects (authored by @LeaVerou)
- Improve the type system to support the updated signature of `grammar()`
- Update definitions of languages previously relied on `getLanguage()`
Co-authored-by: Lea Verou <[email protected]>
0 commit comments