diff options
author | Dirk Gouders <dirk@gouders.net> | 2014-08-16 01:56:58 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2014-08-19 05:12:43 -0400 |
commit | 8e170655b517ba49bf4d015008474bcc2f425b20 (patch) | |
tree | 76d70d4b975d9964eb6ec43fc6dbb8d485542214 | |
parent | a60113d6a7fca3320e84d25db84c3c1a5a02b505 (diff) |
scripts/tags.sh: fix DEFINE_HASHTABLE in emacs case
The emacs --regex for DEFINE_HASHTABLE produced a warning because of
an unmatched '\('. Further, the whole entry did not work, because the
regex needs to match from the beginning of a line, including keywords
like 'static'. Finally, '\w' should not be used, because it
stops at underscores which are often part of variable names in C,
resulting in wrong entries in the tags file.
Signed-off-by: Dirk Gouders <dirk@gouders.net>
Inspired-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
-rwxr-xr-x | scripts/tags.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/tags.sh b/scripts/tags.sh index 0f61bd7ee958..fd651f90a838 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh | |||
@@ -255,7 +255,7 @@ emacs() | |||
255 | --regex='/_PE(\([^,)]*\).*/PEVENT_ERRNO__\1/' \ | 255 | --regex='/_PE(\([^,)]*\).*/PEVENT_ERRNO__\1/' \ |
256 | --regex='/PCI_OP_READ(\([a-z]*[a-z]\).*[1-4])/pci_bus_read_config_\1/' \ | 256 | --regex='/PCI_OP_READ(\([a-z]*[a-z]\).*[1-4])/pci_bus_read_config_\1/' \ |
257 | --regex='/PCI_OP_WRITE(\([a-z]*[a-z]\).*[1-4])/pci_bus_write_config_\1/'\ | 257 | --regex='/PCI_OP_WRITE(\([a-z]*[a-z]\).*[1-4])/pci_bus_write_config_\1/'\ |
258 | --regex='/DEFINE_HASHTABLE\((\w*)/\1/' | 258 | --regex='/[^#]*DEFINE_HASHTABLE(\([^,)]*\)/\1/' |
259 | 259 | ||
260 | all_kconfigs | xargs $1 -a \ | 260 | all_kconfigs | xargs $1 -a \ |
261 | --regex='/^[ \t]*\(\(menu\)*config\)[ \t]+\([a-zA-Z0-9_]+\)/\3/' | 261 | --regex='/^[ \t]*\(\(menu\)*config\)[ \t]+\([a-zA-Z0-9_]+\)/\3/' |