Enhancements: Batch, HTML, JS

- [Batch] Fix that using "::" as comments sometimes failed
- [html] Tabs give 2 spaces by default
- [JS] Tabs give 2 spaces by default; Allow comments to be inline with code.
- [Sh] Also highlight PKGBUILD; Fix `${v%tail}` not highlighted; Use shellcheck as linter
This commit is contained in:
davidhcefx 2023-04-13 22:13:39 +08:00
parent f0e9c6c863
commit 3465607c5a
4 changed files with 6 additions and 5 deletions

View file

@ -53,4 +53,4 @@ color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
## Comments
color brightblue start="^\s*/\*" end="\*/"
color brightblue "^\s*//.*$"
color brightblue "(^|\s)//.*$"