diff options
Diffstat (limited to 'CONTRIBUTING.md')
| -rw-r--r-- | CONTRIBUTING.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9006308db..09ef589f8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -67,6 +67,18 @@ Here are some global advices : - Examples of queries can be found in [queries/](queries/) - Matches in the bottom will override queries that are above of them. +If your language is an extension of a language (TypeScript is an extension of JavaScript for +example), you can include the queries from your base language by adding the following _as the first +line of your file_. + +```scheme +; inherits: lang1,(optionallang) +``` + +If you want to include a language for a given query, but don't want for the queries including the +query you qre writing to include it too, you can mark the language as optional (by putting it +between parenthesis). + ### Highlights As languages differ quite a lot, here is a set of captures available to you when building a `highlights.scm` query. |
