From 431f9c14f35868c6825a3e7e858148d1f2bcddbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Fri, 14 Oct 2022 16:25:33 +0900 Subject: [PATCH] Support Cairo 0.10 syntax --- languages.toml | 2 +- runtime/queries/cairo/highlights.scm | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/languages.toml b/languages.toml index da7b10bd0..d35285338 100644 --- a/languages.toml +++ b/languages.toml @@ -1445,7 +1445,7 @@ indent = { tab-width = 4, unit = " " } [[grammar]] name = "cairo" -source = { git = "https://github.com/archseer/tree-sitter-cairo", rev = "5155c6eb40db6d437f4fa41b8bcd8890a1c91716" } +source = { git = "https://github.com/archseer/tree-sitter-cairo", rev = "e2f9b3d75f483fcfda03cf07e4176869357bfb52" } [[language]] name = "cpon" diff --git a/runtime/queries/cairo/highlights.scm b/runtime/queries/cairo/highlights.scm index 3a30d188e..c10ce5e07 100644 --- a/runtime/queries/cairo/highlights.scm +++ b/runtime/queries/cairo/highlights.scm @@ -36,7 +36,6 @@ [ "if" "else" - "end" "assert" "with" "with_attr" @@ -54,7 +53,6 @@ "const" "local" "struct" - "member" "alloc_locals" "tempvar" ] @keyword