Skip to content

Commit

Permalink
Syntax: Recover if method's return type is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
ratijas committed Sep 10, 2023
1 parent 1ce0ac4 commit 2146233
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Support/QML.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ contexts:
qml-method-declaration-expect-return-type:
- match: ':'
scope: punctuation.separator.type.qml
set: property-type-member
set: expect-property-type-member
- include: else-pop

# END methods
Expand Down
5 changes: 5 additions & 0 deletions Support/tests/syntax_test_QML.qml
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,11 @@ WithMethods {
// ^ meta.function.js punctuation.separator.type.qml
// ^^^^ meta.function.js meta.type.qml
// ^^^^^^^^ meta.block.qml meta.function.js meta.block.js
// ^^^ keyword.declaration.js
function returns(): {let i;}
// ^^^^^^^^ keyword.declaration.function.js
// ^ meta.function.js punctuation.separator.type.qml
// ^^^^^^^^ meta.block.qml meta.function.js meta.block.js
// ^^^ keyword.declaration.js
}

Expand Down

0 comments on commit 2146233

Please sign in to comment.