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:
Yorick Peterse 2024-05-03 22:06:54 +02:00 committed by GitHub
parent 440f177277
commit 4ae2b452e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -190,6 +190,9 @@
name: _ @variable.parameter)
(call
name: _ @function)
name: [
(name)
(constant)
] @function)
(field) @variable.member