summaryrefslogtreecommitdiff
path: root/admin/notes/tree-sitter
Commit message (Collapse)AuthorAgeFilesLines
* ; * admin/notes/tree-sitter/treesit_record_change: Update.Yuan Fu2023-06-291-6/+174
|
* ; Remove 'build-module' and 'html-manual' directories from 'admin'Eli Zaretskii2023-03-1915-3423/+0
| | | | | These files were temporarily in the repository and are no longer needed, once they fulfilled their job.
* ; * admin/notes/tree-sitter/starter-guide: Update starter-guide.Yuan Fu2023-03-181-77/+80
|
* ; * admin/notes/tree-sitter/starter-guide: Typos.Basil L. Contovounesios2023-02-101-2/+2
| | | | Reported by Romanos Skiadas <rom.skiad@gmail.com>.
* ; Fix incorrect function name in treesit manualSimon Pugnet2023-02-091-3/+3
| | | | | | | | | | | | An example in the documentation uses the function 'treesit-get-parser-create' which does not exist. Replace this with 'treesit-parser-create'. * admin/notes/tree-sitter/html-manual/Multiple-Languages.html: * doc/lispref/parsing.texi (Multiple Languages): Change example. Copyright-paperwork-exempt: yes
* ; Fix typosStefan Kangas2023-02-031-1/+1
|
* Call treesit_record_change in insert_from_gap_1Yuan Fu2023-02-021-0/+50
| | | | | | | | | | | | | | | Before this change, insert_from_gap calls treesit_record_change but insert_from_gap_1 doesn't. However, insert_from_gap_1 is a public function and is called in many other places outside of insdel.c. This could lead to tree-sitter's parse tree becoming out-of-sync with the buffer content. This change might fix bug#60650. * src/insdel.c (insert_from_gap_1): Call treesit_record_change. (insert_from_gap): Remove call to treesit_record_change. * admin/notes/tree-sitter/treesit_record_change: New file.
* Add support for building tree-sitter modules with MinGWRandy Taylor2023-01-251-6/+11
| | | | | * admin/notes/tree-sitter/build-module/build.sh: Add support for building tree-sitter modules with MinGW.
* Tree-sitter doc fixes (bug#60524)Juri Linkov2023-01-046-15/+15
| | | | | | | | | | | | | | | | * doc/lispref/modes.texi (Parser-based Font Lock): Replace :lang with :language. * doc/lispref/parsing.texi (Language Grammar): Replace treesit-load-suffixes with dynamic-library-suffixes. (Retrieving Nodes): Fix function names. (Tree-sitter Major Modes): Fix treesit-ready-p args. Fix pxref to Parser-based Indentation. (Tree-sitter C API): Fix function names. * lisp/treesit.el (treesit--simple-indent-eval): Remove cond BODY duplicated from CONDITION. (treesit)<define-short-documentation-group>: Fix function names.
* ; Add 2023 to copyright years.Eli Zaretskii2023-01-0111-21/+11
|
* ; Fix typosStefan Kangas2022-12-311-1/+1
|
* Add yaml-ts-mode (Bug#60105)Randy Taylor2022-12-162-0/+4
| | | | | | | | | * admin/notes/tree-sitter/build-module/batch.sh: * admin/notes/tree-sitter/build-module/build.sh: Add yaml support. * etc/NEWS: Mention it. * lisp/textmodes/yaml-ts-mode.el: New major mode with tree-sitter support. * lisp/progmodes/eglot.el (eglot-server-programs): Add it.
* Add go-ts-mode and go-mod-ts-mode (Bug#60025)Randy Taylor2022-12-152-0/+6
| | | | | | | | | * admin/notes/tree-sitter/build-module/batch.sh: * admin/notes/tree-sitter/build-module/build.sh: Add go-mod support. * etc/NEWS: Mention them. * lisp/progmodes/eglot.el (eglot-server-programs): Add them. * lisp/progmodes/go-ts-mode.el: New major modes with tree-sitter support.
* Introduce support for TOML config-formatJostein Kjønigsen2022-12-141-1/+3
| | | | | | | | | | | | | | | This commit introduces support for the semi-popular TOML config-format[1] through a new major-mode: toml-ts-mode. I've read through the full spec[2], and from what I can see this major-mode should provide correct syntax-highligting for every sort of config-declaration which adheres to the specification. Besides that it also adds support for imenu and basic tree-sitter based navigation. [1] https://toml.io/en/ [2] https://toml.io/en/v1.0.0
* ; * admin/notes/tree-sitter/build-module/build.sh: Minor name change.Yuan Fu2022-12-131-4/+4
|
* ; * admin/notes/tree-sitter/build-module/build.sh: Add -fPIC.lu4nx2022-12-121-1/+1
| | | | (bug#59967)
* Add cmake-ts-modeRandy Taylor2022-12-122-0/+4
| | | | | | | | | * admin/notes/tree-sitter/build-module/batch.sh: * admin/notes/tree-sitter/build-module/build.sh: Add cmake support. * etc/NEWS: Mention it. * lisp/progmodes/cmake-ts-mode.el: New major mode with tree-sitter support. * lisp/progmodes/eglot.el (eglot-server-programs): Add it.
* ; * admin/notes/tree-sitter/starter-guide (Indent): Minor fix.Yuan Fu2022-12-091-1/+1
|
* Add dockerfile-ts-mode (Bug#59894)Randy Taylor2022-12-092-1/+6
| | | | | | | | | | * admin/notes/tree-sitter/build-module/batch.sh: Add dockerfile support. * admin/notes/tree-sitter/build-module/build.sh: Support different namespaces and add dockerfile support. * etc/NEWS: Mention it. * lisp/progmodes/dockerfile-ts-mode.el: New major mode with tree-sitter support. * lisp/progmodes/eglot.el (eglot-server-programs): Add it.
* ; Fix typosStefan Kangas2022-12-081-1/+1
|
* Fix admin/notes/tree-sitter/build-module/build.sh (bug#59789)Yuan Fu2022-12-062-26/+31
| | | | | | | | | | | | | | | | | | | | Besides the problem mentioned by Juri, which is fixed by removing -cp tree-sitter-lang.in "tree-sitter-${lang}/src" -cp emacs-module.h "tree-sitter-${lang}/src" (we removed those files in an earlier commit, because they are not used anymore.) Now it also more parameterized and builds typescript and tsx separately. * admin/notes/tree-sitter/build-module/build.sh (topdir) (repo, sourcedir, grammardir): New variables. (Build): Make it parametric. (Copy out): Use absolute path. * admin/notes/tree-sitter/build-module/batch.sh (languages): Add tsx.
* ; Fix typos in tree-sitter filesJuanma Barranquero2022-11-221-9/+9
| | | | | | | | | | | | * admin/notes/tree-sitter/starter-guide (Font-lock) (Debugging queries, Indent, Navigation, Which-func) (More features?): * lisp/treesit.el (treesit--merge-ranges) (treesit-font-lock-feature-list, treesit-font-lock-rules) (treesit-font-lock-fontify-region, treesit--font-lock-notifier) (treesit-simple-indent-presets, treesit--font-lock-fast-mode) (treesit--indent-region-batch-size) (treesit--indent-rules-optimize, treesit-ready-p): Fix typos.
* ; Fix typosStefan Kangas2022-11-224-5/+5
|
* ; Update tree-sitter starter guideYuan Fu2022-11-218-82/+149
| | | | | | | | | | | * admin/notes/tree-sitter/starter-guide: Reflect recent changes. * admin/notes/tree-sitter/html-manual/Using-Parser.html: * admin/notes/tree-sitter/html-manual/Tree_002dsitter-C-API.html: * admin/notes/tree-sitter/html-manual/Parsing-Program-Source.html: * admin/notes/tree-sitter/html-manual/Parser_002dbased-Indentation.html: * admin/notes/tree-sitter/html-manual/Parser_002dbased-Font-Lock.html: * admin/notes/tree-sitter/html-manual/Multiple-Languages.html: * admin/notes/tree-sitter/html-manual/Language-Definitions.html: Update.
* ; Update tree-sitter HTML manuals in admin/notesYuan Fu2022-11-095-94/+168
| | | | | | | | * admin/notes/tree-sitter/html-manual/Language-Definitions.html * admin/notes/tree-sitter/html-manual/Multiple-Languages.html * admin/notes/tree-sitter/html-manual/Parser_002dbased-Font-Lock.html * admin/notes/tree-sitter/html-manual/Parser_002dbased-Indentation.html * admin/notes/tree-sitter/html-manual/Retrieving-Node.html: Update.
* ; Update guides in /admin/notes/tree-sitterYuan Fu2022-11-0310-772/+1008
| | | | | | | | | | | | | | * admin/notes/tree-sitter/html-manual/Language-Definitions.html * admin/notes/tree-sitter/html-manual/Multiple-Languages.html * admin/notes/tree-sitter/html-manual/Parser_002dbased-Font-Lock.html * admin/notes/tree-sitter/html-manual/Parser_002dbased-Indentation.html * admin/notes/tree-sitter/html-manual/Parsing-Program-Source.html * admin/notes/tree-sitter/html-manual/Pattern-Matching.html * admin/notes/tree-sitter/html-manual/Retrieving-Node.html * admin/notes/tree-sitter/html-manual/Tree_002dsitter-C-API.html * admin/notes/tree-sitter/html-manual/Using-Parser.html * admin/notes/tree-sitter/starter-guide: Update to reflect changes made recently.
* * admin/notes/tree-sitter/starter-guide (Navigation): Improve demo.Yuan Fu2022-10-101-12/+26
|
* Fix tree-sitter build script in admin/notesYuan Fu2022-10-102-4/+4
| | | | | | * admin/notes/tree-sitter/build-module/README: Add explaination. * admin/notes/tree-sitter/build-module/build.sh: change typescript to tsx.
* Make tree-sitter font-lock support decoration levelsYuan Fu2022-10-092-0/+13
| | | | | | | | | | | * admin/notes/tree-sitter/html-manual/Parser_002dbased-Font-Lock.html: Update. * admin/notes/tree-sitter/html-manual/Parsing-Program-Source.html: Update. * doc/lispref/modes.texi: Mention the new :level option. * lisp/treesit.el (treesit-font-lock-settings): Update docstring. (treesit-font-lock-rules): Support :level. Relayout the let form. (treesit-font-lock-fontify-region): Support :level.
* Add note on tree-sitter's naming conventionYuan Fu2022-10-091-0/+7
| | | | | * admin/notes/tree-sitter/starter-guide: Add note. * doc/lispref/parsing.texi: Add note.
* Add a :toggle option for tree-sitter font-lockYuan Fu2022-10-073-11/+13
| | | | | | | | | | | | | | * admin/notes/tree-sitter/html-manual/Parser_002dbased-Font-Lock.html: Update html manual. * admin/notes/tree-sitter/html-manual/build-manual.sh: Fix manual path. * admin/notes/tree-sitter/starter-guide: Mention :toggle. * doc/lispref/modes.texi: Mention :toggle. * lisp/treesit.el (treesit-font-lock-settings): Update docstring. (treesit-font-lock-rules): Handle :toggle. Also change some wrong-type-argument signal to treesit-font-lock-error which is easier to understand. (treesit-font-lock-fontify-region): Handle :toggle.
* Add tree-sitter admin notesYuan Fu2022-10-0516-0/+3444
starter-guide: Guide on writing major mode features. build-module: Script for building official language definitions. html-manual: HTML version of the manual for easy access. * admin/notes/tree-sitter/build-module/README: New file. * admin/notes/tree-sitter/build-module/batch.sh: New file. * admin/notes/tree-sitter/build-module/build.sh: New file. * admin/notes/tree-sitter/starter-guide: New file. * admin/notes/tree-sitter/html-manual/Accessing-Node.html: New file. * admin/notes/tree-sitter/html-manual/Language-Definitions.html: New file. * admin/notes/tree-sitter/html-manual/Multiple-Languages.html: New file. * admin/notes/tree-sitter/html-manual/Parser_002dbased-Font-Lock.html: New file. * admin/notes/tree-sitter/html-manual/Parser_002dbased-Indentation.html: New file. * admin/notes/tree-sitter/html-manual/Parsing-Program-Source.html: New file. * admin/notes/tree-sitter/html-manual/Pattern-Matching.html: New file. * admin/notes/tree-sitter/html-manual/Retrieving-Node.html: New file. * admin/notes/tree-sitter/html-manual/Tree_002dsitter-C-API.html: New file. * admin/notes/tree-sitter/html-manual/Using-Parser.html: New file. * admin/notes/tree-sitter/html-manual/build-manual.sh: New file. * admin/notes/tree-sitter/html-manual/manual.css: New file.