Add ctags
support for attr_
definitions
This change adds `ctags` support for `attr_{reader,writer,accessor)` in Ruby files.
This commit is contained in:
parent
31b6ad4f3f
commit
d98d06a905
1 changed files with 2 additions and 0 deletions
2
ctags
Normal file
2
ctags
Normal file
|
@ -0,0 +1,2 @@
|
|||
--regex-ruby=/(^|[:;])[ \t]*([A-Z][[:alnum:]_]+) *=/\2/c,class,constant/
|
||||
--regex-ruby=/^[ \t]*attr_(reader|writer|accessor) (:[a-z0-9_]+, )*:([a-z0-9_]+)/\3/A,attr/
|
Loading…
Add table
Reference in a new issue