Skip to content

Ruby syntax: Wrong recognition of symbols at the place of calling a class methods #4294

@Sega100500

Description

@Sega100500

Description of the issue

Wrong recognition of symbols at the place of calling a class methods.
Class methods may be call via:
ClassName::method
but it recogmized as symbol :method

Which language seems to have the issue?

Ruby

I'm using highlight

Expected behavior

ClassName::method must be recognized as call of method

Patch

Just modify regexp for symbol from :(?!\\s) to (?<!:):(?!\\s)

(I changed these regexp in my local version of the script highlight - everything works fine!)

Yet another wish

Please bring the syntax analysis in line with the changes in the latest version Ruby 3.4

Many thanks for your wonderful and useful script (tool) !

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions