Skip to content

Commit 6b15bf3

Browse files
fix shell highlighting for variables with leading underscore (zyedidia#3833)
1 parent 421da67 commit 6b15bf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/syntax/sh.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ rules:
4242
- statement: "\\s+(-[A-Za-z]+|--[a-z]+)"
4343

4444
- identifier: "\\$\\{[\\w:!%&=+#~@*^$?, .\\-\\/\\[\\]]+\\}"
45-
- identifier: "\\$([0-9_!#@*$?-]|[A-Za-z_]\\w*)"
45+
- identifier: "\\$([0-9!#@*$?-]|[A-Za-z_]\\w*)"
4646

4747
- constant.string:
4848
start: "\""

0 commit comments

Comments
 (0)