aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/starlark/test.bzl
blob: 88251f61575983813890968445015b4b139cfb44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# split
# ^ @comment
assert_eq('foo bar'.split(' '), ['foo', 'bar'])
# ^ @keyword
#        ^ @punctuation.bracket
#          ^ @string
#                  ^ @punctuation.delimiter
assert_eq('foo bar foo'.rsplit(' ', 1), ['foo bar', 'foo'])
#                                   ^ @number
assert_eq("foo %s bar %d" % ("arg1", 2), "foo arg1 bar 2")
#              ^ @character