diff options
| author | throwawayaccount12345-1 <77868642+throwawayaccount12345-1@users.noreply.github.com> | 2021-11-18 13:51:53 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-18 13:51:53 -0300 |
| commit | 2a3509e5601c1f9f7e57ab9a96e5538523ab2e36 (patch) | |
| tree | 3fc8d49e559e9e724a541a2228947d0f737b56e1 /rc/filetype/sh.kak | |
| parent | e7100dc87434d933fd8268e5bf70080b627750c5 (diff) | |
sh filetype: do not highlight an empty array as a function
`x=` and `x+=` should not be highlighted as a function.
```
x=()
x+=()
```
Diffstat (limited to 'rc/filetype/sh.kak')
| -rw-r--r-- | rc/filetype/sh.kak | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/filetype/sh.kak b/rc/filetype/sh.kak index 156cf69d..f853199c 100644 --- a/rc/filetype/sh.kak +++ b/rc/filetype/sh.kak @@ -61,7 +61,7 @@ evaluate-commands %sh{ add-highlighter shared/sh/code/operators regex [\[\]\(\)&|]{1,2} 0:operator add-highlighter shared/sh/code/variable regex ((?<![-:])\b\w+)= 1:variable add-highlighter shared/sh/code/alias regex \balias(\h+[-+]\w)*\h+([\w-.]+)= 2:variable -add-highlighter shared/sh/code/function regex ^\h*(\S+)\h*\(\) 1:function +add-highlighter shared/sh/code/function regex ^\h*(\S+(?<!=))\h*\(\) 1:function add-highlighter shared/sh/code/unscoped_expansion regex (?<!\\)(?:\\\\)*\K\$(\w+|#|@|\?|\$|!|-|\*) 0:value add-highlighter shared/sh/double_string/expansion regex (?<!\\)(?:\\\\)*\K\$(\w+|#|@|\?|\$|!|-|\*|\{.+?\}) 0:value |
