Summary: | [PATCH] support for CartoCSS is not available | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Lukas Sommer <sommerluk> |
Component: | syntax | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | christoph, sommerluk |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | All | ||
Latest Commit: | http://commits.kde.org/ktexteditor/e87d51f431260dff77a30ed439cfafda92f64b95 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: |
mss.xml
mss.xml highlight.mss mss.xml highlight.mss |
Description
Lukas Sommer
2014-11-08 09:28:53 UTC
Created attachment 89500 [details]
mss.xml
A syntax highlighting file for CartoCSS
Hi, should the mss not contain at least the known commands/key-words, too? Created attachment 90049 [details]
mss.xml
revised version of mss.xml with keyword list
Created attachment 90050 [details]
highlight.mss
a test file
Hi. Your idea of a well-defined list of commands is fine. CartoCSS does not have real keywords (like in C++). There is only “true”, “false” and some mathematical operators. But it has a long, but limited and defined list of available properties. The mss.xml has been revised and the changes that you have requested have been done. Created attachment 90051 [details]
mss.xml
add support for numbers that start with a dot (“.5” as short-hand for “0.5”)
Created attachment 90052 [details]
highlight.mss
add support for numbers that start with a dot (“.5” as short-hand for “0.5”)
Git commit e87d51f431260dff77a30ed439cfafda92f64b95 by Christoph Cullmann. Committed on 11/07/2015 at 14:54. Pushed by cullmann into branch 'master'. add CartoCSS hl by Lukas Sommer renamed to carto-css.xml + added the test + removed the mime-type, else we might get clashs with normal CSS A +227 -0 autotests/input/syntax/carto-css/results/test.mss.reference.html A +213 -0 autotests/input/syntax/carto-css/test.mss A +405 -0 src/syntax/data/carto-css.xml http://commits.kde.org/ktexteditor/e87d51f431260dff77a30ed439cfafda92f64b95 |