3
0
Fork 0
forked from mirrors/nixpkgs
Commit graph

166 commits

Author SHA1 Message Date
figsoda 82fe76d1cd carnix,cratesIO: remove 2022-11-22 14:10:25 -05:00
Bernardo Meurer dd1fc37d06
tree-sitter-grammars: update 2022-11-18 15:27:42 -05:00
figsoda c0c0a4ae2e tree-sitter/grammar.nix: accept extra arguments 2022-11-17 23:15:27 -05:00
figsoda af810aa232 vimPlugins.nvim-treesitter: move grammar generation from fetch to grammar.nix 2022-11-14 23:22:24 -05:00
Bernardo Meurer e7da2487fd
tree-sitter-grammars: use maintained repo for tree-sitter-sql 2022-11-08 10:30:28 -05:00
Bernardo Meurer 42e147380a
tree-sitter-grammars: remove fluent as it is abandoned 2022-11-08 10:24:54 -05:00
Bernardo Meurer f77532fac5
tree-sitter-grammars: remove agda as it is abandoned 2022-11-08 10:24:26 -05:00
Bernardo Meurer 1b823ac6a9
tree-sitter: update grammars 2022-11-08 10:20:54 -05:00
c4710n 1bd99d9268 tree-sitter-grammars: add eex 2022-11-05 19:54:00 +08:00
Profpatsch 0242c271aa tree-sitter/update: fetch orgas and directly check in python 2022-11-04 18:14:33 +01:00
Profpatsch 8f2f2e34d0 tree-sitter/update: rename fetchImpl to updateImpl 2022-11-04 18:14:33 +01:00
Profpatsch 3b0b6d1b61 tree-sitter/update: move atomically-write to python
It should do the same thing, but take with a grain of salt maybe.
2022-11-04 18:14:33 +01:00
Profpatsch 484bce31b7 tree-sitter/update: move printing of the import nix file to python
This is a bit crappy, but the complexity should go away once it’s done
in all python. Might have been wiser to rewrite the other stuff first.
2022-11-04 18:14:33 +01:00
Profpatsch a953387d22 tree-sitter/update: move checkTreeSitterRepos into python impl
Direct translation of the jq set logic.
2022-11-04 18:14:33 +01:00
Profpatsch 923975a604 tree-sitter/update: BINARIES -> ARGS.binaries
I want to pass more information in the next step, so binaries are just
one of multiple elements of the json value.

Generate a json file via `format` so that we get nicer
formatting (`lib.generators.toJSON` uses `builtins.toJSON` which does
not add any whitespace).
2022-11-04 18:14:33 +01:00
Profpatsch aa480ba111 tree-sitter/update: Move json file output to python
Removes the second-to-last use of jq from the shell script.
2022-11-04 18:14:33 +01:00
Profpatsch 965c698e2c tree-sitter/update: ARGLIB_JSON -> BINARIES, factor out wrapper
arglib is a term I coined for passing arguments as structured
environment variable, but in this case it’s probably easier to
understand if we just call it `BINARIES`.

Factors out the code that passes the environment to another script.
2022-11-04 18:14:33 +01:00
Profpatsch ef9d708262 tree-sitter: Update grammars 2022-11-04 18:14:33 +01:00
Profpatsch 2de554d512 tree-sitter/update: Fetch repositories in parallel
This was the main annoyance with the existing script, it would fetch
one repository after the other instead of multiple in parallel.
The `xe` tool is a simple `xargs`-like that can do that.

We put the json information for all repositories into a file with one
object per line, then pass that to xe.
2022-11-04 18:14:33 +01:00
Profpatsch a64a9d5552 tree-sitter/update: Write files atomically
Otherwise you can’t interrupt the process without creating
broken/half-written files.
2022-11-04 18:14:33 +01:00
Profpatsch 26cb66b681 tree-sitter/update: Fetch the existing repos from python as well
I also used the chance to add some type annotations and make sure they
get accepted by mypy.
2022-11-04 18:14:33 +01:00
Profpatsch 805b5e978d tree-sitter/update: get executables from nix instead of environment
This was a small bug, the update script should of course not depend on
any executables in the environment.

