mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 05:50:04 -04:00
go: add builtin types
This commit is contained in:
parent
c236b2db9b
commit
b818ace315
1 changed files with 6 additions and 0 deletions
|
|
@ -103,6 +103,12 @@
|
|||
"var" @keyword
|
||||
|
||||
|
||||
;; Builtin types
|
||||
|
||||
((type_identifier) @type.builtin
|
||||
(#match? @type.builtin "^(bool|byte|complex128|complex64|error|float32|float64|int|int16|int32|int64|int8|rune|string|uint|uint16|uint32|uint64|uint8|uintptr)$"))
|
||||
|
||||
|
||||
;; Builtin functions
|
||||
|
||||
((identifier) @function.builtin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue