Skip to content

Commit

Permalink
Fix dialect detection for Babashka .clj files
Browse files Browse the repository at this point in the history
  • Loading branch information
eerohele committed Feb 19, 2024
1 parent 625230b commit 30db138
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dialects.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,9 @@ def for_view(view):
return edn.Keyword("cljs")
if syntax.scope == "source.clojure.babashka":
return edn.Keyword("bb")
if syntax.scope == "source.clojure" and evaluation_dialect(view) == edn.Keyword(
"bb"
):
return edn.Keyword("bb")
if syntax.scope == "source.clojure":
return edn.Keyword("clj")

0 comments on commit 30db138

Please sign in to comment.