Skip to content

Improve handling of case insensitive languages #4223

Open
@RaoulHC

Description

@RaoulHC

Fortran is a case insensitive language, and that can make searching for definitions and references in opengrok less useful. Ideally codebases would be consistent, but unfortunately that's not necessarily the case.
For example, a function may be defined as MyFunction but called as Myfunction and if you click on it in opengrok to search for the definition, you'll get no results. Similar case for symbols, where searching will only encounter uses with the exact same case, missing lots of usages.

I'm trying to improve ctags behaviour such that it stores definitions as lowercase (probably gated behind a flag to avoid breaking other consumers, see universal-ctags/ctags#3668), but the Fortran symbol tokenizer here probably wants to store symbols as lowercase. This is both so you can click on a symbol and actually find the definition, and also so you can search symbols and get results for all usages. We probably also want make the definition and reference search queries lowercase for Fortran too, though I'm not sure how feasible that is. If I'm given some pointers in the right direction I can have a go at implementing it myself.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions