Skip to content

Commit b9a5fba

Browse files
committed
Kconfig: tag CONFIG_FOO_MODULE as configPrefixed extra tag for FOO
Quoted from a comment in kconfig.h of Linux: /* * IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm', * 0 otherwise. Note that CONFIG_FOO=y results in "#define CONFIG_FOO 1" in * autoconf.h, while CONFIG_FOO=m results in "#define CONFIG_FOO_MODULE 1". */ ctags already tagged CONFIG_FOO as a configPrefix extra tag for FOO. This change exnted the extra tag. With this change, ctags tags CONFIG_FOO_MODULE as a configPrefix extra tag in addition to CONFIG_FOO. Signed-off-by: Masatake YAMATO <[email protected]>
1 parent b5bda24 commit b9a5fba

File tree

3 files changed

+52
-1
lines changed

3 files changed

+52
-1
lines changed

Units/simple-kconfig.d/expected.tags

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,61 +14,89 @@ lib/Kconfig.debug input.kconfig /^source "lib\/Kconfig.debug"$/;" k roles:source
1414
Documentation/Kconfig input.kconfig /^source "Documentation\/Kconfig"$/;" k roles:source
1515
JFFS2_FS input-1.kconfig /^config JFFS2_FS$/;" c roles:def
1616
CONFIG_JFFS2_FS input-1.kconfig /^config JFFS2_FS$/;" c roles:def
17+
CONFIG_JFFS2_FS_MODULE input-1.kconfig /^config JFFS2_FS$/;" c roles:def
1718
JFFS2_FS_DEBUG input-1.kconfig /^config JFFS2_FS_DEBUG$/;" c roles:def
1819
CONFIG_JFFS2_FS_DEBUG input-1.kconfig /^config JFFS2_FS_DEBUG$/;" c roles:def
20+
CONFIG_JFFS2_FS_DEBUG_MODULE input-1.kconfig /^config JFFS2_FS_DEBUG$/;" c roles:def
1921
JFFS2_FS_WRITEBUFFER input-1.kconfig /^config JFFS2_FS_WRITEBUFFER$/;" c roles:def
2022
CONFIG_JFFS2_FS_WRITEBUFFER input-1.kconfig /^config JFFS2_FS_WRITEBUFFER$/;" c roles:def
23+
CONFIG_JFFS2_FS_WRITEBUFFER_MODULE input-1.kconfig /^config JFFS2_FS_WRITEBUFFER$/;" c roles:def
2124
JFFS2_FS_WBUF_VERIFY input-1.kconfig /^config JFFS2_FS_WBUF_VERIFY$/;" c roles:def
2225
CONFIG_JFFS2_FS_WBUF_VERIFY input-1.kconfig /^config JFFS2_FS_WBUF_VERIFY$/;" c roles:def
26+
CONFIG_JFFS2_FS_WBUF_VERIFY_MODULE input-1.kconfig /^config JFFS2_FS_WBUF_VERIFY$/;" c roles:def
2327
JFFS2_SUMMARY input-1.kconfig /^config JFFS2_SUMMARY$/;" c roles:def
2428
CONFIG_JFFS2_SUMMARY input-1.kconfig /^config JFFS2_SUMMARY$/;" c roles:def
29+
CONFIG_JFFS2_SUMMARY_MODULE input-1.kconfig /^config JFFS2_SUMMARY$/;" c roles:def
2530
JFFS2_FS_XATTR input-1.kconfig /^config JFFS2_FS_XATTR$/;" c roles:def
2631
CONFIG_JFFS2_FS_XATTR input-1.kconfig /^config JFFS2_FS_XATTR$/;" c roles:def
32+
CONFIG_JFFS2_FS_XATTR_MODULE input-1.kconfig /^config JFFS2_FS_XATTR$/;" c roles:def
2733
JFFS2_FS_POSIX_ACL input-1.kconfig /^config JFFS2_FS_POSIX_ACL$/;" c roles:def
2834
CONFIG_JFFS2_FS_POSIX_ACL input-1.kconfig /^config JFFS2_FS_POSIX_ACL$/;" c roles:def
35+
CONFIG_JFFS2_FS_POSIX_ACL_MODULE input-1.kconfig /^config JFFS2_FS_POSIX_ACL$/;" c roles:def
2936
JFFS2_FS_SECURITY input-1.kconfig /^config JFFS2_FS_SECURITY$/;" c roles:def
3037
CONFIG_JFFS2_FS_SECURITY input-1.kconfig /^config JFFS2_FS_SECURITY$/;" c roles:def
38+
CONFIG_JFFS2_FS_SECURITY_MODULE input-1.kconfig /^config JFFS2_FS_SECURITY$/;" c roles:def
3139
JFFS2_COMPRESSION_OPTIONS input-1.kconfig /^config JFFS2_COMPRESSION_OPTIONS$/;" c roles:def
3240
CONFIG_JFFS2_COMPRESSION_OPTIONS input-1.kconfig /^config JFFS2_COMPRESSION_OPTIONS$/;" c roles:def
41+
CONFIG_JFFS2_COMPRESSION_OPTIONS_MODULE input-1.kconfig /^config JFFS2_COMPRESSION_OPTIONS$/;" c roles:def
3342
JFFS2_ZLIB input-1.kconfig /^config JFFS2_ZLIB$/;" c roles:def
3443
CONFIG_JFFS2_ZLIB input-1.kconfig /^config JFFS2_ZLIB$/;" c roles:def
44+
CONFIG_JFFS2_ZLIB_MODULE input-1.kconfig /^config JFFS2_ZLIB$/;" c roles:def
3545
JFFS2_LZO input-1.kconfig /^config JFFS2_LZO$/;" c roles:def
3646
CONFIG_JFFS2_LZO input-1.kconfig /^config JFFS2_LZO$/;" c roles:def
47+
CONFIG_JFFS2_LZO_MODULE input-1.kconfig /^config JFFS2_LZO$/;" c roles:def
3748
JFFS2_RTIME input-1.kconfig /^config JFFS2_RTIME$/;" c roles:def
3849
CONFIG_JFFS2_RTIME input-1.kconfig /^config JFFS2_RTIME$/;" c roles:def
50+
CONFIG_JFFS2_RTIME_MODULE input-1.kconfig /^config JFFS2_RTIME$/;" c roles:def
3951
JFFS2_RUBIN input-1.kconfig /^config JFFS2_RUBIN$/;" c roles:def
4052
CONFIG_JFFS2_RUBIN input-1.kconfig /^config JFFS2_RUBIN$/;" c roles:def
53+
CONFIG_JFFS2_RUBIN_MODULE input-1.kconfig /^config JFFS2_RUBIN$/;" c roles:def
4154
choice29ffa23a0104 input-1.kconfig /^choice$/;" C roles:def
4255
JFFS2_CMODE_NONE input-1.kconfig /^config JFFS2_CMODE_NONE$/;" c choice:choice29ffa23a0104 roles:def
4356
CONFIG_JFFS2_CMODE_NONE input-1.kconfig /^config JFFS2_CMODE_NONE$/;" c choice:choice29ffa23a0104 roles:def
57+
CONFIG_JFFS2_CMODE_NONE_MODULE input-1.kconfig /^config JFFS2_CMODE_NONE$/;" c choice:choice29ffa23a0104 roles:def
4458
JFFS2_CMODE_PRIORITY input-1.kconfig /^config JFFS2_CMODE_PRIORITY$/;" c choice:choice29ffa23a0104 roles:def
4559
CONFIG_JFFS2_CMODE_PRIORITY input-1.kconfig /^config JFFS2_CMODE_PRIORITY$/;" c choice:choice29ffa23a0104 roles:def
60+
CONFIG_JFFS2_CMODE_PRIORITY_MODULE input-1.kconfig /^config JFFS2_CMODE_PRIORITY$/;" c choice:choice29ffa23a0104 roles:def
4661
JFFS2_CMODE_SIZE input-1.kconfig /^config JFFS2_CMODE_SIZE$/;" c choice:choice29ffa23a0104 roles:def
4762
CONFIG_JFFS2_CMODE_SIZE input-1.kconfig /^config JFFS2_CMODE_SIZE$/;" c choice:choice29ffa23a0104 roles:def
63+
CONFIG_JFFS2_CMODE_SIZE_MODULE input-1.kconfig /^config JFFS2_CMODE_SIZE$/;" c choice:choice29ffa23a0104 roles:def
4864
JFFS2_CMODE_FAVOURLZO input-1.kconfig /^config JFFS2_CMODE_FAVOURLZO$/;" c choice:choice29ffa23a0104 roles:def
4965
CONFIG_JFFS2_CMODE_FAVOURLZO input-1.kconfig /^config JFFS2_CMODE_FAVOURLZO$/;" c choice:choice29ffa23a0104 roles:def
66+
CONFIG_JFFS2_CMODE_FAVOURLZO_MODULE input-1.kconfig /^config JFFS2_CMODE_FAVOURLZO$/;" c choice:choice29ffa23a0104 roles:def
5067
HAVE_ARCH_KGDB input-2.kconfig /^config HAVE_ARCH_KGDB$/;" c roles:def
5168
CONFIG_HAVE_ARCH_KGDB input-2.kconfig /^config HAVE_ARCH_KGDB$/;" c roles:def
69+
CONFIG_HAVE_ARCH_KGDB_MODULE input-2.kconfig /^config HAVE_ARCH_KGDB$/;" c roles:def
5270
KGDB input-2.kconfig /^menuconfig KGDB$/;" c roles:def
5371
CONFIG_KGDB input-2.kconfig /^menuconfig KGDB$/;" c roles:def
72+
CONFIG_KGDB_MODULE input-2.kconfig /^menuconfig KGDB$/;" c roles:def
5473
KGDB_SERIAL_CONSOLE input-2.kconfig /^config KGDB_SERIAL_CONSOLE$/;" c roles:def
5574
CONFIG_KGDB_SERIAL_CONSOLE input-2.kconfig /^config KGDB_SERIAL_CONSOLE$/;" c roles:def
75+
CONFIG_KGDB_SERIAL_CONSOLE_MODULE input-2.kconfig /^config KGDB_SERIAL_CONSOLE$/;" c roles:def
5676
KGDB_TESTS input-2.kconfig /^config KGDB_TESTS$/;" c roles:def
5777
CONFIG_KGDB_TESTS input-2.kconfig /^config KGDB_TESTS$/;" c roles:def
78+
CONFIG_KGDB_TESTS_MODULE input-2.kconfig /^config KGDB_TESTS$/;" c roles:def
5879
KGDB_TESTS_ON_BOOT input-2.kconfig /^config KGDB_TESTS_ON_BOOT$/;" c roles:def
5980
CONFIG_KGDB_TESTS_ON_BOOT input-2.kconfig /^config KGDB_TESTS_ON_BOOT$/;" c roles:def
81+
CONFIG_KGDB_TESTS_ON_BOOT_MODULE input-2.kconfig /^config KGDB_TESTS_ON_BOOT$/;" c roles:def
6082
KGDB_TESTS_BOOT_STRING input-2.kconfig /^config KGDB_TESTS_BOOT_STRING$/;" c roles:def
6183
CONFIG_KGDB_TESTS_BOOT_STRING input-2.kconfig /^config KGDB_TESTS_BOOT_STRING$/;" c roles:def
84+
CONFIG_KGDB_TESTS_BOOT_STRING_MODULE input-2.kconfig /^config KGDB_TESTS_BOOT_STRING$/;" c roles:def
6285
KGDB_LOW_LEVEL_TRAP input-2.kconfig /^config KGDB_LOW_LEVEL_TRAP$/;" c roles:def
6386
CONFIG_KGDB_LOW_LEVEL_TRAP input-2.kconfig /^config KGDB_LOW_LEVEL_TRAP$/;" c roles:def
87+
CONFIG_KGDB_LOW_LEVEL_TRAP_MODULE input-2.kconfig /^config KGDB_LOW_LEVEL_TRAP$/;" c roles:def
6488
KGDB_KDB input-2.kconfig /^config KGDB_KDB$/;" c roles:def
6589
CONFIG_KGDB_KDB input-2.kconfig /^config KGDB_KDB$/;" c roles:def
90+
CONFIG_KGDB_KDB_MODULE input-2.kconfig /^config KGDB_KDB$/;" c roles:def
6691
KDB_DEFAULT_ENABLE input-2.kconfig /^config KDB_DEFAULT_ENABLE$/;" c roles:def
6792
CONFIG_KDB_DEFAULT_ENABLE input-2.kconfig /^config KDB_DEFAULT_ENABLE$/;" c roles:def
93+
CONFIG_KDB_DEFAULT_ENABLE_MODULE input-2.kconfig /^config KDB_DEFAULT_ENABLE$/;" c roles:def
6894
KDB_KEYBOARD input-2.kconfig /^config KDB_KEYBOARD$/;" c roles:def
6995
CONFIG_KDB_KEYBOARD input-2.kconfig /^config KDB_KEYBOARD$/;" c roles:def
96+
CONFIG_KDB_KEYBOARD_MODULE input-2.kconfig /^config KDB_KEYBOARD$/;" c roles:def
7097
KDB_CONTINUE_CATASTROPHIC input-2.kconfig /^config KDB_CONTINUE_CATASTROPHIC$/;" c roles:def
7198
CONFIG_KDB_CONTINUE_CATASTROPHIC input-2.kconfig /^config KDB_CONTINUE_CATASTROPHIC$/;" c roles:def
99+
CONFIG_KDB_CONTINUE_CATASTROPHIC_MODULE input-2.kconfig /^config KDB_CONTINUE_CATASTROPHIC$/;" c roles:def
72100
Networking options input-3.kconfig /^menu "Networking options"$/;" m roles:def
73101
net/packet/Kconfig input-3.kconfig /^source "net\/packet\/Kconfig"$/;" k menu:Networking options roles:source
74102
net/unix/Kconfig input-3.kconfig /^source "net\/unix\/Kconfig"$/;" k menu:Networking options roles:source
@@ -79,22 +107,29 @@ net/smc/Kconfig input-3.kconfig /^source "net\/smc\/Kconfig"$/;" k menu:Networki
79107
net/xdp/Kconfig input-3.kconfig /^source "net\/xdp\/Kconfig"$/;" k menu:Networking options roles:source
80108
INET input-3.kconfig /^config INET$/;" c menu:Networking options roles:def
81109
CONFIG_INET input-3.kconfig /^config INET$/;" c menu:Networking options roles:def
110+
CONFIG_INET_MODULE input-3.kconfig /^config INET$/;" c menu:Networking options roles:def
82111
net/ipv4/Kconfig input-3.kconfig /^source "net\/ipv4\/Kconfig"$/;" k menu:Networking options roles:source
83112
net/ipv6/Kconfig input-3.kconfig /^source "net\/ipv6\/Kconfig"$/;" k menu:Networking options roles:source
84113
net/netlabel/Kconfig input-3.kconfig /^source "net\/netlabel\/Kconfig"$/;" k menu:Networking options roles:source
85114
net/mptcp/Kconfig input-3.kconfig /^source "net\/mptcp\/Kconfig"$/;" k menu:Networking options roles:source
86115
NETWORK_SECMARK input-3.kconfig /^config NETWORK_SECMARK$/;" c menu:Networking options roles:def
87116
CONFIG_NETWORK_SECMARK input-3.kconfig /^config NETWORK_SECMARK$/;" c menu:Networking options roles:def
117+
CONFIG_NETWORK_SECMARK_MODULE input-3.kconfig /^config NETWORK_SECMARK$/;" c menu:Networking options roles:def
88118
NET_PTP_CLASSIFY input-3.kconfig /^config NET_PTP_CLASSIFY$/;" c menu:Networking options roles:def
89119
CONFIG_NET_PTP_CLASSIFY input-3.kconfig /^config NET_PTP_CLASSIFY$/;" c menu:Networking options roles:def
120+
CONFIG_NET_PTP_CLASSIFY_MODULE input-3.kconfig /^config NET_PTP_CLASSIFY$/;" c menu:Networking options roles:def
90121
NETWORK_PHY_TIMESTAMPING input-3.kconfig /^config NETWORK_PHY_TIMESTAMPING$/;" c menu:Networking options roles:def
91122
CONFIG_NETWORK_PHY_TIMESTAMPING input-3.kconfig /^config NETWORK_PHY_TIMESTAMPING$/;" c menu:Networking options roles:def
123+
CONFIG_NETWORK_PHY_TIMESTAMPING_MODULE input-3.kconfig /^config NETWORK_PHY_TIMESTAMPING$/;" c menu:Networking options roles:def
92124
NETFILTER input-3.kconfig /^menuconfig NETFILTER$/;" c menu:Networking options roles:def
93125
CONFIG_NETFILTER input-3.kconfig /^menuconfig NETFILTER$/;" c menu:Networking options roles:def
126+
CONFIG_NETFILTER_MODULE input-3.kconfig /^menuconfig NETFILTER$/;" c menu:Networking options roles:def
94127
NETFILTER_ADVANCED input-3.kconfig /^config NETFILTER_ADVANCED$/;" c menu:Networking options roles:def
95128
CONFIG_NETFILTER_ADVANCED input-3.kconfig /^config NETFILTER_ADVANCED$/;" c menu:Networking options roles:def
129+
CONFIG_NETFILTER_ADVANCED_MODULE input-3.kconfig /^config NETFILTER_ADVANCED$/;" c menu:Networking options roles:def
96130
BRIDGE_NETFILTER input-3.kconfig /^config BRIDGE_NETFILTER$/;" c menu:Networking options roles:def
97131
CONFIG_BRIDGE_NETFILTER input-3.kconfig /^config BRIDGE_NETFILTER$/;" c menu:Networking options roles:def
132+
CONFIG_BRIDGE_NETFILTER_MODULE input-3.kconfig /^config BRIDGE_NETFILTER$/;" c menu:Networking options roles:def
98133
net/netfilter/Kconfig input-3.kconfig /^source "net\/netfilter\/Kconfig"$/;" k menu:Networking options roles:source
99134
net/ipv4/netfilter/Kconfig input-3.kconfig /^source "net\/ipv4\/netfilter\/Kconfig"$/;" k menu:Networking options roles:source
100135
net/ipv6/netfilter/Kconfig input-3.kconfig /^source "net\/ipv6\/netfilter\/Kconfig"$/;" k menu:Networking options roles:source
@@ -136,31 +171,44 @@ net/qrtr/Kconfig input-3.kconfig /^source "net\/qrtr\/Kconfig"$/;" k menu:Networ
136171
net/ncsi/Kconfig input-3.kconfig /^source "net\/ncsi\/Kconfig"$/;" k menu:Networking options roles:source
137172
RPS input-3.kconfig /^config RPS$/;" c menu:Networking options roles:def
138173
CONFIG_RPS input-3.kconfig /^config RPS$/;" c menu:Networking options roles:def
174+
CONFIG_RPS_MODULE input-3.kconfig /^config RPS$/;" c menu:Networking options roles:def
139175
RFS_ACCEL input-3.kconfig /^config RFS_ACCEL$/;" c menu:Networking options roles:def
140176
CONFIG_RFS_ACCEL input-3.kconfig /^config RFS_ACCEL$/;" c menu:Networking options roles:def
177+
CONFIG_RFS_ACCEL_MODULE input-3.kconfig /^config RFS_ACCEL$/;" c menu:Networking options roles:def
141178
XPS input-3.kconfig /^config XPS$/;" c menu:Networking options roles:def
142179
CONFIG_XPS input-3.kconfig /^config XPS$/;" c menu:Networking options roles:def
180+
CONFIG_XPS_MODULE input-3.kconfig /^config XPS$/;" c menu:Networking options roles:def
143181
HWBM input-3.kconfig /^config HWBM$/;" c menu:Networking options roles:def
144182
CONFIG_HWBM input-3.kconfig /^config HWBM$/;" c menu:Networking options roles:def
183+
CONFIG_HWBM_MODULE input-3.kconfig /^config HWBM$/;" c menu:Networking options roles:def
145184
CGROUP_NET_PRIO input-3.kconfig /^config CGROUP_NET_PRIO$/;" c menu:Networking options roles:def
146185
CONFIG_CGROUP_NET_PRIO input-3.kconfig /^config CGROUP_NET_PRIO$/;" c menu:Networking options roles:def
186+
CONFIG_CGROUP_NET_PRIO_MODULE input-3.kconfig /^config CGROUP_NET_PRIO$/;" c menu:Networking options roles:def
147187
CGROUP_NET_CLASSID input-3.kconfig /^config CGROUP_NET_CLASSID$/;" c menu:Networking options roles:def
148188
CONFIG_CGROUP_NET_CLASSID input-3.kconfig /^config CGROUP_NET_CLASSID$/;" c menu:Networking options roles:def
189+
CONFIG_CGROUP_NET_CLASSID_MODULE input-3.kconfig /^config CGROUP_NET_CLASSID$/;" c menu:Networking options roles:def
149190
NET_RX_BUSY_POLL input-3.kconfig /^config NET_RX_BUSY_POLL$/;" c menu:Networking options roles:def
150191
CONFIG_NET_RX_BUSY_POLL input-3.kconfig /^config NET_RX_BUSY_POLL$/;" c menu:Networking options roles:def
192+
CONFIG_NET_RX_BUSY_POLL_MODULE input-3.kconfig /^config NET_RX_BUSY_POLL$/;" c menu:Networking options roles:def
151193
BQL input-3.kconfig /^config BQL$/;" c menu:Networking options roles:def
152194
CONFIG_BQL input-3.kconfig /^config BQL$/;" c menu:Networking options roles:def
195+
CONFIG_BQL_MODULE input-3.kconfig /^config BQL$/;" c menu:Networking options roles:def
153196
BPF_JIT input-3.kconfig /^config BPF_JIT$/;" c menu:Networking options roles:def
154197
CONFIG_BPF_JIT input-3.kconfig /^config BPF_JIT$/;" c menu:Networking options roles:def
198+
CONFIG_BPF_JIT_MODULE input-3.kconfig /^config BPF_JIT$/;" c menu:Networking options roles:def
155199
BPF_STREAM_PARSER input-3.kconfig /^config BPF_STREAM_PARSER$/;" c menu:Networking options roles:def
156200
CONFIG_BPF_STREAM_PARSER input-3.kconfig /^config BPF_STREAM_PARSER$/;" c menu:Networking options roles:def
201+
CONFIG_BPF_STREAM_PARSER_MODULE input-3.kconfig /^config BPF_STREAM_PARSER$/;" c menu:Networking options roles:def
157202
NET_FLOW_LIMIT input-3.kconfig /^config NET_FLOW_LIMIT$/;" c menu:Networking options roles:def
158203
CONFIG_NET_FLOW_LIMIT input-3.kconfig /^config NET_FLOW_LIMIT$/;" c menu:Networking options roles:def
204+
CONFIG_NET_FLOW_LIMIT_MODULE input-3.kconfig /^config NET_FLOW_LIMIT$/;" c menu:Networking options roles:def
159205
Network testing input-3.kconfig /^menu "Network testing"$/;" m menu:Networking options roles:def
160206
NET_PKTGEN input-3.kconfig /^config NET_PKTGEN$/;" c menu:Networking options""Network testing roles:def
161207
CONFIG_NET_PKTGEN input-3.kconfig /^config NET_PKTGEN$/;" c menu:Networking options""Network testing roles:def
208+
CONFIG_NET_PKTGEN_MODULE input-3.kconfig /^config NET_PKTGEN$/;" c menu:Networking options""Network testing roles:def
162209
NET_DROP_MONITOR input-3.kconfig /^config NET_DROP_MONITOR$/;" c menu:Networking options""Network testing roles:def
163210
CONFIG_NET_DROP_MONITOR input-3.kconfig /^config NET_DROP_MONITOR$/;" c menu:Networking options""Network testing roles:def
211+
CONFIG_NET_DROP_MONITOR_MODULE input-3.kconfig /^config NET_DROP_MONITOR$/;" c menu:Networking options""Network testing roles:def
164212
Kconfig.host input-4.kconfig /^source Kconfig.host$/;" k roles:source
165213
backends/Kconfig input-4.kconfig /^source backends\/Kconfig$/;" k roles:source
166214
accel/Kconfig input-4.kconfig /^source accel\/Kconfig$/;" k roles:source

