mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
PY-19242 Add autocompletion for % format strings
* Extract separate completion provider for formatted string arguments add patterns * Add tests
This commit is contained in:
@@ -0,0 +1 @@
|
||||
r"{completed}".format(completed="hood")
|
||||
@@ -0,0 +1 @@
|
||||
r"{compl<caret>}".format(completed="hood")
|
||||
@@ -0,0 +1 @@
|
||||
"%(completion)s" % dict(completion)
|
||||
@@ -0,0 +1 @@
|
||||
"%(completion)s" % dict(complet<caret>)
|
||||
@@ -0,0 +1 @@
|
||||
"format: %(fooo)s" % {"boo":1, "fooo"}
|
||||
@@ -0,0 +1 @@
|
||||
"format: %(fooo)s" % {"boo":1, "foo<caret>"}
|
||||
@@ -0,0 +1 @@
|
||||
"format: %(fooo)s" % {"fooo"}
|
||||
@@ -0,0 +1 @@
|
||||
"format: %(fooo)s" % {"fo<caret>"}
|
||||
@@ -0,0 +1 @@
|
||||
"to be %(completed)s" % dict(completed="smth")
|
||||
@@ -0,0 +1 @@
|
||||
"to be %(comple<caret>)s" % dict(completed="smth")
|
||||
@@ -0,0 +1 @@
|
||||
"format: %(completion)s" % {"completion": "smth"}
|
||||
@@ -0,0 +1 @@
|
||||
"format: %(complet<caret>)s" % {"completion": "smth"}
|
||||
@@ -0,0 +1 @@
|
||||
r"%(completion)s" % dict(completion="smth")
|
||||
@@ -0,0 +1 @@
|
||||
r"%(compl<caret>)s" % dict(completion="smth")
|
||||
@@ -0,0 +1 @@
|
||||
"to be %(completion)s" % dict(completion="smth")
|
||||
@@ -0,0 +1 @@
|
||||
"to be %(complet<caret>)s" % dict(completion="smth")
|
||||
Reference in New Issue
Block a user