aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp/progmodes/sh-script-resources (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make sh-script-tests.el more robustMichael Albinus2024-04-051-0/+4
| | | | | | | * test/lisp/progmodes/sh-script-tests.el (test-sh-script-indentation) (test-basic-sh-indentation, test-indent-after-continuation): * test/lisp/progmodes/sh-script-resources/sh-indents.erts (Code): Skip if `sh-indent-supported-here' is nil. (Bug#70196)
* 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).