diff options
| author | Amaan Qureshi <amaanq12@gmail.com> | 2023-02-18 04:36:15 -0500 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2023-02-18 02:07:28 -0800 |
| commit | 17d7cf6f4b4057a949e86df6fbc2e271ba788823 (patch) | |
| tree | 2f39956371f22666e542b5e8d47d75e9a564be5a /queries | |
| parent | Update parsers: fortran, git_rebase, sql (diff) | |
| download | nvim-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
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/gosum/highlights.scm | 10 | ||||
| -rw-r--r-- | queries/thrift/highlights.scm | 7 |
2 files changed, 7 insertions, 10 deletions
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 |
