Git Product home page Git Product logo

Comments (6)

tpapp avatar tpapp commented on May 19, 2024

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

highlight

with some hotkeys setup for navigation and toggling highlights. There are other Emacs packages with similar functionality.

from julia-emacs.

tpapp avatar tpapp commented on May 19, 2024

@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.

non-Jedi avatar non-Jedi commented on May 19, 2024

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.

non-Jedi avatar non-Jedi commented on May 19, 2024

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.

non-Jedi@0c802f9

from julia-emacs.

tpapp avatar tpapp commented on May 19, 2024

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.

non-Jedi avatar non-Jedi commented on May 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.