mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
11 lines
372 B
Python
11 lines
372 B
Python
# 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
|