एक्स्यूबरेंट सीटीएजी .ctags
फ़ाइल में टिप्पणियां रखने के लिए मैं किस चरित्र का उपयोग कर सकता हूं?एक एक्सबेरेंट सीटीएजी कॉन्फ़िगरेशन फ़ाइल में टिप्पणियां कैसे जोड़ें?
मैं स्पष्टीकरण के साथ टिप्पणियां जोड़ना चाहता हूं, और शायद कुछ regexps को अक्षम करने के लिए।
लेकिन मुझे कोई टिप्पणी चरित्र नहीं मिल रहा है जो ctags-exuberant स्वीकार करता है!
मैं चेतावनी बार आ रही है:
ctags: Warning: Ignoring non-option in /home/joey/.ctags
जो त्रुटि से बेहतर है, लेकिन अभी भी एक छोटे से परेशान।
मैं #
//
/* ... */
और ;
टिप्पणी के रूप में की कोशिश की है, लेकिन ctags उन सब को पार्स करने के लिए कोशिश करता है!
यहाँ कुछ टिप्पणियों के साथ एक उदाहरण फ़ाइल जो ctags शिकायत है के बारे में:
# Add some more rules for Javascript
--langmap=javascript:+.jpp
--regex-javascript=/^[ \t]*var ([a-zA-Z_$][0-9a-zA-Z_$]*).*$/\1/v,variable/
--regex-javascript=/^[ \t]*this\.([a-zA-Z_$][0-9a-zA-Z_$]*)[ \t]*=.*$/\1/e,export/
--regex-javascript=/^[ \t]*([a-zA-Z_$][0-9a-zA-Z_$]*):.*$/\1/p,property/
--regex-javascript=/^\<function\>[ \t]*([a-zA-Z_$][0-9a-zA-Z_$]*)/\1/f,function/
# Define tags for the Coffeescript language
--langdef=coffee
--langmap=coffee:.coffee
--regex-coffee=/^class @?([a-zA-Z_$][0-9a-zA-Z_$]*)(extends [a-zA-Z_$][0-9a-zA-Z_$]*)?$/\1/c,class/
--regex-coffee=/^[ \t]*(@|this\.)([a-zA-Z_$][0-9a-zA-Z_$]*).*$/\2/e,export/
--regex-coffee=/^[ \t]*@?([a-zA-Z_$][0-9a-zA-Z_$]*):.*[-=]>.*$/\1/f,function/
--regex-coffee=/^[ \t]*([a-zA-Z_$][0-9a-zA-Z_$]*)[ \t]+=.*[-=]>.*$/\1/f,function/
--regex-coffee=/^[ \t]*([a-zA-Z_$][0-9a-zA-Z_$]*)[ \t]+=[^->\n]*$/\1/v,variable/
--regex-coffee=/^[ \t]*@?([a-zA-Z_$][0-9a-zA-Z_$]*):.*$/\1/p,property/
+1। हैकिश समाधान बदसूरत है हालांकि, मैं चेतावनियों के साथ रहना चाहता हूं। –
एफडब्ल्यूआईडब्ल्यू: यह एक ज्ञात मुद्दा है: http://sourceforge.net/p/ctags/bugs/352/ – jwfearn
क्या हम विकास टीम पर टिप्पणियों के समर्थन का सुझाव दे सकते हैं? – nowox