On 11.03.2013 20:29, Markus Pargmann wrote:
> Small improvement to highlight nodes with addresses in devicetree files.
> 
> Signed-off-by: Markus Pargmann <[email protected]>

Nice :)

Acked-by: Daniel Mack <[email protected]>


Thanks,
Daniel


> ---
> 
> Changes in v2:
> - Highlight all nodes, not only those with an address
> 
>  runtime/syntax/dts.vim | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/runtime/syntax/dts.vim b/runtime/syntax/dts.vim
> index 84e37ae..a941707 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]\+\|\)[[:space:]]*{/he=e-1
>  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 
> 

-- 
-- 
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.


Raspunde prin e-mail lui