Update generated neovim config
This commit is contained in:
@ -3,3 +3,7 @@ a
|
||||
multiline
|
||||
string
|
||||
]]
|
||||
|
||||
print [[
|
||||
test
|
||||
]]
|
||||
|
||||
@ -28,6 +28,7 @@ describe("indent Lua:", function()
|
||||
run:new_line("string.lua", { on_line = 2, text = "x", indent = 0 })
|
||||
run:new_line("string.lua", { on_line = 3, text = "x", indent = 2 })
|
||||
run:new_line("string.lua", { on_line = 4, text = "x", indent = 4 })
|
||||
run:new_line("string.lua", { on_line = 9, text = "x", indent = 0 })
|
||||
run:new_line("table.lua", { on_line = 1, text = "b = 0,", indent = 2 })
|
||||
run:new_line("table.lua", { on_line = 5, text = "4,", indent = 4 })
|
||||
run:new_line("table.lua", { on_line = 7, text = "4,", indent = 4 })
|
||||
|
||||
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
class Foo
|
||||
{
|
||||
private string $_baz;
|
||||
|
||||
public string $baz {
|
||||
&get => $this->_baz;
|
||||
set {
|
||||
$this->_baz = strtoupper($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -67,5 +67,10 @@ describe("indent PHP:", function()
|
||||
run:new_line("issue-6888.php", { on_line = 6, text = "$a;", indent = 0 })
|
||||
run:new_line("issue-6888.php", { on_line = 8, text = "$a;", indent = 4 })
|
||||
run:new_line("issue-6888.php", { on_line = 11, text = "$a;", indent = 0 })
|
||||
run:new_line("property-hooks.php", { on_line = 7, text = "get;", indent = 8 })
|
||||
run:new_line("property-hooks.php", { on_line = 8, text = "set;", indent = 8 })
|
||||
run:new_line("property-hooks.php", { on_line = 9, text = "$a;", indent = 12 })
|
||||
run:new_line("property-hooks.php", { on_line = 11, text = "get;", indent = 8 })
|
||||
run:new_line("property-hooks.php", { on_line = 12, text = "get;", indent = 4 })
|
||||
end)
|
||||
end)
|
||||
|
||||
@ -1,5 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace Foo\Bar;
|
||||
//^^^^^^^ @keyword.type
|
||||
// ^^^ @module
|
||||
// ^^^ @module
|
||||
|
||||
use Foo\Baz as Baaz;
|
||||
//^ @keyword.import
|
||||
// ^^^ @module
|
||||
// ^^^ @type
|
||||
// ^^ @keyword.operator
|
||||
// ^^^^ @type.definition
|
||||
|
||||
use function Foo\foo as fooo;
|
||||
// ^^^^^^^^ @keyword.function
|
||||
// ^^^ @function
|
||||
// ^^^^ @function
|
||||
|
||||
use const Foo\FOO as FOOO;
|
||||
// ^^^^^ @keyword.modifier
|
||||
// ^^^ @constant
|
||||
// ^^^^ @constant
|
||||
|
||||
use Foo\Baz\{
|
||||
// ^^^ @module
|
||||
// ^^^ @module
|
||||
Bar,
|
||||
//^^^ @type
|
||||
function foo,
|
||||
//^^^^^^^^ @keyword.function
|
||||
// ^^^ @function
|
||||
const FOO,
|
||||
//^^^^^ @keyword.modifier
|
||||
// ^^^ @constant
|
||||
};
|
||||
|
||||
abstract class A
|
||||
{
|
||||
protected readonly static $a;
|
||||
|
||||
@ -1,12 +1,13 @@
|
||||
bring cloud;
|
||||
// <- @keyword
|
||||
// <- @keyword.import
|
||||
// ^ @module
|
||||
|
||||
class Foo {
|
||||
// <- @keyword.type
|
||||
// ^ @type
|
||||
// ^ @punctuation.bracket
|
||||
name: str;
|
||||
//^ @variable.member
|
||||
//^ @property
|
||||
// ^ @type.builtin
|
||||
// ^ @punctuation.delimiter
|
||||
new(name: str) {
|
||||
@ -14,6 +15,7 @@ class Foo {
|
||||
// ^ @variable
|
||||
this.name = name;
|
||||
// ^ @punctuation.delimiter
|
||||
// ^ @variable.member
|
||||
// ^ @operator
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user