mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 15:30:01 -04:00
feat: add @text.uri where applicable to thrift and gosum
This commit is contained in:
parent
79ceb393d6
commit
17d7cf6f4b
3 changed files with 9 additions and 12 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue