Skip to content

Commit

Permalink
Add Fennel support and fix Clojure complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
nouun committed Sep 30, 2021
1 parent a190806 commit 541b265
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 12 deletions.
1 change: 1 addition & 0 deletions LANGUAGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Expect (exp)
Extensible Stylesheet Language Transformations (xslt,xsl)
F# (fs,fsi,fsx,fsscript)
F* (fst)
Fennel (fnl)
FIDL (fidl)
Fish (fish)
Flow9 (flow)
Expand Down
56 changes: 45 additions & 11 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1142,17 +1142,19 @@
},
"Clojure": {
"complexitychecks": [
"for ",
"for(",
"if ",
"if(",
"switch ",
"while ",
"else ",
"|| ",
"&& ",
"!= ",
"== "
"(for ",
"(when ",
"(loop ",
"(doseq ",
"(cond ",
"(if",
"(if-not ",
"(and ",
"(or ",
"(not ",
"(= ",
"(not= ",
"(recur "
],
"extensions": [
"clj",
Expand Down Expand Up @@ -1941,6 +1943,38 @@
],
"quotes": []
},
"Fennel": {
"complexitychecks": [
"(for",
"(each",
"(if",
"(when",
"(while",
"(switch",
"(do",
"(..",
"(=",
"(and",
"(or"
],
"extensions": [
"fnl"
],
"multi_line": [],
"line_comment": [
";"
],
"quotes": [
{
"start": "\"",
"end": "\""
},
{
"start": ",",
"end": "'"
}
]
},
"F*": {
"complexitychecks": [
"for ",
Expand Down
2 changes: 1 addition & 1 deletion processor/constants.go

Large diffs are not rendered by default.

0 comments on commit 541b265

Please sign in to comment.