mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Query: highlight numbers
This commit is contained in:
parent
d06ab28766
commit
ef85abba7f
1 changed files with 3 additions and 0 deletions
|
|
@ -23,5 +23,8 @@
|
|||
"@" @punctuation.special
|
||||
"_" @constant
|
||||
|
||||
((parameters (identifier) @number)
|
||||
(#match? @number "^[-+]?[0-9]+(.[0-9]+)?$"))
|
||||
|
||||
((program . (comment) @include)
|
||||
(#match? @include "^;\ +inherits\ *:"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue