diff options
| -rw-r--r-- | queries/qmljs/folds.scm | 1 | ||||
| -rw-r--r-- | queries/qmljs/highlights.scm | 21 |
2 files changed, 20 insertions, 2 deletions
diff --git a/queries/qmljs/folds.scm b/queries/qmljs/folds.scm index 1c579cc98..b37d988a6 100644 --- a/queries/qmljs/folds.scm +++ b/queries/qmljs/folds.scm @@ -3,4 +3,5 @@ (function_declaration) (statement_block) (if_statement) + (comment) ] @fold diff --git a/queries/qmljs/highlights.scm b/queries/qmljs/highlights.scm index cfaeeedaa..f3b5524b3 100644 --- a/queries/qmljs/highlights.scm +++ b/queries/qmljs/highlights.scm @@ -1,5 +1,7 @@ ; inherits: ecma +"pragma" @include + ;;; Annotations (ui_annotation @@ -56,14 +58,28 @@ (ui_object_definition type_name: (nested_identifier) @type) - -;;; js +;;; namespace +(nested_identifier + (nested_identifier + (identifier) @namespace) +) ; Properties ;----------- (property_identifier) @property +;;; function +(call_expression + function: (member_expression + object: (identifier) @variable + property:(property_identifier) @function + ) +) +;;; js + + + ; Literals ;--------- @@ -91,6 +107,7 @@ ;;; keywrod in qml [ + "on" "required" "property" "signal" |
