Julia: update syntax and add constants keywords
ClosedPublic

Authored by nibags on Jun 10 2019, 7:51 AM.

Details

Summary

BUG: 403901

Update Julia's syntax with some missing features, such as multi-line comments and strings, based on Julia's documentation. It also adds keywords of constants and types.

Changes in julia.xml:

  • Add missing keywords. Add keywords of constants and modules.
  • Numbers:
    • Allow underscores in numbers.
    • Add hexadecimal floating-point.
    • Add octales and binaries.
  • Add multi-line comments.
  • Add multi-line strings, raw strings, docs strings, byte arrays and Regex strings.
  • Add command strings (with backstricks).
  • Replace rules StringDetect with Detect2Chars in the detection of operators.

Source:

Diff Detail

Repository
R216 Syntax Highlighting
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
nibags created this revision.Jun 10 2019, 7:51 AM
Restricted Application added projects: Kate, Frameworks. · View Herald TranscriptJun 10 2019, 7:51 AM
Restricted Application added subscribers: kde-frameworks-devel, kwrite-devel. · View Herald Transcript
nibags requested review of this revision.Jun 10 2019, 7:51 AM
cullmann accepted this revision.Jun 10 2019, 10:02 AM

Nice, thanks.

This revision is now accepted and ready to land.Jun 10 2019, 10:02 AM
This revision was automatically updated to reflect the committed changes.