docs: add tsserver annotation to example (#3460)

This commit is contained in:
Segev Finer 2024-07-28 08:17:20 +02:00 committed by GitHub
parent 800f2c41d0
commit 149a2a9081
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -56,6 +56,9 @@ export PATH=$PATH:./node_modules/.bin
Once you have the CLI installed, create a file called `grammar.js` with the following contents:
```js
/// <reference types="tree-sitter-cli/dsl" />
// @ts-check
module.exports = grammar({
name: 'YOUR_LANGUAGE_NAME',