Skip to content

Increase ctags pattern limit

Warren Gifford requested to merge ctags-pattern-limit into master

Created by: efritz

This fixes the issue in https://github.com/sourcegraph/sourcegraph/issues/7668.

universal-ctags limits the size of the pattern field (see https://github.com/universal-ctags/ctags/issues/163) which we use to determine the character position within a matching line for symbol searches (via string subset match).

The current limit causes highlighting to fail for symbols that occur at or after the 96th character on the matching line. This PR increases that limit from 96 to 250 (by default), but can be raised or lowered via an envvar.

Merge request reports

Loading