Bug 321859 - Wrong QML highlight when a property has division and one of elements has a .
Summary: Wrong QML highlight when a property has division and one of elements has a .
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: syntax (show other bugs)
Version: 3.10.90
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 321728 322730 324206 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-07-02 14:08 UTC by Albert Astals Cid
Modified: 2013-08-29 10:51 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.11.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Albert Astals Cid 2013-07-02 14:08:03 UTC
If you look at the highlight of

Item {
    id: root
    width: 40
    height: root.width / 30
    objectName: "hola"
}

versus the highlight of 

Item {
    id: root
    width: 40
    height: width / 30
    objectName: "hola"
}

or


Item {
    id: root
    width: 40
    height: width / 30
    objectName: "hola"
}

Item {
    id: root
    width: 40
    height: root.width
    objectName: "hola"
}

you'll see that in the first case the 'objectName: "hola"' line is colored green and in the other two  is colored correctly (property in blue and text in red)
Comment 1 Dominik Haumann 2013-07-02 20:11:40 UTC
Milian, as author of qml.xml can you take care of this?
Comment 2 Milian Wolff 2013-07-18 19:02:10 UTC
Git commit 5959ddab8ec4a70fe434b40d8d9d786f40ed4b83 by Milian Wolff.
Committed on 18/07/2013 at 19:01.
Pushed by mwolff into branch 'master'.

Fix highlighting of devisions after object member access.

M  +2    -5    part/syntax/data/javascript.xml

http://commits.kde.org/kate/5959ddab8ec4a70fe434b40d8d9d786f40ed4b83
Comment 3 Milian Wolff 2013-07-20 11:05:18 UTC
*** Bug 322577 has been marked as a duplicate of this bug. ***
Comment 4 Milian Wolff 2013-07-20 11:05:45 UTC
*** Bug 321728 has been marked as a duplicate of this bug. ***
Comment 5 Milian Wolff 2013-07-23 14:28:07 UTC
*** Bug 322730 has been marked as a duplicate of this bug. ***
Comment 6 Albert Astals Cid 2013-08-09 09:58:33 UTC
Guys, this never made it to the 4.11 branch :'-(

Can someone backport it?
Comment 7 Dominik Haumann 2013-08-09 12:06:17 UTC
Git commit ef3f53233393870546b373016c0c8df9aaa6fa78 by Dominik Haumann, on behalf of Milian Wolff.
Committed on 18/07/2013 at 19:01.
Pushed by dhaumann into branch 'KDE/4.11'.

Fix highlighting of devisions after object member access.

M  +2    -5    part/syntax/data/javascript.xml

http://commits.kde.org/kate/ef3f53233393870546b373016c0c8df9aaa6fa78
Comment 8 Christoph Feck 2013-08-29 10:51:01 UTC
*** Bug 324206 has been marked as a duplicate of this bug. ***