From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 01 08:06:24 2022 Received: (at 53523) by debbugs.gnu.org; 1 Feb 2022 13:06:24 +0000 Received: from localhost ([127.0.0.1]:42026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEsrX-0001zn-Lt for submit@debbugs.gnu.org; Tue, 01 Feb 2022 08:06:23 -0500 Received: from mail-oi1-f169.google.com ([209.85.167.169]:34664) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEsrV-0001zW-3U for 53523@debbugs.gnu.org; Tue, 01 Feb 2022 08:06:21 -0500 Received: by mail-oi1-f169.google.com with SMTP id b186so26928199oif.1 for <53523@debbugs.gnu.org>; Tue, 01 Feb 2022 05:06:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=H0Y3GlNoijtv+r6mLcEEJwON8nXp0DsmgX3Nckjt8+8=; b=EP/Q+D+JLPOxf1LYPCqqr/9pdb1SUdbZqnqXbPfAliACfIWU5EpCx0UhjOIjW6pdsj +et0XFG153MHzGegEsRKZQdx9WKDWokgDMQmRlrwvoRz1B9dB5fkn1h6o4Jghn2Z812Q xC6DYHR+ggogjbHGCmvjVyoV5KJ29ox7a2+3LLthsLjp9BdLD5UzQ+T0j/IDCjTqW5y4 ntpGlK8P2QQFFYpzsCVsNByuKRiMl95XCX19A1jO5eMfgCb9COnZRLzDwLw9QLYQRnT6 YyRh1AayeLP65n0tnVhG84c37cjN+DXMXTlEIvJIvCitazzI+fYWTj35vznUMtTTOSJv x8dA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=H0Y3GlNoijtv+r6mLcEEJwON8nXp0DsmgX3Nckjt8+8=; b=WY0kkYu5zYHSEN7lFJ/LXIaxWWXF2F18lA6BNVXm3r0yWYxF/YwBZehsEYCp99s5os tNt+CRSfN/5jVk5P8zF7aDF6wkbtvJGGfjWGYwrTOe7u97hCpLg+xZ4ulbnirK7+0aH2 DeWk15ycfcMWepGFCkIa/6PqAXv011UxHZDyazMMMdO56GETOgRkcWfq5HCHt692XApH 6dwCFlAe/jHSWMVFhxd5kGTgrHSN5eiySdlIq3qHNO2ZNgLNm9iO/SLBGPTQ3h8szkVG N0Wol8jDy3KQRhB+Op4eWVy+csJ7j14P7l+wRkMxdDy3M773brrvlBNO0VDpdIOyXTNu LJjw== X-Gm-Message-State: AOAM532weIefsJGAnzvbrSPjxUZtKqJbCn8MWBsEYaQ/2/Jzg4k+1vd7 B6hkWcSJULFETWn4sJG+cmzjlNi+JsYsXA== X-Google-Smtp-Source: ABdhPJwCXXFv2keGdw6NpzhaLLLmtvOWpYXmOZ6O6i/sENWHqPU4NRYiGZJ5r3nUU6tZh2CAYZTOhg== X-Received: by 2002:a05:6808:230f:: with SMTP id bn15mr1065909oib.91.1643720775013; Tue, 01 Feb 2022 05:06:15 -0800 (PST) Received: from localhost.localdomain ([2804:7f2:2785:15d6:4ff3:5510:693f:e90a]) by smtp.gmail.com with ESMTPSA id s187sm13405811oib.36.2022.02.01.05.06.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Feb 2022 05:06:14 -0800 (PST) From: Luis Henrique Gomes Higino To: 53523@debbugs.gnu.org Subject: [PATCH v2 1/2] gnu: Add tree-sitter. Date: Tue, 1 Feb 2022 10:04:23 -0300 Message-Id: X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 53523 Cc: Luis Henrique Gomes Higino X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) Hi guixers, this adds tree-sitter, just as the previous patch series, but now there is no neovim-luajit and neovim uses LuaJIT on supported platforms. -- Regards, Luis H. Higino * gnu/packages/text-editors.scm (tree-sitter): New variable. --- gnu/packages/text-editors.scm | 45 +++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm index 2c5f5de719..9273a8f10b 100644 --- a/gnu/packages/text-editors.scm +++ b/gnu/packages/text-editors.scm @@ -17,6 +17,7 @@ ;;; Copyright © 2021 Leo Famulari ;;; Copyright © 2021 Pierre Langlois ;;; Copyright © 2021 Calum Irwin +;;; Copyright © 2022 Luis Henrique Gomes Higino ;;; ;;; This file is part of GNU Guix. ;;; @@ -1165,3 +1166,47 @@ (define-public virtaal provided by the Translate Toolkit, including XLIFF and PO.") (home-page "https://virtaal.translatehouse.org/") (license license:gpl2+))) + +(define-public tree-sitter + (package + (name "tree-sitter") + (version "0.20.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tree-sitter/tree-sitter") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1yldgdbf3l5l4ki52abdf81nwkcbvg219gwr3ydcjwfsg7hf7zhz")))) + (build-system gnu-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'fix-hardcoded-paths + (lambda _ + (substitute* "Makefile" + (("/usr/local") (assoc-ref %outputs "out")))))) + #:tests? #f + #:make-flags + (list (string-append "prefix=" + (assoc-ref %outputs "out")) + (string-append "CC=" + ,(cc-for-target))))) + (home-page "https://tree-sitter.github.io/tree-sitter/") + (synopsis "Incremental parsing system for programming tools") + (description + "Tree-sitter is a parser generator tool and an incremental parsing +library. It can build a concrete syntax tree for a source file and efficiently +update the syntax tree as the source file is edited. Tree-sitter aims to be: + +@itemize +@item General enough to parse any programming language +@item Fast enough to parse on every keystroke in a text editor +@item Robust enough to provide useful results even in the presence of syntax errors +@item Dependency-free so that the runtime library (which is written in pure C) +can be embedded in any application +@end itemize +") + (license license:expat))) -- 2.34.0