Commit a3c2946
authored
Improve Nu file detection (#1260)
This adds shebang detection (including arguments to `env`) and
`x-shellscript` mime types to the Nu lexer.
As far as I can see there are no tests for this that I could/should
update. Please do point out if I missed anything in that regard.
Fixes #1259.1 parent e841b1a commit a3c2946
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
| |||
118 | 123 | | |
119 | 124 | | |
120 | 125 | | |
121 | | - | |
| 126 | + | |
0 commit comments