quinnj / Sublime-IJulia

An IJulia Frontend for Sublime Text 3
90 stars 16 forks source link

Add syntax support for stagedfunctions #67

Closed tomasaschan closed 5 years ago

tomasaschan commented 9 years ago

stagedfunctions are a really nice new feature in 0.4, and I use it already. However, it's a little annoying when syntax highlighting doesn't work for it - so I made an attempt at fixing that :)

I'm not sure these are all the changes that are required to make this work properly, but I haven't spent any time in Sublime syntax/language files before, so I don't really know what I'm looking for. If I should do any other things before this is merged, point me in the right direction and I'll take a stab at it.

quinnj commented 9 years ago

The best would be to actually rebase this on top of https://github.com/JuliaLang/Julia.tmbundle, which has had several improvements lately that haven't been tracked here.

tomasaschan commented 9 years ago

Ah, then I'll do that instead :) Will that bring the changes into Sublime-IJulia as well (i.e. is the syntax file actually read from there) or do we have to change something more here to get the recent changes there?

tomasaschan commented 9 years ago

(As it turns out, Julia.tmbundle seems to already support stagedfunctions...)

quinnj commented 9 years ago

They're separate right now, but we should perhaps do a submodule to auto-track updates there. We do have a few custom additions here, like detecting SQL highlighting in ODBC.query as well as auto-highlighting C++ code in the cxx"" string macro. We could probably handle adding those in though without too much trouble.

tomasaschan commented 9 years ago

Why not just add those there instead?