Sat, Apr 6
- Ok! Adding autotest references
Fri, Apr 5
- Running make test, after adding a new file to autotests/input, will throw an error in "testhighlighter_test", "htmlhighlighter_test" and "folding_test", since references haven't been updated. It's normal to show you that error.
- You have to execute the autotest/update-reference-data.sh script to update the references (new files will be copied to folding, html & reference). When running again make test everything will work fine.
- Don't highlight as Error the "alias" keyword within rules
Better not to highlight anything in rules.
Wed, Apr 3
- Update tests
- Apply changes in apparmor.xml, remove selinux-*.xml changes
- Fix some indentations
- Remove selinux-*.xml changes
- Remove "alias" in the "_end_rule" context and add some comments
- Fix some indentations
Sorry, I committed this diff, but it hasn't been fully accepted. Although I made the changes that mwolff requested. If there is a problem, I can undo the commit or update it....
Tue, Apr 2
I have tested this a lot and it works well so far. I don't know if you have any disagreement with the last update (for example, using setTheme() with an empty theme, although I haven't seen this cause any problems)...
- Loop proposal
Mon, Apr 1
- Don't store bool in StateData
Sun, Mar 31
Thu, Mar 28
- Fix attributes in "KDE" and "Vim (dark)" themes
Mar 25 2019
- Use QStringLiteral
Mar 24 2019
- Pass schema name as parameter
Mar 23 2019
- Add some comments
Mar 20 2019
- Fix theme names
Convert theme names from KTextEditor => KSyntaxHighlighting and avoid using invalid KSyntaxHighlighting::Theme objects.
Mar 19 2019
Mar 12 2019
It isn't possible to compile, because the elm.xml file has multiple issues :(
The script "data/schema/validatehl.sh" serves to verify the XML files:
cd syntax-highlighting/data/schema/ ./validatehl.sh ../syntax/elm.xml
../syntax/elm.xml:3: element language: Schemas validity error : Element 'language', attribute 'version': '1.0' is not a valid value of the atomic type 'xs:integer'. ../syntax/elm.xml:43: element WordDetect: Schemas validity error : Element 'WordDetect', attribute 'string': The attribute 'string' is not allowed. ../syntax/elm.xml:43: element WordDetect: Schemas validity error : Element 'WordDetect': The attribute 'String' is required but missing. ../syntax/elm.xml:84: element StringDetect: Schemas validity error : Element 'StringDetect', attribute 'char': The attribute 'char' is not allowed. ../syntax/elm.xml:84: element StringDetect: Schemas validity error : Element 'StringDetect': The attribute 'String' is required but missing. ../syntax/elm.xml:86: element context: Schemas validity error : Element 'context': The attribute 'lineEndContext' is required but missing. ../syntax/elm.xml:93: element context: Schemas validity error : Element 'context': The attribute 'lineEndContext' is required but missing. ../syntax/elm.xml:102: element context: Schemas validity error : Element 'context': The attribute 'lineEndContext' is required but missing. ../syntax/elm.xml:114: element itemDatas: Schemas validity error : Element 'itemDatas': This element is not expected. Expected is ( context ). ../syntax/elm.xml:4: element highlighting: Schemas validity error : Element 'highlighting': Missing child element(s). Expected is ( itemDatas ). ../syntax/elm.xml fails to validate
For example: </contexts> (line 133) must be placed before <itemDatas> and dsHexVal isn't a valid default style (use dsBaseN, look here). By solving it, maybe compile everything well.
Mar 10 2019
Yes, this corresponds to the bug you mention.
In the "Vim (dark)" scheme, bold="0" doesn't work either, since all the text is bold.
Mar 8 2019
- Update styles
In D19324 the icons for code and code-oss were added, which also need symbolic links for Flatpak (com.visualstudio.code & com.visualstudio.code.oss)
Mar 6 2019
Also missing the symlink for JDownloader (org.jdownloader.JDownloader.svg): https://flathub.org/apps/details/org.jdownloader.JDownloader
Mar 5 2019
I want to check the colors of this highlighter before doing the commit
Use: cmake ./ && make to compile
I still have problems with dsError + underline="0" :(
In "autotest/html" these aren't underlined, but when I open the file "test.logcat" with Kate, it's underlined.
I even tried creating a new Unix user, but the problem persists (I'm using KDE Frameworks 5.55.0).
Even removing the underlines in "Configure Kate -> Fonts & Colors", the problem persists.
Also clarify that the file "$HOME/.config/katesyntaxhighlightingrc" doesn't exist.
Mar 4 2019
Not seem, from what I see it is a recent bug. I just checked it in KDE Frameworks 5.48.0 (Fedora 28) and it works correctly
- Add tests
Mar 2 2019
Feb 27 2019
The MustacheJS highlight is modified in this diff: D19328
Feb 26 2019
Feb 23 2019
Feb 13 2019
I can add more examples in "autotests/input/highlight.php", for all the cases of languages included
Feb 12 2019
- Add unit test
It's good, I think it's a better solution ;D
Feb 5 2019
Jan 28 2019
Some highlighters use endRegion+lookAhead to determine the end of a region when a new one starts, that is, they don't consider the text with endRegion+lookAhead as part of the fold region. This behavior was present before the implementation of KSyntaxHighlighting and, apparently, is no longer from the commit: c004f3f787b2
Jan 27 2019
If you are only going to use the "admonition" keywords list for autocompletion, you could add them to the end of the context "section" or "start", keeping the attribute (Normal). I have done this in some highlight files
Jan 26 2019
Please, also add a test file in: "autotests/input/". To generate the files in "folding", "html" and "reference" use make test and autotests/update-reference-data.sh.
Jan 25 2019
The bug is identical to D17891 !
Please, also put #pop!error in fallthroughContext="error", on lines 238 and 363.
And increase the file version
Jan 16 2019
- Small correction in comment
Jan 11 2019
Jan 4 2019
Jan 3 2019
- Small modification in comments
- Update test file
Jan 2 2019
I asked in the thread of the Wesnoth forum, that appears in the wml.xml file (http://www.wesnoth.org/forum/viewtopic.php?f=21&t=13781), if the changes are OK and someone has suggested to me that the array indices (array) aren't highlighted as tags, as well that I included it
Dec 31 2018
- Fix RegExp of tag name
Nov 24 2018
- typescript.xml & typescript-react.xml: add some comments and the operator "!" after objects