optlib/kconfig.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ extern parserDefinition* KconfigParser (void)
7070
{"^[ \t]*(menu)?config[ \t]+([A-Za-z0-9_]+)[ \t]*$", "\\2",
7171
"c", "{scope=ref}", NULL, false},
7272
{"^[ \t]*(menu)?config[ \t]+([A-Za-z0-9_]+)[ \t]*$", "CONFIG_\\2",
73+
"c", "{scope=ref}{_extra=configPrefixed}", NULL, false},
74+
{"^[ \t]*(menu)?config[ \t]+([A-Za-z0-9_]+)[ \t]*$", "CONFIG_\\2_MODULE",
7375
"c", "{scope=ref}{_extra=configPrefixed}{exclusive}", NULL, false},
7476
{"^[ \t]*menu[ \t]+\"([^\"]+)\"[ \t]*", "\\1",
7577
"m", "{scope=push}{exclusive}", NULL, false},

optlib/kconfig.ctags

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
--regex-Kconfig=/^[ \t]*#.*$//{placeholder}
5252

5353
--regex-Kconfig=/^[ \t]*(menu)?config[ \t]+([A-Za-z0-9_]+)[ \t]*$/\2/c/{scope=ref}
54-
--regex-Kconfig=/^[ \t]*(menu)?config[ \t]+([A-Za-z0-9_]+)[ \t]*$/CONFIG_\2/c/{scope=ref}{_extra=configPrefixed}{exclusive}
54+
--regex-Kconfig=/^[ \t]*(menu)?config[ \t]+([A-Za-z0-9_]+)[ \t]*$/CONFIG_\2/c/{scope=ref}{_extra=configPrefixed}
55+
--regex-Kconfig=/^[ \t]*(menu)?config[ \t]+([A-Za-z0-9_]+)[ \t]*$/CONFIG_\2_MODULE/c/{scope=ref}{_extra=configPrefixed}{exclusive}
5556

5657
--regex-Kconfig=/^[ \t]*menu[ \t]+"([^"]+)"[ \t]*/\1/m/{scope=push}{exclusive}
5758
--regex-Kconfig=/^[ \t]*endmenu[ \t]*//{scope=pop}{placeholder}{exclusive}

0 commit comments

Comments
 (0)