File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ class Bash < Scanner
56
56
add ( COMMANDS , :method ) .
57
57
add ( BASH_COMMANDS , :method ) .
58
58
add ( PROGRAMS , :method ) .
59
- add ( VARIABLES , :pre_type ) .
60
- add ( BASH_VARIABLES , :pre_type )
59
+ add ( VARIABLES , :predefined ) .
60
+ add ( BASH_VARIABLES , :predefined )
61
61
62
62
attr_reader :state , :quote
63
63
@@ -126,7 +126,7 @@ def scan_tokens encoder, options
126
126
elsif match = scan ( / \$ \( [^\) ]+ \) /ox )
127
127
kind = :shell
128
128
elsif match = scan ( PRE_CONSTANTS )
129
- kind = :pre_constant
129
+ kind = :predefined_constant
130
130
elsif match = scan ( /[^\s '"]*[A-Za-z_][A-Za-z_0-9]*\+ ?=/ )
131
131
match =~ /(.*?)([A-Za-z_][A-Za-z_0-9]*)(\+ ?=)/
132
132
str = $1
@@ -185,7 +185,7 @@ def scan_tokens encoder, options
185
185
next
186
186
#kind = :symbol
187
187
elsif match = scan ( PRE_CONSTANTS )
188
- kind = :pre_constant
188
+ kind = :predefined_constant
189
189
elsif match = scan ( / (?: \$ \( \( .*?\) \) ) /x )
190
190
kind = :global_variable
191
191
elsif match = scan ( / \$ \{ ?[A-Za-z_][A-Za-z_\d ]*\} ? /x )
You can’t perform that action at this time.
0 commit comments