From 10903b13d8f7cf6a8d7a804253aa9261aec86cc1 Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Wed, 24 Jan 2024 17:50:09 -0500 Subject: [PATCH] chore(luau): update highlights and parser --- lockfile.json | 2 +- queries/luau/highlights.scm | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/lockfile.json b/lockfile.json index fcc542404..fff691ba5 100644 --- a/lockfile.json +++ b/lockfile.json @@ -357,7 +357,7 @@ "revision": "31461ae9bd0866cb5117cfe5de71189854fd0f3e" }, "luau": { - "revision": "6953cd4fa5967c9aa3c769b4e4c7e69c904b9fa9" + "revision": "eaabb02c827e61f51a7dd13b8aba92924fc6dba0" }, "m68k": { "revision": "d097b123f19c6eaba2bf181c05420d88b9fc489d" diff --git a/queries/luau/highlights.scm b/queries/luau/highlights.scm index ec765f1b9..added002c 100644 --- a/queries/luau/highlights.scm +++ b/queries/luau/highlights.scm @@ -43,6 +43,12 @@ "end" ] @keyword.conditional) +(if_expression + [ + "if" + "then" + ] @keyword.conditional) + (elseif_statement [ "elseif" @@ -50,12 +56,21 @@ "end" ] @keyword.conditional) +(elseif_clause + [ + "elseif" + "then" + ] @keyword.conditional) + (else_statement [ "else" "end" ] @keyword.conditional) +(else_clause + "else" @keyword.conditional) + (for_statement [ "for" @@ -100,7 +115,6 @@ ">" "=" "&" - "~" "|" "?" "//"