File: command_statement.txt

package info (click to toggle)
tree-sitter-vim 0.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,724 kB
  • sloc: ansic: 152,370; javascript: 2,370; lisp: 315; makefile: 119; python: 51; cpp: 14; sh: 9
file content (103 lines) | stat: -rw-r--r-- 2,870 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
================================================================================
Command alone
================================================================================

com
command

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

(script_file
  (command_statement)
  (command_statement))

================================================================================
Command with name
================================================================================

com List
command ListCmd

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

(script_file
  (command_statement
    name: (command_name))
  (command_statement
    name: (command_name)))

================================================================================
Command with repl
================================================================================

command Test call Test()
command ListCmd Echo error

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

(script_file
  (command_statement
    name: (command_name)
    repl: (command))
  (command_statement
    name: (command_name)
    repl: (command)))

================================================================================
Command with attribute
================================================================================

command -nargs=1 Error echo "There is an error"
com -range Test echo ""
com -range=% Test echo ""
com -register Test echo ""
com -nargs=* -bang -complete=customlist,EditFileComplete Test call Test()
command -nargs=* -complete=file -bang Termdebug call s:StartDebug(<bang>0, <f-args>)
command -nargs=+ -complete=file -bang TermdebugCommand call s:StartDebugCommand(<bang>0, <f-args>)

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

(script_file
  (command_statement
    (command_attribute
      val: (integer_literal))
    name: (command_name)
    repl: (command))
  (command_statement
    (command_attribute)
    name: (command_name)
    repl: (command))
  (command_statement
    (command_attribute
      val: (pattern_multi))
    name: (command_name)
    repl: (command))
  (command_statement
    (command_attribute)
    name: (command_name)
    repl: (command))
  (command_statement
    (command_attribute
      val: (pattern_multi))
    (command_attribute)
    (command_attribute
      val: (behavior
        val: (identifier)))
    name: (command_name)
    repl: (command))
  (command_statement
    (command_attribute
      val: (pattern_multi))
    (command_attribute
      val: (behavior))
    (command_attribute)
    name: (command_name)
    repl: (command))
  (command_statement
    (command_attribute
      val: (pattern_multi))
    (command_attribute
      val: (behavior))
    (command_attribute)
    name: (command_name)
    repl: (command)))