Configure basic ctags for javascript projects
There are, apparently, more things we need to configure. @BlakeWilliams shared http://dance.computer.dance/posts/2015/04/using-ctags-on-modern-javascript.html which outlines a bunch more things that don't work out of the box. For example, ES2015 classes and their methods are not properly found, even with this PR. There's more work to do here.
This commit is contained in:
parent
9793e833cf
commit
40ccf0f3f8
1 changed files with 8 additions and 0 deletions
8
ctags
8
ctags
|
@ -13,3 +13,11 @@
|
|||
--regex-Elixir=/^[ \t]*defprotocol[ \t]+([A-Z][a-zA-Z0-9_]*\.)*([A-Z][a-zA-Z0-9_?!]*)/\2/p,protocols,protocols (defprotocol...)/
|
||||
--regex-Elixir=/^[ \t]*Record\.defrecord[ \t]+:([a-zA-Z0-9_]+)/\1/r,records,records (defrecord...)/
|
||||
--regex-Elixir=/^[ \t]*test[ \t]+\"([a-z_][a-zA-Z0-9_?! ]*)\"*/\1/t,tests,tests (test ...)/
|
||||
--exclude=bower_components
|
||||
--exclude=node_modules
|
||||
--exclude=vendor
|
||||
--languages=-javascript
|
||||
--langdef=js
|
||||
--langmap=js:.js
|
||||
--langmap=js:+.jsx
|
||||
--regex-js=/[ \t.]([A-Z][A-Z0-9._$]+)[ \t]*[=:][ \t]*([0-9"'\[\{]|null)/\1/n,constant/
|
||||
|
|
Loading…
Add table
Reference in a new issue