scripts/tags.sh: fix DEFINE_HASHTABLE in emacs case
[cascardo/linux.git] / scripts / tags.sh
index 0f61bd7..fd651f9 100755 (executable)
@@ -255,7 +255,7 @@ emacs()
        --regex='/_PE(\([^,)]*\).*/PEVENT_ERRNO__\1/'           \
        --regex='/PCI_OP_READ(\([a-z]*[a-z]\).*[1-4])/pci_bus_read_config_\1/' \
        --regex='/PCI_OP_WRITE(\([a-z]*[a-z]\).*[1-4])/pci_bus_write_config_\1/'\
-       --regex='/DEFINE_HASHTABLE\((\w*)/\1/'
+       --regex='/[^#]*DEFINE_HASHTABLE(\([^,)]*\)/\1/'
 
        all_kconfigs | xargs $1 -a                              \
        --regex='/^[ \t]*\(\(menu\)*config\)[ \t]+\([a-zA-Z0-9_]+\)/\3/'