Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated 19 grammars to their latest versions #158

Merged
merged 21 commits into from
Apr 23, 2024
Merged

Conversation

micksmix
Copy link
Contributor

@micksmix micksmix commented Apr 22, 2024

Using _automation/main.go I updated the following grammars to their latest versions, and verified that all tests passed.

Languages updated are:

  • Bash
  • C
  • C++
  • CSS
  • cue
  • Elixir
  • Elm
  • Go
  • HCL
  • HTML
  • Java
  • JavaScript
  • Lua
  • Python
  • Ruby
  • Rust
  • Scala
  • Svelte
  • TypeScript

For these languages, I had to make minor changes to the respective binding_test.go because there was some change to the syntax tree generated by tree-sitter + the grammar:

  • Bash
  • HTML
  • cue

I also made minor changes to _automation/main.go to support referencing tree-sitter header files which are located ../ one directory up

@smacker - please review when you have time. Also, I want to thank you for all the work you do to maintain this repo! I really appreciate it!

@micksmix
Copy link
Contributor Author

micksmix commented Apr 22, 2024

I also made a minor change to _automation/main.go so that language specific files would find the necessary tree-sitter headers (array.h and alloc.h), which is 1 directory up from the grammar (root of this repo).

map[string]string{
  `<tree_sitter/parser.h>`: `"parser.h"`,
  `"tree_sitter/parser.h"`: `"parser.h"`,
  `"tree_sitter/array.h"`:  `"../array.h"`,
  `<tree_sitter/array.h>`:  `"../array.h"`,
  `"tree_sitter/alloc.h"`:  `"../alloc.h"`,
  `<tree_sitter/alloc.h>`:  `"../alloc.h"`,
},

@smacker smacker merged commit 8ba0365 into smacker:master Apr 23, 2024
4 checks passed
@smacker
Copy link
Owner

smacker commented Apr 23, 2024

Thank you @micksmix !

I haven't been maintaining this repository much recently. Thank you for keeping it alive!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants