Skip to content

Commit

Permalink
Merge pull request #289 from L3afMe/master
Browse files Browse the repository at this point in the history
Add Fennel support and fix Clojure complexity
  • Loading branch information
boyter committed Oct 1, 2021
2 parents a190806 + 541b265 commit 182719b
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 182719b

Please sign in to comment.