From 149a2a908121475df71c6fd4a1a5da7ae04edc9a Mon Sep 17 00:00:00 2001 From: Segev Finer Date: Sun, 28 Jul 2024 08:17:20 +0200 Subject: [PATCH] docs: add tsserver annotation to example (#3460) --- docs/section-3-creating-parsers.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/section-3-creating-parsers.md b/docs/section-3-creating-parsers.md index afd08fbc..3ccc0621 100644 --- a/docs/section-3-creating-parsers.md +++ b/docs/section-3-creating-parsers.md @@ -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 +/// +// @ts-check + module.exports = grammar({ name: 'YOUR_LANGUAGE_NAME',