summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Tropin <andrew@trop.in>2023-02-14 13:20:25 +0400
committerAndrew Tropin <andrew@trop.in>2023-02-14 17:08:19 +0400
commitb8b05538fff5a1fa705dfc74289c343cb3e6ff89 (patch)
treeb81831270756acfbe76bc3a5dedd3469316cf6b5
parent49a95477a81252e4e8b4f7e39b499e80f381ec23 (diff)
downloadguix-b8b05538fff5a1fa705dfc74289c343cb3e6ff89.tar.gz
gnu: Add tree-sitter-cpp.
gnu/packages/tree-sitter.scm (tree-sitter-cpp): New variable.
-rw-r--r--gnu/packages/tree-sitter.scm11
1 files changed, 11 insertions, 0 deletions
diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm
index 72fc6c9de5..443d9de88e 100644
--- a/gnu/packages/tree-sitter.scm
+++ b/gnu/packages/tree-sitter.scm
@@ -270,3 +270,14 @@ will be used in description and synopsis."
    "c" "C"
    "1w03r4l773ki4iq2xxsc2pqxf3pjsbybq3xq4glmnsihgylibn8v"
    "0.20.2"))
+
+(define-public tree-sitter-cpp
+  ;; There are a lot of additions, the last tag was placed more than 1 year ago
+  (let ((commit "56cec4c2eb5d6af3d2942e69e35db15ae2433740")
+        (revision "0"))
+      (tree-sitter-grammar
+       "cpp" "C++"
+       "0c5iwg9j6naivvr18glfp095x32nfl9hbw0q02rhh1b59fkpjs09"
+       (git-version "0.20.0" revision commit)
+       #:commit commit
+       #:inputs (list tree-sitter-c))))