Skip to content

Commit 3f6cdb1

Browse files
committed
Syntax: Add some missing support constants
1 parent 9255bcf commit 3f6cdb1

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

Support/QML.sublime-syntax

+30
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,17 @@ contexts:
10311031
pop: true
10321032

10331033
support-variable-qtqml:
1034+
- match: Component{{identifier_break}}
1035+
scope: support.class.builtin.qml
1036+
set:
1037+
- match: '{{dot_accessor}}'
1038+
scope: punctuation.accessor.js
1039+
set:
1040+
- include: support-property-qtqml-component
1041+
- include: object-property
1042+
- include: else-pop
1043+
- include: else-pop
1044+
10341045
- match: Binding{{identifier_break}}
10351046
scope: support.class.builtin.qml
10361047
set:
@@ -1059,6 +1070,9 @@ contexts:
10591070
scope: support.function.qml
10601071
pop: true
10611072

1073+
support-property-qtqml-component:
1074+
- include: support-property-qtquick-parts-status
1075+
10621076
support-property-qtqml-binding:
10631077
- match: (?:RestoreNone|RestoreBinding|RestoreValue|RestoreBindingOrValue){{identifier_break}}
10641078
scope: support.constant.builtin.qml
@@ -1533,6 +1547,17 @@ contexts:
15331547
- include: else-pop
15341548
- include: else-pop
15351549

1550+
- match: PointerHandler{{identifier_break}}
1551+
scope: support.class.builtin.qml
1552+
set:
1553+
- match: '{{dot_accessor}}'
1554+
scope: punctuation.accessor.js
1555+
set:
1556+
- include: support-property-qtquick-pointerhandler
1557+
- include: object-property
1558+
- include: else-pop
1559+
- include: else-pop
1560+
15361561
- match: Rotation(?:Animation|Animator){{identifier_break}}
15371562
scope: support.class.builtin.qml
15381563
set:
@@ -1892,6 +1917,11 @@ contexts:
18921917
scope: support.constant.builtin.qml
18931918
pop: true
18941919
1920+
support-property-qtquick-pointerhandler:
1921+
- match: (?:TakeOverForbidden|CanTakeOverFrom(?:HandlersOf(?:SameType|DifferentType)|Anything)|ApprovesTakeOverBy(?:HandlersOf(?:SameType|DifferentType)|Items|Anything)|ApprovesCancellation){{identifier_break}}
1922+
scope: support.constant.builtin.qml
1923+
pop: true
1924+
18951925
support-property-qtquick-rotationanimation:
18961926
- match: (?:Numerical|Shortest|Clockwise|Counterclockwise){{identifier_break}}
18971927
scope: support.constant.builtin.qml

Support/tests/syntax_test_QML.qml

+4
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,8 @@ Expressions {
700700
// ^^^^^^^^^^^^^^ support.class.dom.js
701701
}
702702
function support_qtqml() {
703+
Component.Ready
704+
// ^^^^^ support.constant.builtin.qml
703705
Binding.RestoreBinding
704706
// ^^^^^^^^^^^^^^ support.constant.builtin.qml
705707
Binding.RestoreBindingOr
@@ -794,6 +796,8 @@ Expressions {
794796
// ^^^^^^^^^ support.constant.builtin.qml
795797
PointerDevice.Pen
796798
// ^^^ support.constant.builtin.qml
799+
PointerHandler.ApprovesTakeOverByHandlersOfSameType
800+
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ support.constant.builtin.qml
797801
RotationAnimation.Shortest, RotationAnimator.Numerical
798802
// ^^^^^^^^ support.constant.builtin.qml
799803
// ^^^^^^^^^ support.constant.builtin.qml

0 commit comments

Comments
 (0)