Detect .bb and .clj_kondo file extension as Clojure #42
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This should resolve issue #38.
I ran the Clojure program to update the syntax files but nothing was changed except the comment about the version of Java using with Clojure. I did have to make the
update-project!
function not private to run the function as specified in contributiting guidelines.I didn't test the browsefilter because I don't use Windows or GTK.
I ran
lein test
and got:I installed my changes as a plugin for Vim 9.0.2142 on macOS Sequoia 15.0.1 on Apple Silicon (M3 2024 Macbook air). Editing files with extension .bb and .clj_kondo are detected as
clojure
files. The same is true with Neovim 0.10.2.I did notice that in a file without a filename extension but a shebang line, the filetype isn't set to
clojure
.Another thing that I noticed is that .bb is a recognized as a
bitbake
filetype so the associated .vim scripts are loaded as reported by:scriptnames
. I'm not sure if that affects the syntax highlighting and/or indent as I'm not quite up-to-speed with Clojure syntax.