Comments (2)
This boils down to
1 (ns some-test
(:require [clojure.test :refer [deftest is]]))
being non-parseable by clojure-mode's (clojure-find-ns)
.
Funnily enough, the following does get detected properly:
1
(ns some-test
(:require [clojure.test :refer [deftest is]]))
I'll transfer this issue to clojure-mode and see if we can get it fixed.
from clojure-mode.
I gave this a fair shot, but I don't think there's a reasonable fix
Our clojure-namespace-regexp
is defined as follows:
It only matches (ns
if that's how a given line begins (line-start
). I could remove that, but then other edge cases would begin failing.
It's simpler to recommend users to avoid writing incorrect / dubious code. Formatters and linters can help with that - it can be a good a idea to run them before running tests.
Cheers - V
from clojure-mode.
Related Issues (20)
- Incorrect syntax highlighting for test name defined with `deftest` HOT 4
- Suggestions not working
- `clojure-find-def` fails on symbols that contain special characters
- Emacs hangs when `clojure-toplevel-inside-comment-form` is `t`, and `comment` is used as a var HOT 5
- Feature: Clojure-mode tree sitter support in Emacs v29 HOT 22
- Support nbb projects
- Infinite loop in `clojure-sort-ns` when sorting a ns with comments
- Suggestion - add additional characters to syntax table to support evil mode word motions HOT 1
- clojure-add-arity severs arglist metadata
- Dedicated lightweight edn-mode? HOT 1
- `clojure-sexp-starts-until-position` can loop forever
- Symbols with colon in the middle get wrong syntax highlighting HOT 1
- `clojure-mode-display-version` broken HOT 2
- Adaptive fill mode broken in docstring HOT 5
- Derive the mode from prog-mode or lisp-data-mode HOT 3
- Indentation very slow on 20230911.1653 HOT 29
- Use Eldev HOT 1
- Syntax highlighting broken for digits after the first in % args
- `.lpy` extension support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clojure-mode.