Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent syntax highlighting of in followed by ( #1057

Open
GrigorySarnitsky opened this issue Oct 20, 2022 · 2 comments
Open

Inconsistent syntax highlighting of in followed by ( #1057

GrigorySarnitsky opened this issue Oct 20, 2022 · 2 comments

Comments

@GrigorySarnitsky
Copy link

The keyword in is not always highlighted. For example it is highlighted in

for i in 1:10

but not in

for i in (1):10

Meanwhile is highlighted in both cases.

I am using JupyterLab with Julia version:

Julia Version 1.8.2
Commit 36034abf26 (2022-09-29 15:21 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 12 × Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, skylake)
  Threads: 1 on 12 virtual cores
@twavv
Copy link
Contributor

twavv commented Oct 20, 2022

This is probably an issue with CodeMirror which is what JupyterLab uses to do syntax highlighting. https://github.com/codemirror/codemirror5

IJulia itself has no control over syntax highlighting in the web frontend.

@GrigorySarnitsky
Copy link
Author

It seems that "in" is not a keyword in mode/julia/julia.js and "in" is not highlighted in CodeMirror Julia demo https://codemirror.net/5/mode/julia/.

I will be looking further for the source of this behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants