From 754429a42d753728843bdd1005deb6c19a12ae60 Mon Sep 17 00:00:00 2001 From: Gary Miller Date: Wed, 3 Apr 2024 15:42:59 +1100 Subject: [PATCH] fixes to grammar, highlight changes based on PR and grammar fixes --- languages.toml | 2 +- runtime/queries/adl/highlights.scm | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/languages.toml b/languages.toml index f40547d2ec53..4e2be820c27d 100644 --- a/languages.toml +++ b/languages.toml @@ -3477,4 +3477,4 @@ indent = { tab-width = 2, unit = " " } [[grammar]] name = "adl" -source = { git = "https://github.com/adl-lang/tree-sitter-adl", rev = "0399ed80b9fb88865a02259e7c11dc98de1d5ee5" } +source = { git = "https://github.com/adl-lang/tree-sitter-adl", rev = "2787d04beadfbe154d3f2da6e98dc45a1b134bbf" } diff --git a/runtime/queries/adl/highlights.scm b/runtime/queries/adl/highlights.scm index 634244380323..88e00ad7ff6f 100644 --- a/runtime/queries/adl/highlights.scm +++ b/runtime/queries/adl/highlights.scm @@ -9,19 +9,19 @@ "annotation" ] @keyword -(scoped_name) @variable +(adl (scoped_name)) @namespace (comment) @comment -(doc_comment) @info +(doc_comment) @comment.block.documentation (name) @type -(fname) @property +(fname) @variable.other.member (type_expr (scoped_name) @type) -(type_expr (scoped_name) @generic (type_param) @type.parameter) +(type_expr_params (param (scoped_name) @type.parameter)) ; json -(key) @string.special.key +(key) @string.special (string) @string