Skip to content

This code is interpreted as a string/char when adding space for some reason. #204

@sol-vin

Description

@sol-vin

Describe the bug
For some reason the following code creates a visual bug with the highlighting.

To Reproduce
Steps to reproduce the behavior:

  1. Type ty = (tile.index/width).to_i * tile_height
  2. Add a space like ty = (tile.index /width).to_i * tile_height
  3. Highlighting is broken

Expected behavior
Highlighting should not break.

Piece of Code
A piece of code to reproduce the problem

Screenshots
Video:
https://github.com/user-attachments/assets/2bd8d707-9ba1-4198-aa0a-c96a38fd885d

Desktop (please complete the following information):

  • OS: Windows
  • Crystal version: 1.13.2
  • This plugin version: v0.9.6

Additional context
None, other than changing the method name to anything other than index fixes it?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions