Skip to content

Split .ctags file into per-language files

Warren Gifford requested to merge split-ctags into master

Created by: chrismwendt

Cherry-picked from https://github.com/sourcegraph/sourcegraph/pull/4971

Currently, additional-languages.ctags defines multiple languages. Splitting them into multiple files as each file defines one language simplifies maintenance tasks. Universal-ctags supports loading multiple .ctags files under .ctags.d directory.

An example: the latest Universal-ctags supports typescript already. When introducing the latest one, you may want to remove locally defined regex based typescript parser to avoid confliction. With this change, you have to just remove typescript.ctags instead of remove lines from additional-languages.ctags for the purpose.

Test plan: CI

Closes https://github.com/sourcegraph/sourcegraph/pull/4971

Merge request reports

Loading