mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -04:00
fix(inko): highlighting of numeric call names (#6566)
Inko allows for syntax such as `some_value.42.to_string`, where `42` is
a method name. Similar to other languages that allow this (e.g. Rust),
these numeric names should be highlighted as numbers instead of
identifiers.
To fix this, the query to highlight call names is adjusted to only
highlight "name" and "constant" nodes as the function group, ensuring
the remaining possible node ("integer") continues to use the same group
as regular numbers.
This commit is contained in:
parent
440f177277
commit
4ae2b452e9
1 changed files with 4 additions and 1 deletions
|
|
@ -190,6 +190,9 @@
|
|||
name: _ @variable.parameter)
|
||||
|
||||
(call
|
||||
name: _ @function)
|
||||
name: [
|
||||
(name)
|
||||
(constant)
|
||||
] @function)
|
||||
|
||||
(field) @variable.member
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue