diff --git a/lockfile.json b/lockfile.json index a0c8f28cd..6d931718b 100644 --- a/lockfile.json +++ b/lockfile.json @@ -675,7 +675,7 @@ "revision": "cda48a5e890b30619da5bc3ff55be1b1d3d08c8d" }, "tsx": { - "revision": "d847898fec3fe596798c9fda55cb8c05a799001a" + "revision": "7db8390a16a2cae317f4f4423a7b642cd4cad8c9" }, "turtle": { "revision": "085437f5cb117703b7f520dd92161140a684f092" @@ -684,7 +684,7 @@ "revision": "eaf80e6af969e25993576477a9dbdba3e48c1305" }, "typescript": { - "revision": "d847898fec3fe596798c9fda55cb8c05a799001a" + "revision": "7db8390a16a2cae317f4f4423a7b642cd4cad8c9" }, "typoscript": { "revision": "43b221c0b76e77244efdaa9963e402a17c930fbc" diff --git a/queries/typescript/highlights.scm b/queries/typescript/highlights.scm index 3cc9b7f13..ce1fa886a 100644 --- a/queries/typescript/highlights.scm +++ b/queries/typescript/highlights.scm @@ -17,6 +17,7 @@ "asserts" "infer" "is" + "using" ] @keyword [ @@ -95,6 +96,9 @@ (omitting_type_annotation "-?:" @punctuation.delimiter) +(adding_type_annotation + "+?:" @punctuation.delimiter) + (opting_type_annotation "?:" @punctuation.delimiter)