aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmaan Qureshi <amaanq12@gmail.com>2023-02-18 04:36:15 -0500
committerStephan Seitz <stephan.seitz@fau.de>2023-02-18 02:07:28 -0800
commit17d7cf6f4b4057a949e86df6fbc2e271ba788823 (patch)
tree2f39956371f22666e542b5e8d47d75e9a564be5a
parentUpdate parsers: fortran, git_rebase, sql (diff)
downloadnvim-treesitter-17d7cf6f4b4057a949e86df6fbc2e271ba788823.tar
nvim-treesitter-17d7cf6f4b4057a949e86df6fbc2e271ba788823.tar.gz
nvim-treesitter-17d7cf6f4b4057a949e86df6fbc2e271ba788823.tar.bz2
nvim-treesitter-17d7cf6f4b4057a949e86df6fbc2e271ba788823.tar.lz
nvim-treesitter-17d7cf6f4b4057a949e86df6fbc2e271ba788823.tar.xz
nvim-treesitter-17d7cf6f4b4057a949e86df6fbc2e271ba788823.tar.zst
nvim-treesitter-17d7cf6f4b4057a949e86df6fbc2e271ba788823.zip
feat: add @text.uri where applicable to thrift and gosum
-rw-r--r--lockfile.json4
-rw-r--r--queries/gosum/highlights.scm10
-rw-r--r--queries/thrift/highlights.scm7
3 files changed, 9 insertions, 12 deletions
diff --git a/lockfile.json b/lockfile.json
index 39cba428b..3665869cf 100644
--- a/lockfile.json
+++ b/lockfile.json
@@ -159,7 +159,7 @@
"revision": "4a65743dbc2bb3094114dd2b43da03c820aa5234"
},
"gosum": {
- "revision": "68974b63c19dc6e27214a5c76b6e26c0c40fe5b7"
+ "revision": "bd0ec1fe9d68a5d4713d907417a43d489fa1b62a"
},
"gowork": {
"revision": "949a8a470559543857a62102c84700d291fc984c"
@@ -417,7 +417,7 @@
"revision": "0ff887f2a60a147452d52db060de6b42f42f1441"
},
"thrift": {
- "revision": "d1f350b19dd70ccdbd6d565dbea4879e4cef03da"
+ "revision": "c5a94547f01eb51b26446f9b94ee8644fa791223"
},
"tiger": {
"revision": "a233ebe360a73a92c50978e5c4e9e471bc59ff42"
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