i have some code to generate ctags tags files for clojure code bases (including dependencies) -- i've used the results somewhat successfully with the ctagsx extension for vscode. i noticed that the detection of a "word" is not quite aligned with what would be convenient for looking things up via F12. that is, for things such as "identical?" or "read+string", if the cursor is between two letters, some of the characters (e.g. ? or +) are not being considered part of the "word", so lookup fails. i can work around this by manual selection so the lookup succeeds, but thought it might be a bit nicer if that wasn't necessary. does anyone know how i might easily tweak what's considered a "word" for clojure files in vscode? i'd also like to include the "/" character because the tags files the code generates also account for qualified names (e.g. m/repl is indexed too) in the code base. i'm not using any particular vscode extension that has clojure support and would for this sort of thing prefer not to depend on any of the fine clojure extensions out there, so was hoping for some sort of user-configurable setting, possibly by creating or modifying a file somewhere under ~/.vscode(-oss)/. thanks for any thoughts or assistance 🙂
I'm not sure how user configurable it is, but I think that what you are looking for is the wordPattern
in the look language configuration. See this file for a pattern that works for Clojure code: https://github.com/BetterThanTomorrow/calva/blob/master/src/calva-fmt/src/extension.ts
@pez thanks for the hints! i'll take a look.