mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 12:05:19 -06:00
gnu: Simplify tree-sitter-vhdl.
* gnu/packages/tree-sitter.scm (tree-sitter-vhdl): Simplify custom get-cleanup-snippet. Change-Id: I699a805d9e818eda0ed79cef83e0f52e66033726 Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
This commit is contained in:
parent
1514d0d898
commit
791a31da64
1 changed files with 3 additions and 8 deletions
|
|
@ -1748,15 +1748,9 @@ files.")))
|
|||
#:repository-url "https://github.com/alemuller/tree-sitter-vhdl"
|
||||
#:commit commit
|
||||
#:get-cleanup-snippet
|
||||
(lambda _
|
||||
(lambda (grammar-directories)
|
||||
#~(begin
|
||||
(use-modules (guix build utils))
|
||||
(delete-file "binding.gyp")
|
||||
;; tree-sitter-vhdl does not have bindings/ directory.
|
||||
(delete-file "src/grammar.json")
|
||||
(delete-file "src/node-types.json")
|
||||
(delete-file "src/parser.c")
|
||||
(delete-file-recursively "src/tree_sitter")
|
||||
;; FIXME: Language not found.
|
||||
(delete-file-recursively "test/highlight")
|
||||
;; Fix a query error in the highlight.scm query test. This would be
|
||||
|
|
@ -1769,7 +1763,8 @@ files.")))
|
|||
(substitute* "queries/highlights.scm"
|
||||
(("\\(integer_decimal\n") "(integer_decimal)\n")
|
||||
(("\\(integer\\)") "")
|
||||
(("\"0\")") "\"0\"")))))))
|
||||
(("\"0\")") "\"0\""))
|
||||
#$(tree-sitter-delete-generated-files grammar-directories))))))
|
||||
|
||||
(define-public tree-sitter-vim
|
||||
(tree-sitter-grammar "vim"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue