]> git.lizzy.rs Git - rust.git/commitdiff
move ctags.rust into src/etc
authorNiko Matsakis <niko@alum.mit.edu>
Wed, 12 Oct 2011 20:34:24 +0000 (13:34 -0700)
committerBrian Anderson <banderson@mozilla.com>
Wed, 12 Oct 2011 20:57:32 +0000 (13:57 -0700)
mk/ctags.mk
mk/ctags.rust [deleted file]
src/etc/ctags.rust [new file with mode: 0644]

index 8f4aa6bbd142eae3cec5940179019912e2ef7fb5..b47a6930b2a7439ace803a1882027747360ca6c8 100644 (file)
@@ -3,7 +3,7 @@
 # Requires Exuberant Ctags: http://ctags.sourceforge.net/index.html
 ######################################################################
 
-CTAGS_OPTS=--options=${CFG_SRC_DIR}/mk/ctags.rust -R ${CFG_SRC_DIR}/src
+CTAGS_OPTS=--options=${CFG_SRC_DIR}/src/etc/ctags.rust -R ${CFG_SRC_DIR}/src
 
 TAGS.emacs:
        ctags -e -f $@ ${CTAGS_OPTS}
diff --git a/mk/ctags.rust b/mk/ctags.rust
deleted file mode 100644 (file)
index 3f9bbca..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
---langdef=rust
---langmap=rust:.rs
---regex-rust=/[ \t]*fn[ \t]+([a-zA-Z0-9_]+)/\1/f,function/
---regex-rust=/[ \t]*type[ \t]+([a-zA-Z0-9_]+)/\1/T,types/
---regex-rust=/[ \t]*tag[ \t]+([a-zA-Z0-9_]+)/\1/T,types/
---regex-rust=/[ \t]*resource[ \t]+([a-zA-Z0-9_]+)/\1/T,types/
---regex-rust=/[ \t]*mod[ \t]+([a-zA-Z0-9_]+)/\1/m,modules/
diff --git a/src/etc/ctags.rust b/src/etc/ctags.rust
new file mode 100644 (file)
index 0000000..3f9bbca
--- /dev/null
@@ -0,0 +1,7 @@
+--langdef=rust
+--langmap=rust:.rs
+--regex-rust=/[ \t]*fn[ \t]+([a-zA-Z0-9_]+)/\1/f,function/
+--regex-rust=/[ \t]*type[ \t]+([a-zA-Z0-9_]+)/\1/T,types/
+--regex-rust=/[ \t]*tag[ \t]+([a-zA-Z0-9_]+)/\1/T,types/
+--regex-rust=/[ \t]*resource[ \t]+([a-zA-Z0-9_]+)/\1/T,types/
+--regex-rust=/[ \t]*mod[ \t]+([a-zA-Z0-9_]+)/\1/m,modules/