Comments (6)
Can someone post a screenshot or an example of how this works in some other mode?
Incidentally, I use https://github.com/nschum/highlight-symbol.el/ for visual tracing, eg
with some hotkeys setup for navigation and toggling highlights. There are other Emacs packages with similar functionality.
from julia-emacs.
@Wilfred, since you opened the original issue JuliaLang/julia#8723, can you please clarify the desired behavior here? Eg in
let x = "foo, bar", y = foo(1, 2)
x + y
end
would you want to highlight the first x
and y
, or all occurrences within the let
?
from julia-emacs.
Per the emacs manual, it would be traditional to highlight the first x
and y
but not subsequent occurrences with font-lock-variable-name-face
: https://www.gnu.org/software/emacs/manual/html_node/elisp/Faces-for-Font-Lock.html
from julia-emacs.
I started working on this. Ran into trouble. The problem is that assignment can occur in a lot of contexts in julia, and =
means something else entirely in other contexts. For example, how do tell whether (a = ...)
is an assignment to a
or a named tuple without parsing the whole expression? Any ideas would be helpful.
from julia-emacs.
I have thought about this and for every regex-based approach I can think of there is some corner case.
I am not sure this functionality is worth implementing what amounts to a subset of the Julia parser. I would be inclined to close it as wontfix
, but I can leave it open too.
from julia-emacs.
I'd leave it open for discoverability if it was me. Having just skimmed the indentation code, we already actually implement a surprisingly large subset of the julia parser; if someone wanted to do the work, I don't think it would be a bad thing to have.
from julia-emacs.
Related Issues (20)
- How to search for unicode characters? HOT 2
- Support julia markdown mode
- font-lock-warning-face for @inbounds and @generated
- Warning in Emacs 29
- Type a sequence of subscript/superscript characters HOT 1
- julia-mode did not run properly in emacs-28.2 HOT 3
- Update breaks autocomplete in jupyter-emacs org mode code cells HOT 11
- Identation in fresh julia-mode installation HOT 1
- Identation in fresh julia-mode installation HOT 7
- Identation in fresh julia-mode installation HOT 1
- Consider creating an option to mimic previous tab behavior HOT 18
- comment region with #= =# HOT 1
- Cannot open load file: No such file or directory, ess (exporting) HOT 3
- automatic insert end to close a function or type definition
- Test failure for julia--test-end-of-defun-nested-2 HOT 6
- Consecutive super/subscript completion HOT 1
- Macro invocations not highlighted if preceded by an exclamation mark
- julia-mode.el not indenting and throwing error HOT 5
- Unicode substitution broken with helm HOT 7
- Help finding a maintainer for julia-ts-mode HOT 9
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 julia-emacs.