]> git.eshelyaron.com Git - emacs.git/commit
Fix tree-sitter indent preset function (bug#60270)
authorYuan Fu <casouri@gmail.com>
Mon, 16 Jan 2023 08:23:47 +0000 (00:23 -0800)
committerYuan Fu <casouri@gmail.com>
Mon, 16 Jan 2023 08:32:57 +0000 (00:32 -0800)
commit3d1e74c82a84d9b2c5ad45a377512b5ee83b8d47
tree30e85e1b9d5340d7cba51aeff98adf1042763d82
parent352e41016bcaab8566347091b6b61908a9b57b57
Fix tree-sitter indent preset function (bug#60270)

* lisp/treesit.el (treesit-simple-indent-presets): Fix
prev-adaptive-prefix so it doesn't return nil if the previous line has
no prefix.
* test/lisp/progmodes/c-ts-mode-resources/indent.erts: New test.
lisp/treesit.el
test/lisp/progmodes/c-ts-mode-resources/indent.erts