mirror of
https://github.com/HiPhish/rainbow-delimiters.nvim.git
synced 2024-09-16 14:24:05 +02:00
Add Python literal string interpolation pattern
This commit is contained in:
parent
2200900e3c
commit
580bc045c7
3 changed files with 9 additions and 0 deletions
|
@ -43,6 +43,7 @@ Added
|
|||
- Missing patterns for Python:
|
||||
- `dict_pattern`
|
||||
- `import_from_statement`
|
||||
- `interpolation` (literal string interpolation)
|
||||
- `list_pattern`
|
||||
- `tuple_pattern`
|
||||
- Missing patterns for Rust:
|
||||
|
|
|
@ -68,3 +68,8 @@
|
|||
(import_from_statement
|
||||
"(" @delimiter
|
||||
")" @delimiter @sentinel) @container
|
||||
|
||||
(string
|
||||
(interpolation
|
||||
"{" @delimiter
|
||||
"}" @delimiter @sentinel) @container)
|
||||
|
|
|
@ -44,3 +44,6 @@ print(zero[zero[zero[0]]])
|
|||
|
||||
print(2 + ((((3)))))
|
||||
print(len(my_list))
|
||||
|
||||
# Format-string with embedded delimiters
|
||||
print(f'The sum of 2 and 3 is {2 + (1 + 2)}')
|
||||
|
|
Loading…
Reference in a new issue