aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp/progmodes/sh-script-resources (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix indentation and fontification in shell-script (Bug#26217)Mauro Aranda2023-10-141-0/+7
| | | | | | | | | | | | * lisp/progmodes/sh-script.el (sh-smie--sh-keyword-p): Treat "do" as special, like we treat "in". (sh-smie--sh-keyword-in-p): Change signature. Take the token to decide correctly if it's a keyword. (sh-font-lock-keywords-var-1): Add do. * test/lisp/progmodes/sh-script-resources/sh-indents.erts: New test. * test/lisp/progmodes/sh-script-tests.el (sh-script-test-do-fontification): New test.
* Improve indentation of some shell script formsLars Ingebrigtsen2022-02-071-0/+40
* lisp/progmodes/sh-script.el (sh-smie--default-backward-token): Don't skip past things like "true;then" (bug#53817).