Since we don’t use a nix string anymore, interpolation is out of the
question, so we pass it as arglib environment json string.
2022-11-04 18:14:33 +01:00
Profpatsch 0d067c8603 tree-sitter/update: move pyhon impl into its own file
This helps with syntax highlighting & editor support
2022-11-04 18:14:33 +01:00
Profpatsch 673676319b tree-sitter/update: factor out github url 2022-11-04 18:14:33 +01:00
Profpatsch 7948439959 tree-sitter/update: prepare moving more stuff to python
I don’t want to split up the python code, so for now I’m just passing
a “mode” to the script to run a different subset of the functionality.
2022-11-04 18:14:33 +01:00
Profpatsch d325f6f702 tree-sitter: partially rewrite update script in python
The update script is getting out of hand, so we should rewrite it in
something that resembles sanity, i.e. Python

This is the first step, rewriting the part that checks and fetches a
release.

Next up is integrating latestGithubRepos into that script.
2022-11-04 18:14:33 +01:00
figsoda a84e2492ac tree-sitter: update grammars 2022-10-29 15:12:21 -04:00
Bogdan Burlacu e97d77d402
tree-sitter-grammars: update cpp grammar 2022-10-18 13:38:18 +02:00
Benoit Louy f5dd2748f9
tree-sitter-grammars: update smithy grammar
update to new version of tree-sitter-smithy that supports smithy 2.0
2022-10-10 20:52:39 -04:00
github-actions[bot] 535838d0a5
Merge master into staging-next 2022-10-10 00:03:49 +00:00
Pierce Bartine 932a99b4b2
tree-sitter-grammars: Add jsonnet 2022-10-08 11:24:06 -07:00
Pierce Bartine 17ba8ceecb
tree-sitter-grammars: Ignore ruby-tree-sitter.old 2022-10-08 11:23:39 -07:00
Vladimír Čunát e7fce4b037
Merge #190196: tree-sitter: 0.20.6 -> 0.20.7
...into staging
2022-09-28 10:13:54 +02:00
Benoit Louy dcd7afb872
tree-sitter-grammars.tree-sitter-smithy: init 2022-09-22 12:31:27 -04:00
José Luis Lafuente be6bb3c407
tree-sitter: add nickel grammar 2022-09-15 12:45:46 +02:00
R. Ryantm 6ab84fc184 tree-sitter: 0.20.6 -> 0.20.7 2022-09-07 21:02:13 +00:00
Ana Hobden 3c265de78d tree-sitter: Update grammars
Signed-off-by: Ana Hobden <operator@hoverbear.org>
2022-08-28 08:32:37 -07:00
talyz 784686d06c
tree-sitter: Package query files used for syntax highlighting 2022-08-25 18:10:47 +02:00
Sergei Trofimovich 717e7bd291 tree-sitter: strip only debug info by default
Noticed use of $STRIP when passed through various uses of $STRIP
in `nixpkgs`. This looked unusual in a way that it strips not just
debugging symbols but also all the rest.

The change switch to debug-only stripping.

While at it switched to expliict use of `-fPIC` for shared library.
2022-08-07 17:35:48 +01:00
Jocelyn Thode c75aa80bed tree-sitter: Update grammars and add markdown-inline 2022-07-15 16:39:44 +02:00
Sandro f4485783b0
Merge pull request #177651 from ambroisie/add-tree-sitter-tiger
tree-sitter: add tree-sitter-tiger
2022-06-15 14:27:19 +02:00
Bruno BELANYI 685e69f75c tree-sitter: add tree-sitter-tiger 2022-06-14 16:48:58 +02:00
Sandro Jäckel 4532226e4d
tree-sitter: init tree-sitter-sql 2022-06-12 22:47:23 +02:00
Sandro Jäckel 7b4b39cbc1
tree-sitter: init tree-sitter-rego 2022-06-12 22:47:23 +02:00
Sandro Jäckel cd5793da83
tree-sitter: update grammars 2022-06-12 22:47:23 +02:00
Sandro Jäckel 47cbc38f08
tree-sitter: init tree-sitter-go-work 2022-06-12 22:47:23 +02:00
Tae Selene Sandoval Murgan da0058d4a8 tree-sitter: Update grammars 2022-06-01 20:16:08 +02:00
Tae Selene Sandoval Murgan 235f1299d3 tree-sitter: Remove the Swift grammar
It was abandoned, and the recommended one doesn't have a parser.c file
2022-05-25 21:28:29 +02:00
William Kral 0c28d3bbec tree-sitter: revert #172850 for nix 2022-05-18 10:32:26 -07:00
adisbladis 492f7190ce tree-sitter: Bump grammars 2022-05-13 22:44:37 +12:00