Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-116158

qmldom cannot parse unicode chars

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 6.6
    • QML: Tooling
    • None

    Description

          Item {        
            function test() {
                  var 🐈patron🐈 = 1;
                  let 🐈kivrik🐈 = 1;
                  const 🐈yumyum🐈 = 1;
              }
          } 

      qmldom errors out when if there is unicode chars in the code, cannot create dom in this case.

      qt.qmldom: Parsed invalid file /Users/semihyavuz/tmp/connections.qml/Users/semihyavuz/tmp/connections.qml:3:26: [Dom][QmlFile][Parsing] Error: Expected token `;' for .currentItem
      /Users/semihyavuz/tmp/connections.qml:3:17: [Dom][QmlFile][Parsing] Error: Unexpected token `' for .currentItem
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            semih.yavuz Semih Yavuz
            semih.yavuz Semih Yavuz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes