Skip to content

Commit

Permalink
Syntax: Update QML syntax definiton
Browse files Browse the repository at this point in the history
Update grammar and language configuration file
to support more cases like,

* attached signal handler
* group notation of grouped properties
* type annotation on function parameters and return value
* inline component syntax
* pragma statement other than Signleton
* QML type with prefix from qualified import (e.g. T.Button {})
* JS template string
* addtional auto closing pairs. etc

Task-number: VSCODEEXT-13
Change-Id: If7f05f9a436a55e5002e0ccfc6bd7bf06614efbc
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
  • Loading branch information
benchoq committed Jul 15, 2024
1 parent 3c139d8 commit 0d3d7fc
Show file tree
Hide file tree
Showing 4 changed files with 424 additions and 320 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@
{
"language": "qml",
"scopeName": "source.qml",
"path": "./res/lang/qml/qml.qmlproject.tmLanguage"
"path": "./res/lang/qml/qml.qmlproject.tmLanguage.json"
},
{
"language": "qmldir",
Expand Down
10 changes: 8 additions & 2 deletions res/lang/qml/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,19 @@
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
["'", "'"],
["`", "`"],
["/*", "*/"],
["/**", "*/"],
["/*!", "*/"]
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["<", ">"],
["\"", "\""],
["'", "'"]
["'", "'"],
["`", "`"]
]
}
317 changes: 0 additions & 317 deletions res/lang/qml/qml.qmlproject.tmLanguage

This file was deleted.

Loading

0 comments on commit 0d3d7fc

Please sign in to comment.