Jostein Kjønigsen
1985762fbd
Introduce support for TOML config-format
...
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
2022-12-14 14:24:09 -08:00
Yuan Fu
91b8d9b7db
; * admin/notes/tree-sitter/build-module/build.sh: Minor name change.
2022-12-13 18:04:32 -08:00
lu4nx
5d4274d9b6
; * admin/notes/tree-sitter/build-module/build.sh: Add -fPIC.
...
(bug#59967)
2022-12-12 15:08:54 -08:00
Randy Taylor
ca67d988d8
Add cmake-ts-mode
...
* 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.
2022-12-12 15:08:54 -08:00
Yuan Fu
5a092c8e46
; * admin/notes/tree-sitter/starter-guide (Indent): Minor fix.
2022-12-09 20:55:43 -08:00
Randy Taylor
8f49137c9b
Add dockerfile-ts-mode (Bug#59894)
...
* 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.
2022-12-09 16:46:01 -08:00
Stefan Kangas
8fb2afe051
; Fix typos
2022-12-08 07:17:47 +01:00
Yuan Fu
6acf95cbea
Fix admin/notes/tree-sitter/build-module/build.sh (bug#59789)
...
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.
2022-12-06 16:11:35 -08:00
Juanma Barranquero
ea73fd69f0
; Fix typos in tree-sitter files
...
* 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.
2022-11-22 04:40:49 +01:00
Stefan Kangas
40539c7587
; Fix typos
2022-11-22 02:24:20 +01:00
Yuan Fu
eb1a35adc1
; Update tree-sitter starter guide
...
* 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.
2022-11-21 13:33:03 -08:00
Yuan Fu
aaeaa310f0
Merge remote-tracking branch 'savannah/master' into feature/tree-sitter
2022-11-21 12:54:35 -08:00
Stefan Kangas
16318bfb51
; Fix typos
2022-11-20 12:59:39 +01:00
Yuan Fu
eecc2d45b9
; Update tree-sitter HTML manuals in admin/notes
...
* 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.
2022-11-09 15:51:13 -08:00
Yuan Fu
5416ae5990
; Update guides in /admin/notes/tree-sitter
...
* 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.
2022-11-03 11:43:44 -07:00
Gregory Heytings
208f0578d1
Add a script to ease bisecting.
...
* admin/git-bisect-start: New script.
* admin/notes/repo (Bisecting): Mention the script.
* admin/emake: Add a Copyright blurb.
2022-11-01 19:21:38 +01:00
Gerd Möllmann
e7c105fd73
; Mention git bisect's --first-parent in admin/notes/repo
2022-11-01 10:25:28 +01:00
Stefan Kangas
636322cfe0
* admin/notes/repo: Document feature and scratch branches.
2022-10-22 12:18:34 +02:00
Yuan Fu
2f6b017e3d
* admin/notes/tree-sitter/starter-guide (Navigation): Improve demo.
2022-10-10 11:00:51 -07:00
Yuan Fu
861e1fb595
Fix tree-sitter build script in admin/notes
...
* admin/notes/tree-sitter/build-module/README: Add explaination.
* admin/notes/tree-sitter/build-module/build.sh: change
typescript to tsx.
2022-10-10 09:14:30 -07:00
Yuan Fu
c88a1631e3
Make tree-sitter font-lock support decoration levels
...
* 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.
2022-10-09 17:20:28 -07:00
Yuan Fu
9f7c359f40
Add note on tree-sitter's naming convention
...
* admin/notes/tree-sitter/starter-guide: Add note.
* doc/lispref/parsing.texi: Add note.
2022-10-09 17:20:26 -07:00
Yuan Fu
8bc6e31502
Add a :toggle option for tree-sitter font-lock
...
* 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.
2022-10-07 01:21:09 -07:00
Yuan Fu
7ebbd4efc3
Merge branch 'master' into feature/tree-sitter
2022-10-05 14:22:03 -07:00
Yuan Fu
cb183f6467
Add tree-sitter admin notes
...
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.
2022-10-05 14:11:33 -07:00
Sean Whitton
c1eb13b326
Maintaining ChangeLog history: add more details
...
* admin/notes/repo (Maintaining ChangeLog history): Add more details.
See <https://debbugs.gnu.org/58092#37 >.
2022-09-27 17:49:05 -07:00
Stefan Kangas
9b14e312f4
Merge from origin/emacs-28
...
478b786d5a ; * doc/lispref/windows.texi (Window Hooks): Fix a typo (b...
5085351645 * lisp/text-modes/tex-mode.el (tex-mode): Fix AUCTeX regre...
ee6f8598ca Add vc-annotate-switches to manual
616dcf27e5 ; Fix typos in Lisp symbols
5405852541 Remove mention of non-existent `annotate-switches'
191505b8a3 Mention that src/macuvs.h sometimes needs committing
10373c4b68 ; More comment fixes in font.h (bug#57935)
c2595b8dcc ; * src/font.h (struct font_driver): Comment fix.
97b928ce09 MacOS ld warning from native compilation (bug#57849)
2022-09-21 10:25:06 +02:00
Robert Pluim
191505b8a3
Mention that src/macuvs.h sometimes needs committing
...
* admin/notes/unicode: src/macuvs.h is generated, but needs to be
committed sometimes.
2022-09-20 11:42:21 +02:00
Stefan Kangas
9f02128bb1
Merge from origin/emacs-28
...
86f0601392 ; * admin/notes/www: Fix typos.
2cdb9d03fd ; * admin/make-tarball.txt: Minor clarifications.
2022-09-13 06:30:41 +02:00
Stefan Kangas
86f0601392
; * admin/notes/www: Fix typos.
2022-09-13 04:54:27 +02:00
Stefan Kangas
4e79f77635
Merge from origin/emacs-28
...
5e47ec9511 ; * lisp/url/url-http.el (url-http-parse-headers): Fix typo.
ba0871bef1 ; Fix typos: prefer American spelling
e3e7f31faa Adapt Tramp doc
# Conflicts:
# etc/NEWS
# etc/themes/modus-themes.el
# lisp/emacs-lisp/byte-opt.el
# test/lisp/so-long-tests/spelling-tests.el
2022-07-14 11:37:42 +02:00
Stefan Kangas
ba0871bef1
; Fix typos: prefer American spelling
2022-07-13 13:04:22 +02:00
Stefan Kangas
52c91122ee
Merge from origin/emacs-28
...
1c3d107cb5 Fix "C-u C-x =" for SPC
7e33618bbc ; * src/fns.c (Frequire): Fix a typo in the doc string. (...
6908309827 Doc fixes: don't refer to some obsolete items
dc3cb749f3 Remove obsolete cust-print from elisp index
9ffbbddf8e * admin/make-tarball.txt: Minor clarifications.
f5421104e9 Fix external image conversion on MS-Windows
6f22631a63 * doc/emacs/buffers.texi (Indirect Buffers): Mention modif...
# Conflicts:
# doc/emacs/buffers.texi
# lisp/emacs-lisp/nadvice.el
# lisp/image/image-converter.el
2022-07-02 09:33:51 +02:00
Stefan Kangas
6908309827
Doc fixes: don't refer to some obsolete items
...
* admin/notes/multi-tty:
* lisp/chistory.el (command-history):
* lisp/emacs-lisp/nadvice.el:
* lisp/vc/diff-mode.el: Doc fix; don't refer to obsolete variables and
functions.
2022-06-30 23:18:45 +02:00
Eli Zaretskii
8f17e4de2d
Fix 'bidi-class' property of unassigned codepoints
...
* admin/unidata/unidata-gen.el (unidata-file-alist): Update the
default values of 'bidi-class' according to the latest Unicode
Standard.
* admin/notes/unicode: Mention possible changes in
DerivedBidiClass.txt that need to be reflected in unidata-gen.el.
* lisp/international/characters.el (#xfb50, #xfdf0): Fix the
Arabic block characters. (Bug#55256)
2022-05-04 11:14:45 +03:00
Robert Pluim
fef5f9ef5f
; * admin/notes/emba: Fix typos
2022-04-05 18:12:59 +02:00
Michael Albinus
1b7a9753e1
* admin/notes/emba: Mention workflow rules for branches.
2022-03-25 09:28:44 +01:00
Lars Ingebrigtsen
9f25c41ad4
Add textsec-domain-suspicious-p
...
* .gitignore: Ignore idna-mapping.el.
* admin/notes/unicode: Note idna-mapping file.
* admin/unidata/IdnaMappingTable.txt: New file.
* admin/unidata/Makefile.in (all): Generate idna-mapping.el.
* admin/unidata/unidata-gen.el (unidata-gen-idna-mapping): Generate.
* lisp/international/textsec.el (textsec-domain-suspicious-p): New
function.
2022-01-18 11:53:09 +01:00
Lars Ingebrigtsen
19fefea1ca
Add textsec support for confusable characters
...
* admin/notes/unicode: Note the confusables.txt file.
* admin/unidata/Makefile.in (${unidir}/uni-confusable.el):
Generate the confusable file.
* admin/unidata/README (https): Add confusables.txt.
* admin/unidata/confusables.txt: New file.
* admin/unidata/unidata-gen.el (unidata-gen-confusable): Parse the
confusables.txt file.
* lisp/international/textsec.el (textsec-ascii-confusable-p)
(textsec-unconfuse-string): New functions.
2022-01-18 09:57:54 +01:00
Eli Zaretskii
fd17eb67c0
; * admin/notes/unicode: Update.
2022-01-17 19:09:22 +02:00
Stefan Kangas
ad125a9927
Merge from origin/emacs-28
...
efb1c7ec37 ; * admin/notes/years: More known problems.
f475c5823a ; Copyright year fixes
2684def348 ; Run set-copyright from admin.el
2558b37b5e ; * admin/notes/years: Mention known problems with 'update...
2022-01-02 06:31:44 +01:00
Eli Zaretskii
efb1c7ec37
; * admin/notes/years: More known problems.
2022-01-01 22:21:46 +02:00
Eli Zaretskii
2558b37b5e
; * admin/notes/years: Mention known problems with 'update-copyright'.
2022-01-01 17:11:32 +02:00
Eli Zaretskii
dcd76bd48d
Merge from origin/emacs-28
...
836be7a112 ; * etc/refcards/ru-refcard.tex: Update Copyright year.
86cbc6ee4a * lisp/net/tramp-sh.el: Adapt copyright year
ebe8772f65 ; Minor fixes related to copyright years
23c1ee6989 ; * test/manual/etags/ETAGS.good_N: Adjust to copyright ye...
8d3fc7ec89 * src/xfaces.c (face_for_font): Make 'hash' be uintptr_t.
19dcb237b5 ; Add 2022 to copyright years.
# Conflicts:
# etc/NEWS
# etc/refcards/ru-refcard.tex
# lib/cdefs.h
# lisp/erc/erc-dcc.el
# lisp/erc/erc-imenu.el
# lisp/erc/erc-replace.el
# lisp/image-dired.el
# lisp/progmodes/xref.el
# m4/alloca.m4
# m4/byteswap.m4
# m4/errno_h.m4
# m4/getopt.m4
# m4/gnulib-common.m4
# m4/inttypes.m4
# m4/stddef_h.m4
# m4/stdint.m4
# m4/sys_socket_h.m4
2022-01-01 07:03:03 -05:00
Eli Zaretskii
ebe8772f65
; Minor fixes related to copyright years
...
* admin/notes/years: Advise redirecting output of update-copyright
to a file.
* etc/refcards/gnus-refcard.tex (Copyright): Update years.
2022-01-01 13:01:44 +02:00
Eli Zaretskii
19dcb237b5
; Add 2022 to copyright years.
2022-01-01 02:45:51 -05:00
Michael Albinus
b30b33ed9b
ERT can generate JUnit test reports
...
* .gitignore: Add test/**/*.xml.
* admin/notes/emba: Mention JUnit test report.
* etc/NEWS: ERT can generate JUnit test reports.
* lisp/emacs-lisp/ert.el (xml-escape-string): Autoload.
(ert-write-junit-test-report)
(ert-write-junit-test-summary-report): New defuns.
(ert-run-tests-batch, ert-summarize-tests-batch-and-exit): Call them.
* test/Makefile.in (clean): Remove *.xml.
* test/README: Mention $EMACS_TEST_JUNIT_REPORT environment variable.
* test/infra/Makefile.in ($(FILE)): Generate header commentary.
(clean): Remove.
* test/infra/gitlab-ci.yml (variables): Set EMACS_TEST_JUNIT_REPORT.
(.job-template): Use it in script and after_script.
(.build-template, .gnustep-template, .filenotify-gio-template)
(.native-comp-template): Adapt rules.
(.test-template): Trigger JUnit test report.
* test/infra/test-jobs.yml: Regenerate.
2021-12-13 16:09:56 +01:00
Michael Albinus
7878c7f596
* admin/notes/emba (Emacs jobset): Remove stage slow.
...
* test/infra/Makefile.in (subdir_template): Add rule.
* test/infra/gitlab-ci.yml (.job-template): Remove changes section.
(.build-template, .gnustep-template, .filenotify-gio-template):
(.native-comp-template): Adapt changes section.
(.test-template): Add needs. Adapt artifacts paths.
(stages): Remove slow.
(test-all-inotify): Move up. Change stage to normal. Remove timeout.
(test-filenotify-gio, test-gnustep, test-native-comp-speed0):
Move needs up.
* test/infra/test-jobs.yml: Regenerate.
2021-11-24 13:43:32 +01:00
Michael Albinus
196196c739
Adapt emba jobs
...
* admin/notes/emba (Emacs jobset): Precise.
* test/infra/Makefile.in (tn): New variable.
(subdir_template): Use it. Handle eieio-tests, faceup-tests and
so-long-tests. Rearrange .PHONY entry. Add needs and artifacts
to emba job.
* test/infra/gitlab-ci.yml (test-filenotify-gio): Move up.
* test/infra/test-jobs.yml: Regenerate.
2021-11-22 16:33:16 +01:00
Eli Zaretskii
0b8f3c75fc
Fix Emoji-related documentation
...
* etc/NEWS: Fix wording and spelling.
* doc/emacs/mule.texi (Input Methods): Add index entries and fix
wording.
* admin/notes/unicode: Update instructions for updating Emacs for
the latest Unicode Standard.
2021-11-06 20:05:02 +02:00