diff --git a/languages.json b/languages.json index 1531930..853474b 100644 --- a/languages.json +++ b/languages.json @@ -139,6 +139,11 @@ "env": ["elvish"], "extensions": ["elv"] }, + "Fennel" : { + "line_comment": [";", ";;"], + "quotes": [["\\\"", "\\\""]], + "extensions": ["fnl"] + }, "Fish": { "shebangs": ["#!/bin/fish"], "line_comment": ["#"], diff --git a/tests/data/fennel.fnl b/tests/data/fennel.fnl new file mode 100644 index 0000000..a84549c --- /dev/null +++ b/tests/data/fennel.fnl @@ -0,0 +1,18 @@ +;; 18 lines 8 code 5 comments 5 blanks + +; this is a ; single comment +;;;; this is also a single comment ;;;;;; + + ; "this is a comment too!" + +(local variable "I ;am a ;variable!") + +; (print "\"I am commented out!\"") +(print "\"Hello world!\"") ; this is an ; end of line comment +(print "This is not a comment: ;") +(print "This is a + multiline string") + +(fn somefn [x] + (print "I am some function.") + (print "My parameter is " (string.format "\"%s\"" x)))