tlienart / LiveServer.jl

Simple development server with live-reload capability for Julia.
MIT License
141 stars 26 forks source link

Julia lexer for editor #113

Closed Alexey-T closed 3 years ago

Alexey-T commented 3 years ago

I see you 've starred CudaText, it has the Julia lexer in addons. Is it working OK, or has some issues? @tlienart

tlienart commented 3 years ago

Hello! CudaText was mentioned here: https://discourse.julialang.org/t/is-anyone-using-textadept-as-their-editor-of-choice-for-julia/41255/39 so I gave it a shot (I'm always curious about new editors which are 'simple' and fast and I think the people in that thread are too).

At the moment I've not used CudaText for Julia (Atom and VS Code provide an integration Julia REPL which helps a lot with development) but I have used it with other languages such as Python and it worked great for me, thanks for making and open-sourcing this, it's awesome!

tlienart commented 3 years ago

I just tried opening a Julia project, here are some quick comments (I could make those in your repo if you preferred):

Screenshot 2021-01-24 at 17 32 16

--> ideally the :name should be highlighted as strings, the const keyword should be highlighted too as well as function indicators (like LittleDict) though that last one matters less. Also the nothing, false, etc keywords

Screenshot 2021-01-24 at 17 33 35

--> keywords like function, if, end, etc should be highlighted, functions should ideally be highlighted, modules (e.g. Base. and Core. should too + missing keyword

Screenshot 2021-01-24 at 17 34 54

--> text between """ should be highlighted as string, #= ... =# indicates a multi-line comments

I could give you more detailed feedback on this at the main repo if that's useful?

Note: I think the most up to date description of the syntax is in highlights.js (https://github.com/highlightjs/highlight.js/blob/master/src/languages/julia.js)

Alexey-T commented 3 years ago

yes, please copy that into my repo - https://github.com/Alexey-T/CudaText/issues to not miss it. or I can copy this?