summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--manifest.scm13
-rw-r--r--src/supported-languages51
2 files changed, 60 insertions, 4 deletions
diff --git a/manifest.scm b/manifest.scm
index e39196e..3e5deec 100644
--- a/manifest.scm
+++ b/manifest.scm
@@ -2,7 +2,6 @@
 ;;; SPDX-FileCopyrightText: 2025 Nguyễn Gia Phong
 ;;; SPDX-License-Identifier: GPL-3.0-or-later
 
-
 (use-modules (ice-9 textual-ports))
 
 (define (read-file path)
@@ -14,7 +13,13 @@
           (string-split (read-file path)
                         #\newline)))
 
-(let ((tree-sitter-grammars (map (lambda (language)
-                                   (string-append "tree-sitter-" language))
-                                 (read-lines "src/supported-languages"))))
+(define (_->- char)
+  (if (eqv? char #\_)
+      #\-
+      char))
+
+(let ((tree-sitter-grammars
+       (map (lambda (language)
+              (string-append "tree-sitter-" (string-map _->- language)))
+            (read-lines "src/supported-languages"))))
   (specifications->manifest (cons "zig" tree-sitter-grammars)))
diff --git a/src/supported-languages b/src/supported-languages
index f2ad6c7..9db03a6 100644
--- a/src/supported-languages
+++ b/src/supported-languages
@@ -1 +1,52 @@
+awk
+bash
+bibtex
+blueprint
 c
+clojure
+cmake
+cpp
+c_sharp
+css
+devicetree
+dockerfile
+elixir
+elm
+erlang
+go
+gomod
+haskell
+hcl
+heex
+html
+java
+javascript
+json
+julia
+kdl
+kotlin
+latex
+lua
+markdown
+matlab
+meson
+nix
+ocaml
+org
+php
+plantuml
+prisma
+python
+r
+racket
+ron
+ruby
+rust
+scala
+scheme
+sway
+tlaplus
+typescript
+ungrammar
+verilog
+vhdl