diff --git a/queries/highlights.scm b/queries/highlights.scm index 9eae8a0..a28d844 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -49,4 +49,10 @@ field: (identifier) @variable.member)) ; }}} +; Expressions {{{ +(map_expression + (property + field: (identifier) @property)) +; }}} + ; vim: sw=2 foldmethod=marker diff --git a/test/highlight/properties.bp b/test/highlight/properties.bp new file mode 100644 index 0000000..6bc97ef --- /dev/null +++ b/test/highlight/properties.bp @@ -0,0 +1,7 @@ +foo { + field: { + // <- variable.member + key: 42, + // <- property + }, +}