From 17d7cf6f4b4057a949e86df6fbc2e271ba788823 Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Sat, 18 Feb 2023 04:36:15 -0500 Subject: feat: add @text.uri where applicable to thrift and gosum --- queries/gosum/highlights.scm | 10 ++++------ queries/thrift/highlights.scm | 7 +++---- 2 files changed, 7 insertions(+), 10 deletions(-) (limited to 'queries') diff --git a/queries/gosum/highlights.scm b/queries/gosum/highlights.scm index d19dde45a..bb65bd71f 100644 --- a/queries/gosum/highlights.scm +++ b/queries/gosum/highlights.scm @@ -7,14 +7,12 @@ "+incompatible" ] @keyword -[ - (module_path) - (hash) -] @string -(base_version) @string.special +(module_path) @string @text.uri +(module_version) @string.special -(hash_version) @symbol +(hash_version) @attribute +(hash) @symbol [ (number) diff --git a/queries/thrift/highlights.scm b/queries/thrift/highlights.scm index 9d25b8357..e544941c9 100644 --- a/queries/thrift/highlights.scm +++ b/queries/thrift/highlights.scm @@ -4,15 +4,15 @@ ; Includes - "include" [ + "include" "cpp_include" ] @include (include_path) @string (package_path) @string -; Types +; Builtins (primitive) @type.builtin @@ -141,7 +141,7 @@ (escape_sequence) @string.escape -(uri) @string.special +(uri (string_fragment) @text.uri) @string.special (number) @number @@ -182,7 +182,6 @@ [ ";" "," - (list_separator) ] @punctuation.delimiter ; Errors -- cgit v1.2.3-70-g09d2