Bug 282466

Summary: Support new CSS3 units
Product: [Applications] kate Reporter: Vincent Ricard <magic>
Component: syntaxAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: minor    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Adding CSS3 units

Description Vincent Ricard 2011-09-21 09:40:51 UTC
Version:           unspecified (using KDE 4.6.5) 
OS:                Linux

Hi,

I'm using kate to edit my CSS files, and i would be nice to support new CSS3 unit like 'rem'.

The specification can be found here (chpaters 'Distance Units: the ‘<length>’ type' and 'Other Units': http://www.w3.org/TR/css3-values/

Cheers,

PS: i can't send a patch, i didn't find the css.xml file in the new git repos. i didn't compile kde since a while.

Reproducible: Always

Steps to Reproduce:
enter this CSS source:

.field {
  margin: 1px;
  margin: 1rem;
}


Actual Results:  
The 'rem' unit is not highlighted as 'px' is.

Expected Results:  
Same highlighting for 'rem' and 'px' unit.
Comment 1 Dominik Haumann 2011-09-22 06:48:10 UTC
Build kate according to http://kate-editor.org/get-it/
css.xml is in part/syntax/data/css.xml
Comment 2 Vincent Ricard 2011-09-27 08:27:03 UTC
Created attachment 64004 [details]
Adding CSS3 units

Thanks for the link.

I added the following units: ch, rem, vw, vh, vm, turn.
Comment 3 Christoph Cullmann 2011-10-02 11:02:36 UTC
Git commit e50c493e1b8eef3eab683338b769d7c11cf1171b by Christoph Cullmann.
Committed on 02/10/2011 at 13:02.
Pushed by cullmann into branch 'master'.

Support new CSS3 units
patch by Vincent Ricard
BUG: 282466

M  +1    -1    part/syntax/data/css.xml

http://commits.kde.org/kate/e50c493e1b8eef3eab683338b769d7c11cf1171b
Comment 4 Christoph Cullmann 2011-10-02 11:03:20 UTC
Git commit 997641a214c03c9744a120759c890248a0eb58fc by Christoph Cullmann.
Committed on 02/10/2011 at 13:03.
Pushed by cullmann into branch 'master'.

inc version number of XML
BUG: 282466

M  +1    -1    part/syntax/data/css.xml

http://commits.kde.org/kate/997641a214c03c9744a120759c890248a0eb58fc