Comments (7)
I can't reproduce it. This looks 100% correct, doesn't it?
from coffeetags.
I'm not sure whther it is correct or not because I don't know vim.
What i know well is command output.
As far as reading your screenshot, move
is listed only once at Animal
. Is it o.k. for you?
I expect move
are enumerated at Animal
, Snake
, and Horse
.
from coffeetags.
This new behavior was introduced in 8211acf
Author: hikerpig <[email protected]>
Date: Tue Apr 7 10:35:42 2015 +0800
when found a token, walk through the tree find identical one
I tried a small patch:
iff --git a/lib/CoffeeTags/parser.rb b/lib/CoffeeTags/parser.rb
index 127682a..3019700 100644
--- a/lib/CoffeeTags/parser.rb
+++ b/lib/CoffeeTags/parser.rb
@@ -191,6 +191,7 @@ module Coffeetags
# should find token through the tree first
token_name = token[1]
existing_token = @tree.find {|o| o[:name] == token_name}
+ existing_token = nil
if existing_token
o = existing_token
else
With this patch I got:
!_TAG_FILE_FORMAT 2 /extended format/
!_TAG_FILE_SORTED 0 /0=unsorted, 1=sorted, 2=foldcase/
!_TAG_PROGRAM_AUTHOR Łukasz Korecki /[email protected]/
!_TAG_PROGRAM_NAME CoffeeTags //
!_TAG_PROGRAM_URL https://github.com/lukaszkorecki/CoffeeTags /GitHub repository/
!_TAG_PROGRAM_VERSION 0.6.0 //
Animal input.coffee /^class Animal$/;" c line:3 language:coffee
Horse input.coffee /^class Horse extends Animal$/;" c line:14 language:coffee
Snake input.coffee /^class Snake extends Animal$/;" c line:9 language:coffee
constructor input.coffee /^ constructor: (@name) ->$/;" p line:4 language:coffee object:Animal
move input.coffee /^ move: (meters) ->$/;" p line:6 language:coffee object:Animal
move input.coffee /^ move: ->$/;" p line:10 language:coffee object:Snake
move input.coffee /^ move: ->$/;" p line:15 language:coffee object:Horse
This is what I want.
from coffeetags.
It seems that only tagging the initial move
is natural for CoffeeScript users.
from coffeetags.
@masatake would a config option work for your case? I can see both ways of generating tags make sense (at the cost of generating bigger tags file)
from coffeetags.
Hmm.... I'm not user of neither coffeescript nor coffeetags. I'm running coffeetags as a backend of Universal-ctags; a test case in Universal-ctags detects the issue I reported here. So I don't have string option about the option.
As far as reading the comment from the real user (@alohadings), the behaviour of the current version is good enough.
from coffeetags.
@masatake cool, let's leave this closed then
from coffeetags.
Related Issues (20)
- undefined method `each_with_index' error HOT 1
- Standalone script
- support for exported classes using class @Foo HOT 4
- Multiline comment (###) causes coffeetag to malfunction if it starts and ends in the same line. HOT 1
- Vim plugin broken on windows HOT 4
- Code is fugly in most areas
- License missing from gemspec HOT 3
- litcoffee compatibility HOT 2
- Does CoffeeTags support Windows platform ? HOT 4
- add support for ember.js classess HOT 4
- Add support for ReactJS for classes HOT 4
- ctrlp.vim or unite.vim? HOT 3
- Emacs support HOT 9
- Include class references in generated tags HOT 1
- Adds a lot of tags that it shouldn't add HOT 5
- invalid byte sequence in US-ASCII HOT 3
- --vim-conf documented but not supported
- class methods are not identified correctly
- Link to demo does not work HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coffeetags.