Commit graph

3 commits

Author SHA1 Message Date
Yorick Peterse
9e1cda4e71 fix(inko): indent call nodes
This ensures that when you add a new call line in the middle of a call
chain, the line is indented like so:

    foo
      .bar
      .new_line_here
      .baz

Instead of it being indented like so:

    foo
      .bar
    .new_line_here
      .baz
2024-05-09 00:33:22 -04:00
Yorick Peterse
4ae2b452e9
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.
2024-05-03 13:06:54 -07:00
Yorick Peterse
7441b82fe5 feat(inko): add support for Inko 2024-05-03 11:32:15 +02:00