X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=runtime%2Fsyntax%2Fsh.yaml;h=5471e7ada2bb3394af13257169b204bf63b263cf;hb=1739e0c09c04aadceee8d9a2f9b290622cdd0604;hp=aa0263bb15a679501de96ed00eec0d7b8a890e73;hpb=2fcb40d5a9f505e39519fd5c32e3754cd0e83dd5;p=micro.git diff --git a/runtime/syntax/sh.yaml b/runtime/syntax/sh.yaml index aa0263bb..5471e7ad 100644 --- a/runtime/syntax/sh.yaml +++ b/runtime/syntax/sh.yaml @@ -1,8 +1,8 @@ filetype: shell detect: - filename: "(\\.sh$|\\.bash|\\.bashrc|bashrc|\\.bash_aliases|bash_aliases|\\.bash_functions|bash_functions|\\.bash_profile|bash_profile|Pkgfile|pkgmk.conf|profile|rc.conf|PKGBUILD|.ebuild\\$|APKBUILD)" - header: "^#!.*/(env +)?(ba)?sh( |$)" + filename: "(\\.sh$|\\.bash|\\.ash|\\.bashrc|bashrc|\\.bash_aliases|bash_aliases|\\.bash_functions|bash_functions|\\.bash_profile|bash_profile|\\.profile|profile|Pkgfile|pkgmk.conf|profile|rc.conf|PKGBUILD|.ebuild\\$|APKBUILD)" + header: "^#!.*/(env +)?(ba)?(a)?sh( |$)" rules: # Numbers @@ -26,6 +26,7 @@ rules: - constant.string: start: "\"" end: "\"" + skip: "\\\\." rules: - constant.specialChar: "\\\\." @@ -35,7 +36,8 @@ rules: rules: [] - comment: - start: "#" + start: "(^|\\s)#" end: "$" rules: - todo: "(TODO|XXX|FIXME):?" +