patch 9.1.0823: filetype: Zephyr overlay files not recognized
Problem: filetype: Zephyr overlay files not recognized
Solution: detect '*.overlay' files as dts filetype,
include syntax tests for DTS files
(Xudong Zheng)
Reference:
https://docs.zephyrproject.org/latest/build/dts/howtos.html
closes: #15963
Signed-off-by: Xudong Zheng <7pkvm5aw@slicealias.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
d52fb2fabd
commit
a68bd6f089
23
runtime/syntax/testdir/input/dts_zmk.keymap
Normal file
23
runtime/syntax/testdir/input/dts_zmk.keymap
Normal file
@ -0,0 +1,23 @@
|
||||
#include <behaviors.dtsi>
|
||||
#include <dt-bindings/zmk/keys.h>
|
||||
|
||||
// Define macro for layers.
|
||||
#define LAYER_MAIN 0
|
||||
|
||||
/ {
|
||||
keymap {
|
||||
compatible = "zmk,keymap";
|
||||
|
||||
layer_0 {
|
||||
bindings = <
|
||||
&kp Z
|
||||
&kp M
|
||||
&kp K
|
||||
&zmk_string
|
||||
&to LAYER_MAIN
|
||||
>;
|
||||
};
|
||||
};
|
||||
|
||||
ZMK_MACRO(zmk_string, wait-ms = <10>; tap-ms = <10>; bindings = <¯o_tap &kp Z &kp M &kp K>;)
|
||||
};
|
||||
Reference in New Issue
Block a user