| Summary: | No constants highlighting for Julia | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-syntax-highlighting | Reporter: | Nikita Sirgienko <warquark> |
| Component: | syntax | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | nibgonz |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://commits.kde.org/syntax-highlighting/c91c2554215d578dd688d890f12011333189d578 | Version Fixed/Implemented In: | 5.60.0 |
| Sentry Crash Report: | |||
|
Description
Nikita Sirgienko
2019-02-03 21:06:23 UTC
Also, it's not only about contants, functions also don't haghlighted: and syntax file haven't any functions names, unlike, for example, octave.xml, maxima.xml. Can you please provide a patch that improves the highlighting file? We as developers cannot know all details of the ~300 highlighting files / languages. We repy on your support. Theoretically, I could create keywordList for the constants with style dsConstant. But I am not sure, that this is improvment. What do you think? @Nikita: Well, you propose to highlight constants - so I guess it is an improvement if you add a keyword list with all the constants to be highlighted. If you add this list, we will commit this to the highlighting file. I made a patch updating the syntax of Julia, if you could review it would be great: https://phabricator.kde.org/D21711 Git commit c91c2554215d578dd688d890f12011333189d578 by Nibaldo González.
Committed on 15/06/2019 at 09:13.
Pushed by ngonzalez into branch 'master'.
Julia: update syntax and add constants keywords
Summary:
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:**
* Julia 1.1 Documentation: https://docs.julialang.org/en/v1.1/
Reviewers: #framework_syntax_highlighting, dhaumann, cullmann
Reviewed By: #framework_syntax_highlighting, cullmann
Subscribers: kwrite-devel, kde-frameworks-devel
Tags: #kate, #frameworks
Differential Revision: https://phabricator.kde.org/D21711
A +73 -0 autotests/folding/test.jl.fold
A +80 -0 autotests/html/test.jl.html
A +73 -0 autotests/input/test.jl
A +73 -0 autotests/reference/test.jl.ref
M +459 -40 data/syntax/julia.xml
https://commits.kde.org/syntax-highlighting/c91c2554215d578dd688d890f12011333189d578
|