Search found 6 matches
- January 4th, 2019, 3:28 am
- Forum: WML Workshop
- Topic: WML Syntax Highlighting for Kate/KWrite
- Replies: 46
- Views: 23290
Re: WML Syntax Highlighting for Kate/KWrite
The patch was sent! As information, the KDE KSyntaxHighlighting framework is in this repository: https://phabricator.kde.org/source/syntax-highlighting/ (file: data/syntax/wml.xml ; test file: autotests/input/test.pbl ) If someone wants to send an improvement to the WML highlighter (or other), the d...
- January 2nd, 2019, 9:25 pm
- Forum: WML Workshop
- Topic: WML Syntax Highlighting for Kate/KWrite
- Replies: 46
- Views: 23290
Re: WML Syntax Highlighting for Kate/KWrite
If you want to check the changes, here I leave a link with the modified highlighter: https://drive.google.com/file/d/1pmqc-_3wqMBnDaNBlTBjLYLpFMPAWD0-/view?usp=sharing To install it, copy the wml.xml file to $HOME/.local/share/org.kde.syntax-highlighting/syntax/ (for local user) or /usr/share/org.kd...
- January 2nd, 2019, 7:42 pm
- Forum: WML Workshop
- Topic: WML Syntax Highlighting for Kate/KWrite
- Replies: 46
- Views: 23290
Re: WML Syntax Highlighting for Kate/KWrite
I thought about that case! The rules for highlighting tags have priority, therefore, the nested tags will be highlighted correctly. The case ][ only be considered if ] doesn't belong to the closing of a tag. In addition, [/some] (case [/ ) will always be highlighted as a tag. text[hello] -> [hello] ...
- January 2nd, 2019, 5:18 am
- Forum: WML Workshop
- Topic: WML Syntax Highlighting for Kate/KWrite
- Replies: 46
- Views: 23290
Re: WML Syntax Highlighting for Kate/KWrite
I included it! I didn't highlight tags if there is an alphanumeric character, underscore or "]" before. Because seen that a tag is highlighted in things like: https://github.com/wesnoth/wesnoth/blob/66c07530000e72636b50579a4b2999570c85eb8e/data/gui/window/tooltip_floating.cfg#L59 The regex...
- December 31st, 2018, 8:45 pm
- Forum: WML Workshop
- Topic: WML Syntax Highlighting for Kate/KWrite
- Replies: 46
- Views: 23290
Re: WML Syntax Highlighting for Kate/KWrite
With a valid tag, I mean a regular expression (alphanumeric characters and underscores), not the exact names the tags can have. I described the tags as: \[\+?\w*\] \[/\s*\w*\s*] It could also be more general:: \[[^\[\]\s]*\] The idea is to avoid writing "[", the highlighter considers all t...
- December 31st, 2018, 8:17 pm
- Forum: WML Workshop
- Topic: WML Syntax Highlighting for Kate/KWrite
- Replies: 46
- Views: 23290
Re: WML Syntax Highlighting for Kate/KWrite
Hi! A bug has been reported in the WML highlighter of Kate (KSyntaxHighlighting framework): https://bugs.kde.org/show_bug.cgi?id=402720 I have proposed a patch that fixes it and, in addition, I modified the code so that only tags with valid names are highlighted (since the highlighter considers all ...