aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorTheodor Thornhill2022-10-09 21:22:55 +0200
committerYuan Fu2022-10-10 10:25:50 -0700
commitceb9591e5dcb5264573371a573433fd76320954e (patch)
tree3c29b10ba6f57bd7fce01c5b21018782d2f54c83 /src/alloc.c
parent861e1fb595eb1f01ca5c137fb4830695f9c1e7d2 (diff)
downloademacs-ceb9591e5dcb5264573371a573433fd76320954e.tar.gz
emacs-ceb9591e5dcb5264573371a573433fd76320954e.zip
Add tree-sitter functionality to js-mode
The diff for js-mode, js-json-mode, js-jsx-mode are a bit strange, but all we did is to wrap some the old code in (if tree-sitter (tree-sitter-enable) ...some old-code) ...other old-code (that’s tree-sitter-agnostic) * lisp/progmodes/js.el (treesit): Add tree-sitter dependency (js-use-treesitter) (js-json-use-treesitter): New custom options. (js--treesit-keywords) (js--treesit-settings) (js--treesit-indent-rules) (js--json-treesit-settings) (js--json-treesit-indent-rules): New variables. (js--treesit-backward-up-list) (js-treesit-current-defun) (js--treesit-move-to-node) (js--treesit-beginning-of-defun, js--treesit-end-of-defun) (js--treesit-enable) (js--json-treesit-enable): New functions. (js-mode, js-json-mode, js-jsx-mode): Add support for tree-sitter functionalities.
Diffstat (limited to 'src/alloc.c')
0 files changed, 0 insertions, 0 deletions