Skip to content

Julia highlighting fixes

Ilia Kats requested to merge (removed):julia_fixes into master
  • add missing stdlib modules
  • differentiate between control flow and generic keywords
  • add dotted versions of all operators
  • add missing operators
  • use dsFunction for functions
  • properly highlight type annotations

The type annotation code is somewhat hacky, but I couldn't find a better solution. Suggestions would be highly appreciated. Another problem is the use of unicode characters in identifiers. For example,

function ∇llssig(x,y)
    do_something()
end

is perfectly valid Julia code, but the nabla doesn't seem to be matched even by a rule of the form <RegExpr context="#stay" attribute="Function" String="\b[^0-9]+!?(?=.?\()" />

Edited by Ilia Kats

Merge request reports

Loading