This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# put the following under ~/.ctags.d/options.ctags, don't include this line into ~/.ctags.d/options.ctags | |
--langdef=Rext{base=R} | |
--kinddef-Rext=v,variable,a variable with named attr | |
--kinddef-Rext=n,nameattr,the named attributes of a variable | |
--_roledef-Rext.v=nondefinition,this is not a definition | |
--regex-Rext=/([[:alnum:]_.]+)\$[[:alnum:]_.]+\s*(<-|=)[^=]/\1/v/{scope=push}{_role=nondefinition} | |
--regex-Rext=/[[:alnum:]_.]+\$([[:alnum:]_.]+)\s*(<-|=)[^=]/\1/n/{scope=ref} | |
--regex-Rext=/[[:alnum:]_.]+\$[[:alnum:]_.]+\s*(<-|=)[^=].*///{scope=pop}{placeholder} |