branch: externals/matlab-mode
commit e13dd73539f63d9e77cd28b963728b12ed1a09ea
Author: John Ciolfi <[email protected]>
Commit: John Ciolfi <[email protected]>

    doc/install-matlab-tree-sitter-grammar.org: explain how to manually build 
the grammar
---
 doc/install-matlab-tree-sitter-grammar.org | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/doc/install-matlab-tree-sitter-grammar.org 
b/doc/install-matlab-tree-sitter-grammar.org
index c3841d0419..b2ff7de3cf 100644
--- a/doc/install-matlab-tree-sitter-grammar.org
+++ b/doc/install-matlab-tree-sitter-grammar.org
@@ -162,6 +162,15 @@ tree-sitter ABI is 15. There are different methods for 
installing this.
        : Enter the C++ compiler to use (default: auto-detect):
        : Install to (default: ~/.emacs.d/tree-sitter):
 
+       Alternatively, you can manually build it. For example, on Linux
+
+       #+begin_src bash
+       cd tree-sitter-matlab/src
+       cc -fPIC -O -c -I. parser.c
+       cc -fPIC -O -c -I. scanner.c
+       cc -fPIC -shared parser.o scanner.o -o 
~/.emacs.d/tree-sitter/libtree-sitter-matlab.so
+       #+end_src
+
      - _Windows_
 
        Follow the same Windows build step as in Method 2.

Reply via email to