Skip to content

Commit

Permalink
Hack to make sure that imports don't define tags
Browse files Browse the repository at this point in the history
Currently, `import Html` will make vim jump to the import statement
instead of the Html module. This hack will make sure that the tag
generated in the import statement doesn't get jumped to.
  • Loading branch information
naddeoa committed Nov 7, 2016
1 parent 8fbe71d commit 86b859b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftplugin/elm/ctags/elm.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
--regex-Elm=/^type alias *([A-Z][a-zA-Z0-9_-]*)/\1/t,type,Declared types/
--regex-Elm=/[ \r\n\t][\|=][ \r\n\t]*([A-Z][a-zA-Z0-9_-]*)(.*)/\1/C,constructor,constructors created by types/
--regex-Elm=/^module *([A-Z][.a-zA-Z0-9_-]*)/\1/m,module,module definitions/
--regex-Elm=/^import *([A-Z][.a-zA-Z0-9_-]*)(.*as *([A-Z][.a-zA-Z0-9_-]*))?/\1/i,import,imported modules/
--regex-Elm=/^import *([A-Z][.a-zA-Z0-9_-]*)(.*as *([A-Z][.a-zA-Z0-9_-]*))?/\1 ()/i,import,imported modules/

0 comments on commit 86b859b

Please sign in to comment.