X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=runtime%2Fsyntax%2Fsh.yaml;h=5471e7ada2bb3394af13257169b204bf63b263cf;hb=cef32d4ac7f7bbc1f57fc67f8a1788edddfbe771;hp=88f72033b003f50264c07cd96ba022b7939f3ea0;hpb=7d422bfae2742876d42446bb294aab1b25786c95;p=micro.git diff --git a/runtime/syntax/sh.yaml b/runtime/syntax/sh.yaml index 88f72033..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,7 @@ rules: rules: [] - comment: - start: "#" + start: "(^|\\s)#" end: "$" rules: - todo: "(TODO|XXX|FIXME):?"