change highlights

This commit is contained in:
Dmitriy Pleshevskiy 2022-12-09 19:05:04 +03:00
parent b3a382ff5b
commit 8b2a240f22
Signed by: pleshevskiy
GPG Key ID: 1B59187B161C0215
4 changed files with 37 additions and 14 deletions

View File

@ -11,7 +11,7 @@ timeline mixer: "" {
} }
People discovery: "People discovery \nservice" People discovery: "People discovery \nservice"
admixer: Ad mixer { admixer: Ad mixer {
fill: "#c1a2f3" style.fill: "#c1a2f3"
} }
onboarding service: "Onboarding \nservice" onboarding service: "Onboarding \nservice"
@ -55,7 +55,7 @@ Android: {
web -> twitter fe web -> twitter fe
timeline scorer: "Timeline\nScorer" { timeline scorer: "Timeline\nScorer" {
fill: "#ffdef1" style.fill: "#ffdef1"
} }
home ranker: Home Ranker home ranker: Home Ranker
@ -67,7 +67,7 @@ timeline mixer -> home ranker: {
} }
timeline mixer -> timeline service timeline mixer -> timeline service
home mixer: Home mixer { home mixer: Home mixer {
# fill: "#c1a2f3" # style.fill: "#c1a2f3"
} }
container0.graphql -> home mixer: { container0.graphql -> home mixer: {
style.stroke-dash: 4 style.stroke-dash: 4
@ -94,7 +94,7 @@ prediction service2: Prediction Service {
icon: https://cdn-icons-png.flaticon.com/512/6461/6461819.png icon: https://cdn-icons-png.flaticon.com/512/6461/6461819.png
} }
home scorer: Home Scorer { home scorer: Home Scorer {
fill: "#ffdef1" style.fill: "#ffdef1"
} }
manhattan: Manhattan manhattan: Manhattan
memcache: Memcache { memcache: Memcache {
@ -102,15 +102,15 @@ memcache: Memcache {
} }
fetch: Fetch { fetch: Fetch {
multiple: true style.multiple: true
shape: step shape: step
} }
feature: Feature { feature: Feature {
multiple: true style.multiple: true
shape: step shape: step
} }
scoring: Scoring { scoring: Scoring {
multiple: true style.multiple: true
shape: step shape: step
} }
fetch -> feature fetch -> feature

View File

@ -8,11 +8,14 @@
; Literals ; Literals
;------------------------------------------------------------------------------- ;-------------------------------------------------------------------------------
(language) @string.special (language) @type.qualifier
(container_key (string) @string.special) (container_key (string) @string)
(shape_key (string) @string) (shape_key (string) @string)
(label) @string (label) @string.special
(attr_value) @string (attr_value) @string
(integer) @number
(float) @float
(boolean) @boolean
; Comments ; Comments
;------------------------------------------------------------------------------- ;-------------------------------------------------------------------------------
@ -33,6 +36,9 @@
[ [
"{" "{"
"}" "}"
"|"
"|`"
"`|"
] @punctuation.bracket ] @punctuation.bracket
; Special (nvim-treesitter overwrite previous rules) ; Special (nvim-treesitter overwrite previous rules)

View File

@ -26,3 +26,20 @@ foo: Label {
# ^ property # ^ property
} }
foo: {
style: {
opacity: 0.5
# ^ float
fill: red
# ^ string
stroke: 'red'
# ^ string
stroke-width: 5
# ^ number
shadow: true
# ^ boolean
animated: false
# ^ boolean
}
}

View File

@ -1,22 +1,22 @@
foo.'baz'.biz foo.'baz'.biz
# <- constant # <- constant
# ^ punctuation.delimiter # ^ punctuation.delimiter
# ^ string.special # ^ string
# ^ punctuation.delimiter # ^ punctuation.delimiter
# ^ variable # ^ variable
'biz': 'Baz' 'biz': 'Baz'
# <- string # <- string
# ^ string # ^ string.special
foo: Foo Bar foo: Foo Bar
# <- variable # <- variable
# ^ punctuation.delimiter # ^ punctuation.delimiter
# ^ string # ^ string.special
foo: Foo Bar { foo: Foo Bar {
# <- constant # <- constant
# ^ string # ^ string.special
# ^ punctuation.bracket # ^ punctuation.bracket
bar.baz bar.baz