docs: json, tests, lsp #35754

Close #35926
Close #35818

Co-authored-by: skewb1k <skewb1kunix@gmail.com>
Co-authored-by: glepnir <glephunter@gmail.com>
This commit is contained in:
Justin M. Keyes
2025-09-28 23:57:59 -04:00
committed by GitHub
parent af1b17f17e
commit 2739ab485e
18 changed files with 186 additions and 138 deletions

View File

@@ -7011,6 +7011,7 @@ M.funcs = {
{ 'count', 'integer' },
},
signature = 'match({expr}, {pat} [, {start} [, {count}]])',
returns = 'integer',
},
matchadd = {
args = { 2, 5 },
@@ -7080,10 +7081,11 @@ M.funcs = {
{ 'pattern', 'string' },
{ 'priority', 'integer' },
{ 'id', 'integer' },
{ 'dict', 'string' },
{ 'dict', 'table' },
},
signature = 'matchadd({group}, {pattern} [, {priority} [, {id} [, {dict}]]])',
tags = { 'E798', 'E799', 'E801', 'E957' },
returns = 'integer',
},
matchaddpos = {
args = { 2, 5 },
@@ -7132,9 +7134,10 @@ M.funcs = {
{ 'pos', 'any[]' },
{ 'priority', 'integer' },
{ 'id', 'integer' },
{ 'dict', 'string' },
{ 'dict', 'table' },
},
signature = 'matchaddpos({group}, {pos} [, {priority} [, {id} [, {dict}]]])',
returns = 'integer|table',
},
matcharg = {
args = 1,
@@ -7155,6 +7158,7 @@ M.funcs = {
name = 'matcharg',
params = { { 'nr', 'integer' } },
signature = 'matcharg({nr})',
returns = 'string[]',
},
matchbufline = {
args = { 4, 5 },
@@ -7212,6 +7216,7 @@ M.funcs = {
{ 'dict', 'table' },
},
signature = 'matchbufline({buf}, {pat}, {lnum}, {end}, [, {dict}])',
returns = 'string[]',
},
matchdelete = {
args = { 1, 2 },
@@ -7261,6 +7266,7 @@ M.funcs = {
{ 'count', 'integer' },
},
signature = 'matchend({expr}, {pat} [, {start} [, {count}]])',
returns = 'integer',
},
matchfuzzy = {
args = { 2, 3 },
@@ -7331,6 +7337,7 @@ M.funcs = {
name = 'matchfuzzy',
params = { { 'list', 'any[]' }, { 'str', 'string' }, { 'dict', 'table' } },
signature = 'matchfuzzy({list}, {str} [, {dict}])',
returns = 'table',
},
matchfuzzypos = {
args = { 2, 3 },
@@ -7360,6 +7367,7 @@ M.funcs = {
name = 'matchfuzzypos',
params = { { 'list', 'any[]' }, { 'str', 'string' }, { 'dict', 'table' } },
signature = 'matchfuzzypos({list}, {str} [, {dict}])',
returns = 'table',
},
matchlist = {
args = { 2, 4 },
@@ -7385,6 +7393,7 @@ M.funcs = {
{ 'count', 'integer' },
},
signature = 'matchlist({expr}, {pat} [, {start} [, {count}]])',
returns = 'string[]',
},
matchstr = {
args = { 2, 4 },
@@ -7411,6 +7420,7 @@ M.funcs = {
{ 'count', 'integer' },
},
signature = 'matchstr({expr}, {pat} [, {start} [, {count}]])',
returns = 'string',
},
matchstrlist = {
args = { 2, 3 },
@@ -7451,6 +7461,7 @@ M.funcs = {
name = 'matchstrlist',
params = { { 'list', 'string[]' }, { 'pat', 'string' }, { 'dict', 'table' } },
signature = 'matchstrlist({list}, {pat} [, {dict}])',
returns = 'string[]',
},
matchstrpos = {
args = { 2, 4 },
@@ -7482,6 +7493,7 @@ M.funcs = {
{ 'count', 'integer' },
},
signature = 'matchstrpos({expr}, {pat} [, {start} [, {count}]])',
returns = 'table',
},
max = {
args = 1,