main: Fix function definition highlighting

Fixes #223 #237
This commit is contained in:
Matthew Martin 2018-10-21 14:47:51 -05:00
commit 64b13f5c5b
21 changed files with 661 additions and 23 deletions

View file

@ -33,13 +33,13 @@ BUFFER=$'function f { pwd }; function { pwd }'
expected_region_highlight=(
'1 8 reserved-word' # function
'10 10 default' # f
'12 12 reserved-word "issue #237"' # {
'14 16 command "issue #237"' # pwd
'18 18 reserved-word "issue #237"' # }
'10 10 function-definition' # f
'12 12 reserved-word' # {
'14 16 builtin' # pwd
'18 18 reserved-word' # }
'19 19 commandseparator' # ;
'21 28 reserved-word' # function
'30 30 reserved-word "issue #237"' # {
'32 34 command "issue #237"' # pwd
'36 36 reserved-word "issue #237"' # }
'30 30 reserved-word' # {
'32 34 builtin' # pwd
'36 36 reserved-word' # }
)