Skip to content

Commit 182719b

Browse files
authored
Merge pull request #289 from L3afMe/master
Add Fennel support and fix Clojure complexity
2 parents a190806 + 541b265 commit 182719b

File tree

3 files changed

+47
-12
lines changed

3 files changed

+47
-12
lines changed

LANGUAGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ Expect (exp)
6767
Extensible Stylesheet Language Transformations (xslt,xsl)
6868
F# (fs,fsi,fsx,fsscript)
6969
F* (fst)
70+
Fennel (fnl)
7071
FIDL (fidl)
7172
Fish (fish)
7273
Flow9 (flow)

languages.json

Lines changed: 45 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,17 +1142,19 @@
11421142
},
11431143
"Clojure": {
11441144
"complexitychecks": [
1145-
"for ",
1146-
"for(",
1147-
"if ",
1148-
"if(",
1149-
"switch ",
1150-
"while ",
1151-
"else ",
1152-
"|| ",
1153-
"&& ",
1154-
"!= ",
1155-
"== "
1145+
"(for ",
1146+
"(when ",
1147+
"(loop ",
1148+
"(doseq ",
1149+
"(cond ",
1150+
"(if",
1151+
"(if-not ",
1152+
"(and ",
1153+
"(or ",
1154+
"(not ",
1155+
"(= ",
1156+
"(not= ",
1157+
"(recur "
11561158
],
11571159
"extensions": [
11581160
"clj",
@@ -1941,6 +1943,38 @@
19411943
],
19421944
"quotes": []
19431945
},
1946+
"Fennel": {
1947+
"complexitychecks": [
1948+
"(for",
1949+
"(each",
1950+
"(if",
1951+
"(when",
1952+
"(while",
1953+
"(switch",
1954+
"(do",
1955+
"(..",
1956+
"(=",
1957+
"(and",
1958+
"(or"
1959+
],
1960+
"extensions": [
1961+
"fnl"
1962+
],
1963+
"multi_line": [],
1964+
"line_comment": [
1965+
";"
1966+
],
1967+
"quotes": [
1968+
{
1969+
"start": "\"",
1970+
"end": "\""
1971+
},
1972+
{
1973+
"start": ",",
1974+
"end": "'"
1975+
}
1976+
]
1977+
},
19441978
"F*": {
19451979
"complexitychecks": [
19461980
"for ",

processor/constants.go

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)