aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Odding <peter@peterodding.com>2011-10-01 21:37:18 +0200
committerPeter Odding <peter@peterodding.com>2011-10-01 21:37:18 +0200
commit3d7e09100e74d84a94996447e79594d3911a4c9a (patch)
treeaea2fb45792b5827cd198483974750a740130d77
parentbf32f32baa85c91f18776ba26c898e3f95dab4ad (diff)
downloadvim-easytags-3d7e09100e74d84a94996447e79594d3911a4c9a.tar.gz
Bump version + minor updates for Awk, Shell & TCL support
-rw-r--r--README.md13
-rw-r--r--autoload/xolox/easytags.vim10
-rw-r--r--doc/easytags.txt30
3 files changed, 32 insertions, 21 deletions
diff --git a/README.md b/README.md
index bdbfb7a..036646c 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@ There's just one problem: You have to manually keep your tags files up-to-date a
Unzip the most recent [ZIP archive] [download] file inside your Vim profile directory (usually this is `~/.vim` on UNIX and `%USERPROFILE%\vimfiles` on Windows), restart Vim and execute the command `:helptags ~/.vim/doc` (use `:helptags ~\vimfiles\doc` instead on Windows). Now try it out: Edit any file type supported by Exuberant Ctags and within ten seconds the plug-in should create/update your tags file (`~/.vimtags` on UNIX, `~/_vimtags` on Windows) with the tags defined in the file you just edited! This means that whatever file you're editing in Vim (as long as it's on the local file system), tags will always be available by the time you need them!
-Additionally if the file you just opened is a C, C++, Objective-C, Java, Lua, Python, PHP, Ruby or Vim source file you should also notice that the function and type names defined in the file have been syntax highlighted.
+Additionally if the file you just opened is an AWK, C#, C, C++, Objective-C, Java, Lua, PHP, Python, Ruby, Shell, Tcl or Vim source file you should also notice that the function and type names defined in the file have been syntax highlighted.
The `easytags.vim` plug-in is intended to work automatically once it's installed, but if you want to change how it works there are several options you can change and commands you can execute from your own mappings and/or automatic commands. These are all documented below.
@@ -175,14 +175,17 @@ This option defines the pathname of the script that contains the Python implemen
The easytags plug-in defines new highlighting groups for dynamically highlighted tags. These groups are linked to Vim's default groups so that they're colored out of the box, but if you want you can change the styles. To do so use a `highlight` command such as the ones given a few paragraphs back. Of course you'll need to change the group name. Here are the group names used by the easytags plug-in:
+ * **AWK**: `awkFunctionTag`
+ * **C#:** `csClassOrStructTag`, `csMethodTag`
+ * **C, C++, Objective C:** `cTypeTag`, `cEnumTag`, `cPreProcTag`, `cFunctionTag`, `cMemberTag`
+ * **Java:** `javaClassTag`, `javaMethodTag`
* **Lua:** `luaFuncTag`
- * **C:** `cTypeTag`, `cEnumTag`, `cPreProcTag`, `cFunctionTag`, `cMemberTag`
* **PHP:** `phpFunctionsTag`, `phpClassesTag`
- * **Vim:** `vimAutoGroupTag`, `vimCommandTag`, `vimFuncNameTag`, `vimScriptFuncNameTag`
* **Python:** `pythonFunctionTag`, `pythonMethodTag`, `pythonClassTag`
- * **Java:** `javaClassTag`, `javaMethodTag`
- * **C#:** `csClassOrStructTag`, `csMethodTag`
* **Ruby:** `rubyModuleNameTag`, `rubyClassNameTag`, `rubyMethodNameTag`
+ * **Shell**: `shFunctionTag`
+ * **Tcl**: `tclCommandTag`
+ * **Vim:** `vimAutoGroupTag`, `vimCommandTag`, `vimFuncNameTag`, `vimScriptFuncNameTag`
As you can see each of these names ends in `Tag` to avoid conflicts with the syntax modes shipped with Vim. And about the singular/plural confusion: I've tried to match the existing highlighting groups defined by popular syntax modes (except of course for the `Tag` suffix).
diff --git a/autoload/xolox/easytags.vim b/autoload/xolox/easytags.vim
index 8f73b66..fa1e070 100644
--- a/autoload/xolox/easytags.vim
+++ b/autoload/xolox/easytags.vim
@@ -1,9 +1,9 @@
" Vim script
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: September 27, 2011
+" Last Change: October 1, 2011
" URL: http://peterodding.com/code/vim/easytags/
-let g:xolox#easytags#version = '2.6.1'
+let g:xolox#easytags#version = '2.7'
" Public interface through (automatic) commands. {{{1
@@ -889,7 +889,7 @@ highlight def link rubyMethodName Function
call xolox#easytags#define_tagkind({
\ 'filetype': 'awk',
\ 'hlgroup': 'awkFunctionTag',
- \ 'tagkinds': '[f]'})
+ \ 'tagkinds': 'f'})
highlight def link awkFunctionTag Function
@@ -898,7 +898,7 @@ highlight def link awkFunctionTag Function
call xolox#easytags#define_tagkind({
\ 'filetype': 'sh',
\ 'hlgroup': 'shFunctionTag',
- \ 'tagkinds': '[f]'})
+ \ 'tagkinds': 'f'})
highlight def link shFunctionTag Operator
@@ -907,7 +907,7 @@ highlight def link shFunctionTag Operator
call xolox#easytags#define_tagkind({
\ 'filetype': 'tcl',
\ 'hlgroup': 'tclCommandTag',
- \ 'tagkinds': '[p]'})
+ \ 'tagkinds': 'p'})
highlight def link tclCommandTag Operator
diff --git a/doc/easytags.txt b/doc/easytags.txt
index 1b9e78c..fcc8593 100644
--- a/doc/easytags.txt
+++ b/doc/easytags.txt
@@ -35,9 +35,10 @@ with the tags defined in the file you just edited! This means that whatever
file you're editing in Vim (as long as it's on the local file system), tags
will always be available by the time you need them!
-Additionally if the file you just opened is a C, C++, Objective-C, Java, Lua,
-Python, PHP, Ruby or Vim source file you should also notice that the function
-and type names defined in the file have been syntax highlighted.
+Additionally if the file you just opened is an AWK, C#, C, C++, Objective-C,
+Java, Lua, PHP, Python, Ruby, Shell, Tcl or Vim source file you should also
+notice that the function and type names defined in the file have been syntax
+highlighted.
The 'easytags.vim' plug-in is intended to work automatically once it's
installed, but if you want to change how it works there are several options
@@ -352,23 +353,30 @@ do so use a 'highlight' command such as the ones given a few paragraphs back.
Of course you'll need to change the group name. Here are the group names used
by the easytags plug-in:
- - Lua: 'luaFuncTag'
+ - AWK: 'awkFunctionTag'
- - C: 'cTypeTag', 'cEnumTag', 'cPreProcTag', 'cFunctionTag', 'cMemberTag'
+ - C#: 'csClassOrStructTag', 'csMethodTag'
- - PHP: 'phpFunctionsTag', 'phpClassesTag'
+ - C, C++, Objective C: 'cTypeTag', 'cEnumTag', 'cPreProcTag', 'cFunctionTag',
+ 'cMemberTag'
- - Vim: 'vimAutoGroupTag', 'vimCommandTag', 'vimFuncNameTag',
- 'vimScriptFuncNameTag'
+ - Java: 'javaClassTag', 'javaMethodTag'
- - Python: 'pythonFunctionTag', 'pythonMethodTag', 'pythonClassTag'
+ - Lua: 'luaFuncTag'
- - Java: 'javaClassTag', 'javaMethodTag'
+ - PHP: 'phpFunctionsTag', 'phpClassesTag'
- - C#: 'csClassOrStructTag', 'csMethodTag'
+ - Python: 'pythonFunctionTag', 'pythonMethodTag', 'pythonClassTag'
- Ruby: 'rubyModuleNameTag', 'rubyClassNameTag', 'rubyMethodNameTag'
+ - Shell: 'shFunctionTag'
+
+ - Tcl: 'tclCommandTag'
+
+ - Vim: 'vimAutoGroupTag', 'vimCommandTag', 'vimFuncNameTag',
+ 'vimScriptFuncNameTag'
+
As you can see each of these names ends in 'Tag' to avoid conflicts with the
syntax modes shipped with Vim. And about the singular/plural confusion: I've
tried to match the existing highlighting groups defined by popular syntax