Summary: | Support for MS DOS/Windows batch files syntax, other syntaxes | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Andrew Udvare <audvare> |
Component: | syntax | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | mwoehlke.floss, xavier.kde |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
.bat highlighter
.bat highlighter, updated |
Description
Andrew Udvare
2009-07-09 09:27:27 UTC
Created attachment 35830 [details]
.bat highlighter
Well, here's a start, no promises how complete or even non-broken this is :-).
Hello, @Matthew Woehlke: The dosbat.xml seems to be a good start (thanks a lot, by the way). I have just installed it along with Kate/KDE 3.5.10 (the SMB Kio/slave allowed editing these filetypes before the start of KDE 4). However, I got warnings when the dosbat.xml was parsed by Kate: it appears this file mentions two undefined contexts (CmdIf and CmdFor) at lines 110 and 111. Commenting them out works, but I guess you intended to define these contexts? Created attachment 42285 [details] .bat highlighter, updated > However, I got warnings when the dosbat.xml was parsed by Kate: it appears this > file mentions two undefined contexts (CmdIf and CmdFor) at lines 110 and 111. > Commenting them out works, but I guess you intended to define these contexts? Yes. In fact, I started tinkering with it again recently. Updated version attached. There is still a warning about CmdIf since, as you've noticed, no parsing is done for 'if' yet, but parsing for 'for' is starting to shape up. That new version is already much more usable. Thanks a lot :) Git commit 254c577f3f8e37d620741d6e8e3a0abbac7bfc6f by Christoph Cullmann. Committed on 12/08/2011 at 10:45. Pushed by cullmann into branch 'master'. add MSDOS BAT hl even if not fully working, better than nothing BUG: 199527 A +311 -0 part/syntax/data/dosbat.xml http://commits.kde.org/kate/254c577f3f8e37d620741d6e8e3a0abbac7bfc6f |