Skip to content

Commit

Permalink
optional [argument]
Browse files Browse the repository at this point in the history
fix #1
  • Loading branch information
justinmk committed Jun 25, 2023
1 parent 8c0469d commit 1860061
Show file tree
Hide file tree
Showing 6 changed files with 233 additions and 194 deletions.
211 changes: 211 additions & 0 deletions corpus/argument_modifiers.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,211 @@
================================================================================
argument
================================================================================
argument: {arg}
tuple: {arg,arg}
keycode: CTRL-R {CTRL-R} {register CTRL-F}
list of { uri:string, name: string } tables


--------------------------------------------------------------------------------

(help_file
(block
(line
(word)
(argument
(word)))
(line
(word)
(argument
(word)))
(line
(word)
(keycode)
(argument
(word))
(word)
(ERROR
(word))
(keycode)
(word))
(line
(word)
(word)
(word)
(word)
(word)
(word)
(word)
(word)
(word))))

================================================================================
multiple arguments on the same line
================================================================================
{foo} {bar} {baz}


--------------------------------------------------------------------------------

(help_file
(block
(line
(argument
(word))
(argument
(word))
(argument
(word)))))

================================================================================
argument in parentheses
================================================================================
({aaa})
vim.foo({bar})
vim.foo( {bar})
nvim_foo({bar})
nvim_foo({bar},{baz})
nvim_foo({bar}, {baz})
nvim_buf_detach_event[{buf}]


--------------------------------------------------------------------------------

(help_file
(block
(line
(word)
(argument
(word))
(word))
(line
(word)
(word)
(argument
(word))
(word))
(line
(word)
(word)
(argument
(word))
(word))
(line
(word)
(word)
(argument
(word))
(word))
(line
(word)
(word)
(argument
(word))
(word)
(argument
(word))
(word))
(line
(word)
(word)
(argument
(word))
(word)
(argument
(word))
(word))
(line
(word)
(optional_arg
(word)))))

================================================================================
NOT an argument
================================================================================
a '{' '}' block
{foo "{bar}" `{baz}` |{baz| } {}
foo { bar
{ {} foo{{ foo{{{
{{
{{{
{ } foo
, inside { }:
\} literal } x
\{ literal { x

===============
3. Netrw *netrw-ref* {{{1

EXTERNAL *netrw-externapp* {{{2


--------------------------------------------------------------------------------

(help_file
(block
(line
(word)
(word)
(word)
(word)
(word)
(word))
(line
(word)
(ERROR
(word))
(word)
(codespan
(word))
(taglink
(word))
(word)
(word))
(line
(word)
(word)
(word))
(line
(word)
(word)
(word)
(word))
(line
(word))
(line
(word))
(line
(word)
(word)
(word))
(line
(word)
(word)
(word)
(word))
(line
(word)
(word)
(word)
(word))
(line
(word)
(word)
(word)
(word)))
(block
(line
(h1
(word)
(word)
(tag
(word))
(word))))
(block
(line
(h3
(uppercase_name)
(tag
(word))
(word)))))
Loading

0 comments on commit 1860061

Please sign in to comment.