Git Product home page Git Product logo

Comments (4)

ViktorQvarfordt avatar ViktorQvarfordt commented on May 23, 2024

Macros should definitely be highlighted. Since you closed this I assume you got it working.

from julia-sublime.

musm avatar musm commented on May 23, 2024

Yeah I had to add it manually to my color scheme, now it works. It would be nice if it was by default highlighted 👍

from julia-sublime.

ViktorQvarfordt avatar ViktorQvarfordt commented on May 23, 2024

Macro are highlighted by default in the default color theme. You must have been using something non-standard. If not, something is messed up and I shall try to fix it, please provide more information.

As can be seen in the Julia.sublime-syntax file (below), we set the scopes support.function.julia and variable.macro.julia for macro calls:

  macros:
    - match: '@{{symb_id}}+\b'
      # Julians want their macros to light up as functions by default
      # The scope `variable.macro` is applied last to give it precedence
      # so that user can override the color in the color theme.
      scope: support.function.julia variable.macro.julia

https://github.com/JuliaEditorSupport/Julia-sublime/blob/master/Julia.sublime-syntax#L282

from julia-sublime.

musm avatar musm commented on May 23, 2024

Thanks, it looks like my colorscheme is nonstandard. Works for default schemes. Thank you.

from julia-sublime.

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.