From ff1045f5da90344d547022c50f1756be4adaf721 Mon Sep 17 00:00:00 2001 From: ObserverOfTime Date: Wed, 8 Nov 2023 20:32:30 +0200 Subject: [PATCH] Improve documentation and rebuild --- .github/workflows/ci.yml | 2 +- .github/workflows/update.yml | 2 +- .gitignore | 1 + README.md | 13 +++++++++++++ grammar.js | 2 +- package.json | 2 +- 6 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee00927..7f01dd6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/setup-node@v3 name: Set up NodeJS with: - node-version: 16 + node-version: 20 - name: Install dependencies run: npm install - name: Run tests diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 0486912..c0d66e8 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/setup-node@v3 name: Set up NodeJS with: - node-version: 16 + node-version: 20 - name: Update dependencies run: npm update - name: Install dependencies diff --git a/.gitignore b/.gitignore index 4ffedfd..f4be042 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ Cargo.lock build/ target/ *.wasm +*.o diff --git a/README.md b/README.md index fa52b05..a667188 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,18 @@ # tree-sitter-arduino +[![CI][badge]](https://github.com/ObserverOfTime/tree-sitter-arduino/actions/workflows/ci.yml) + An extension of [tree-sitter-cpp][] to support Arduino files. +## References + +* [Arduino Reference](https://www.arduino.cc/reference/en/) + +## Editors + +- [x] Neovim +- [ ] Helix _(helix-editor/helix#5277)_ +- [x] Emacs + [tree-sitter-cpp]: https://github.com/tree-sitter/tree-sitter-cpp +[badge]: https://badgen.net/github/checks/ObserverOfTime/tree-sitter-arduino?label=CI&icon=github diff --git a/grammar.js b/grammar.js index 71dcabf..86ab7fa 100644 --- a/grammar.js +++ b/grammar.js @@ -1,4 +1,4 @@ -const CPP = require('tree-sitter-cpp/grammar') +const CPP = require('tree-sitter-cpp/grammar'); module.exports = grammar(CPP, { name: 'arduino', diff --git a/package.json b/package.json index 6cac7d0..ac29c2b 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ }, "main": "bindings/node", "dependencies": { - "nan": "^2.17.0" + "nan": "^2.18.0" }, "devDependencies": { "tree-sitter-c": ">=0.20.6",