

Variables with the same name will override previous values.

When extending a syntax, the variables key is merged with the parent syntax. All other top-level keys, such as file_extensions and scope will not be inherited. For example:Ī syntax using inheritance will inherit the variables and contexts values from its parent syntax. The packages path will start with Packages/ and will contain the package name and syntax filename. When inheriting a syntax, the key extends is used with a value containing the packages path to the parent syntax.

In situations where a syntax is a slight variant of another, with some additions or changes, inheritance is a useful tool.
