Skip to content

Commit 09df6e0

Browse files
sknaumovzyv
authored andcommitted
Ticket #5003: highlight Kconfig output files
* .config is already highlighted as Java properties => reuse it. It is not ideal, but better than nothing. * Additionally hightlight: - .config.* - e.g. .config.old produced by Kconfig. - *defconfig - used in Linux kernel, Buildroot, Busybox, U-Boot, Zephyr. * Kconfig.defconfig should still be treated as Kconfig definition file, not as its output. Signed-off-by: Sergey Naumov <sknaumov@gmail.com> Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
1 parent ea75598 commit 09df6e0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

misc/syntax/Syntax.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,5 +378,8 @@ include tree-meta.syntax
378378
file (/Kconfig(\\.[A-z0-9-]\+)?|/Config\\.(in|src)(\\.[A-z0-9-]\+)?|.\*\\.kconf(ig)?)$ Kconfig
379379
include kconfig.syntax
380380

381+
file ..\*(\\.config(\\.[A-z0-9-]\+)?|defconfig)$ Kconfig\soutput
382+
include properties.syntax
383+
381384
file .\* unknown
382385
include unknown.syntax

0 commit comments

Comments
 (0)