From 48b5ae3a9e6ca67a54dbeca201f3ce8f57bd98a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20B=20Nagy?= <20251272+BNAndras@users.noreply.github.com> Date: Wed, 8 Nov 2023 22:11:13 -0800 Subject: [PATCH] Add LFE support (#6) * Add LFE support * Revert formatting changes to README.md * Fix formatting again * Update CI badge in README.md (#4) * Add test workflow (#7) * Add test workflow * Don't use matrix * Try inline cross * Pin runner * Directly download release via CLI * Add caching * Extract to bash file * Last tweaks * Add support for 8th (#1) Add support for 8th --------- Co-authored-by: Erik Schierboom * add wren support (#8) * Trigger lines of code counter redeploy (#9) * Add LFE support * Revert formatting changes to README.md * Fix formatting again * Remove scheme submodule * Add quotes * Update lfe.lfe * Increment comment count * Decrement blank count --------- Co-authored-by: Erik Schierboom Co-authored-by: Glenn Jackman --- README.md | 3 ++- languages.json | 8 ++++++++ tests/data/lfe.lfe | 15 +++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 tests/data/lfe.lfe diff --git a/README.md b/README.md index 335ed47e3..7436b81e0 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Tokei ([時計](https://en.wiktionary.org/wiki/%E6%99%82%E8%A8%88)) -[![Mean Bean CI](https://github.com/exercism/tokei/actions/workflows/mean_bean_ci.yml/badge.svg)](https://github.com/exercism/tokei/actions/workflows/mean_bean_ci.yml) +[![Mean Bean CI](https://github.com/XAMPPRocky/tokei/workflows/Mean%20Bean%20CI/badge.svg)](https://github.com/XAMPPRocky/tokei/actions?query=workflow%3A%22Mean+Bean+CI%22) [![Help Wanted](https://img.shields.io/github/issues/XAMPPRocky/tokei/help%20wanted?color=green)](https://github.com/XAMPPRocky/tokei/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22) [![Lines Of Code](https://tokei.rs/b1/github/XAMPPRocky/tokei?category=code)](https://github.com/XAMPPRocky/tokei) [![Documentation](https://docs.rs/tokei/badge.svg)](https://docs.rs/tokei/) @@ -435,6 +435,7 @@ KakouneScript Kotlin Lean Less +LFE LinkerScript Liquid Lisp diff --git a/languages.json b/languages.json index e6352942e..399ebd056 100644 --- a/languages.json +++ b/languages.json @@ -838,6 +838,14 @@ "extensions": ["less"], "quotes": [["\\\"", "\\\""], ["'", "'"]] }, + "Lfe": { + "name": "LFE", + "line_comment": [";"], + "multi_line_comments": [["#|", "|#"]], + "quotes": [["\\\"", "\\\""], ["'", "'"]], + "nested": true, + "extensions": ["lfe"] + }, "Liquid": { "name": "Liquid", "quotes": [["\\\"", "\\\""], ["'", "'"]], diff --git a/tests/data/lfe.lfe b/tests/data/lfe.lfe new file mode 100644 index 000000000..322fa16ae --- /dev/null +++ b/tests/data/lfe.lfe @@ -0,0 +1,15 @@ +; 15 lines 4 code 5 comments 6 blanks + +(defmodule my-code + (export (hello-world 0))) + +;;; Commentary: +;; Provides helper functions + +;;; Code + +(defun pi () 3.14) ; a constant for Π not exported + +(defun hello-world () "Hello, World!") + +;;; lfe.lfe ends here