Hi Daniel,
On Sat, Mar 09, 2013 at 03:07:35PM +0100, Daniel Mack wrote:
> Hi Markus,
>
> On 09.03.2013 13:41, Bram Moolenaar wrote:
> >
> > Markus Pargmann wrote:
> >
> >> Small improvement to highlight nodes with addresses in devicetree files.
>
> Can you give me an example of such a node, so I can reproduce this here
> and test you patch?
The first one is an example for nodes without addresses, so not
highlighted. The second one has an address in its name ('@10001000').
clocks {
#address-cells = <1>;
#size-cells = <0>;
osc26m {
compatible = "fsl,imx-osc26m", "fixed-clock";
clock-frequency = <26000000>;
};
};
dma: dma@10001000 {
compatible = "fsl,imx27-dma";
reg = <0x10001000 0x1000>;
interrupts = <32 33>;
clocks = <&clks 50>, <&clks 70>;
clock-names = "ipg", "ahb";
#dma-cells = <1>;
dma-channels = <16>;
};
Regards,
Markus
>
>
> Thanks,
> Daniel
>
>
> >
> > Copied to the maintainer.
> >
> >> Signed-off-by: Markus Pargmann <[email protected]>
> >> ---
> >> runtime/syntax/dts.vim | 2 ++
> >> 1 file changed, 2 insertions(+)
> >>
> >> diff --git a/runtime/syntax/dts.vim b/runtime/syntax/dts.vim
> >> index 84e37ae..838e13e 100644
> >> --- a/runtime/syntax/dts.vim
> >> +++ b/runtime/syntax/dts.vim
> >> @@ -13,6 +13,7 @@ syntax region dtsBinaryProperty start="\[" end="\]"
> >> syntax match dtsStringProperty "\".*\""
> >> syntax match dtsKeyword "/.*/"
> >> syntax match dtsLabel "^[[:space:]]*[[:alpha:][:digit:]_]\+:"
> >> +syntax match dtsNode "[[:alpha:][:digit:]-_]\+@[0-9a-eA-E]\+"
> >> syntax region dtsCellProperty start="<" end=">"
> >> contains=dtsReference,dtsBinaryProperty,dtsStringProperty,dtsComment
> >> syntax region dtsCommentInner start="/\*" end="\*/"
> >>
> >> @@ -21,6 +22,7 @@ hi def link dtsBinaryProperty Number
> >> hi def link dtsStringProperty String
> >> hi def link dtsKeyword Include
> >> hi def link dtsLabel Label
> >> +hi def link dtsNode Structure
> >> hi def link dtsReference Macro
> >> hi def link dtsComment Comment
> >> hi def link dtsCommentInner Comment
> >> --
> >> 1.8.1.4
> >
>
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.