This commit is contained in:
parent
4cfd843564
commit
b0e0fa145b
|
@ -118,6 +118,7 @@ module.exports = grammar({
|
|||
),
|
||||
)),
|
||||
|
||||
// FIXME
|
||||
select_expression: ($) => seq(
|
||||
"select",
|
||||
"(",
|
||||
|
@ -127,6 +128,7 @@ module.exports = grammar({
|
|||
")",
|
||||
),
|
||||
|
||||
// FIXME
|
||||
select_value: ($) => seq(
|
||||
field("type", alias(
|
||||
choice("product_variable", "release_variable", "variant"),
|
||||
|
@ -137,6 +139,7 @@ module.exports = grammar({
|
|||
")",
|
||||
),
|
||||
|
||||
// FIXME
|
||||
soong_config_variable: ($) => seq(
|
||||
field("type", alias("soong_config_variable", $.selection_type)),
|
||||
"(",
|
||||
|
@ -151,6 +154,9 @@ module.exports = grammar({
|
|||
")",
|
||||
),
|
||||
|
||||
// FIXME
|
||||
// FIXME: keyword.conditional or keyword.directive for 'select'
|
||||
// FIXME: builtin for unset and default?
|
||||
select_cases: ($) => seq(
|
||||
"{",
|
||||
optional(trailingCommaSeparated($.select_case)),
|
||||
|
@ -159,12 +165,14 @@ module.exports = grammar({
|
|||
"}",
|
||||
),
|
||||
|
||||
// FIXME
|
||||
select_case: ($) => seq(
|
||||
field("pattern", $._string_literal),
|
||||
":",
|
||||
field("value", $._case_value)
|
||||
),
|
||||
|
||||
// FIXME
|
||||
default_case: ($) => seq(
|
||||
field("pattern", "default"),
|
||||
":",
|
||||
|
|
|
@ -49,6 +49,15 @@
|
|||
field: (identifier) @variable.member))
|
||||
; }}}
|
||||
|
||||
; Built-ins {{{
|
||||
[
|
||||
(unset)
|
||||
"default"
|
||||
] @variable.builtin
|
||||
|
||||
(selection_type) @function.builtin
|
||||
; }}}
|
||||
|
||||
; Expressions {{{
|
||||
(map_expression
|
||||
(property
|
||||
|
|
Loading…
Reference in a new issue