Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.8
-
None
-
-
5598bd165 (dev), 33d26c033 (6.9), babb415c4 (6.8)
Description
This will confuse the IndentingLineWriter because 'from' is recognized as keyword, while being used as the name of properties of the quick controls.
A { b: Slider { from: c } d {} }
Our only solution was to disable the recognition of the 'from' keyword because we used the property but we don't use the 'from' syntax for imports.
qqmljskeywords_p.h
//this interferes with properties named 'from' // else if (s[0].unicode() == 'f') { // if (s[1].unicode() == 'r') { // if (s[2].unicode() == 'o') { // if (s[3].unicode() == 'm') { // return int(Lexer::T_FROM); // } // } // } // }
Attachments
For Gerrit Dashboard: QTBUG-132065 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
621234,11 | qmlformat: Accept `from` as an identifier | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
622190,2 | qmlformat: Accept `from` as an identifier | 6.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
622435,3 | qmlformat: Accept `from` as an identifier | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |