diff options
| author | Po Lu | 2022-12-11 09:34:03 +0800 |
|---|---|---|
| committer | Po Lu | 2022-12-11 09:34:03 +0800 |
| commit | 6d6ca47aba7b72d2a770d7ed01c849d3cc729e21 (patch) | |
| tree | e8181f7188a3a74147549b7ba76ea9c3a696259c /admin/notes | |
| parent | e08564432918aa87b49da58ac90bb43718424364 (diff) | |
| parent | 44c5f3614973d8dc389ddcdc1b3f8ab1c809194d (diff) | |
| download | emacs-6d6ca47aba7b72d2a770d7ed01c849d3cc729e21.tar.gz emacs-6d6ca47aba7b72d2a770d7ed01c849d3cc729e21.zip | |
Merge from origin/emacs-29
44c5f361497 ; Fix two byte-compiler warnings
a8ee046fb50 Ensure 'package-vc--version' always returns a version
022ab1061b2 Ensure 'package-vc--main-file' always returns an existing...
357fe91996b Check if package already exists before installing from ch...
5e8bc79f6b2 ; Fix reference in docstring to 'package-vc-install-from-...
af88b00b19c Refresh the package quickstart file in package-vc
5a092c8e461 ; * admin/notes/tree-sitter/starter-guide (Indent): Minor...
ebef8905b0d Make indirect buffers use tree-sitter parsers of their ba...
8f53fa10d94 Fontify "this" as a keyword in c++-ts-mode (bug#59924)
8de8f1dc051 Add class_body indentation for typescript (bug#59680)
839341d7370 Make more granular defun-type-regexp (bug#59873)
8f49137c9bf Add dockerfile-ts-mode (Bug#59894)
1014bcc8e32 Fix fontification of method-invocations in js-ts-mode (bu...
7141920c6af Fix escape-sequence feature in typescript-ts-mode (bug#59...
4df35e3491c Improve fontification in csharp-ts-mode (bug#59909)
33a8415eb7e Use 'project--value-in-dir' for 'project-vc-include-untra...
594267395d5 Update Turkish Hello
940d9070e97 Support newer glib versions (Bug#59061)
0bd26abf7fb ; * doc/misc/use-package.texi: Fix @file.
bcf235acd58 Merge branch 'emacs-29' of git.savannah.gnu.org:/srv/git/...
2ea7a357fd1 ; * doc/misc/use-package.texi: Fix @acronym.
d268ab1c5d7 Bring back the project--value-in-dir logic
Diffstat (limited to 'admin/notes')
| -rwxr-xr-x | admin/notes/tree-sitter/build-module/batch.sh | 1 | ||||
| -rwxr-xr-x | admin/notes/tree-sitter/build-module/build.sh | 6 | ||||
| -rw-r--r-- | admin/notes/tree-sitter/starter-guide | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/admin/notes/tree-sitter/build-module/batch.sh b/admin/notes/tree-sitter/build-module/batch.sh index d45f37f4b64..6dce000caa6 100755 --- a/admin/notes/tree-sitter/build-module/batch.sh +++ b/admin/notes/tree-sitter/build-module/batch.sh | |||
| @@ -5,6 +5,7 @@ languages=( | |||
| 5 | 'cpp' | 5 | 'cpp' |
| 6 | 'css' | 6 | 'css' |
| 7 | 'c-sharp' | 7 | 'c-sharp' |
| 8 | 'dockerfile' | ||
| 8 | 'go' | 9 | 'go' |
| 9 | 'html' | 10 | 'html' |
| 10 | 'javascript' | 11 | 'javascript' |
diff --git a/admin/notes/tree-sitter/build-module/build.sh b/admin/notes/tree-sitter/build-module/build.sh index d562f1a7846..cc31e3f6f02 100755 --- a/admin/notes/tree-sitter/build-module/build.sh +++ b/admin/notes/tree-sitter/build-module/build.sh | |||
| @@ -14,11 +14,15 @@ echo "Building ${lang}" | |||
| 14 | 14 | ||
| 15 | ### Retrieve sources | 15 | ### Retrieve sources |
| 16 | 16 | ||
| 17 | namespace="tree-sitter" | ||
| 17 | repo="tree-sitter-${lang}" | 18 | repo="tree-sitter-${lang}" |
| 18 | sourcedir="tree-sitter-${lang}/src" | 19 | sourcedir="tree-sitter-${lang}/src" |
| 19 | grammardir="tree-sitter-${lang}" | 20 | grammardir="tree-sitter-${lang}" |
| 20 | 21 | ||
| 21 | case "${lang}" in | 22 | case "${lang}" in |
| 23 | "dockerfile") | ||
| 24 | namespace="camdencheek" | ||
| 25 | ;; | ||
| 22 | "typescript") | 26 | "typescript") |
| 23 | sourcedir="tree-sitter-typescript/typescript/src" | 27 | sourcedir="tree-sitter-typescript/typescript/src" |
| 24 | grammardir="tree-sitter-typescript/typescript" | 28 | grammardir="tree-sitter-typescript/typescript" |
| @@ -30,7 +34,7 @@ case "${lang}" in | |||
| 30 | ;; | 34 | ;; |
| 31 | esac | 35 | esac |
| 32 | 36 | ||
| 33 | git clone "https://github.com/tree-sitter/${repo}.git" \ | 37 | git clone "https://github.com/${namespace}/${repo}.git" \ |
| 34 | --depth 1 --quiet | 38 | --depth 1 --quiet |
| 35 | cp "${grammardir}"/grammar.js "${sourcedir}" | 39 | cp "${grammardir}"/grammar.js "${sourcedir}" |
| 36 | # We have to go into the source directory to compile, because some | 40 | # We have to go into the source directory to compile, because some |
diff --git a/admin/notes/tree-sitter/starter-guide b/admin/notes/tree-sitter/starter-guide index 123dabd9f29..a6a4c647f23 100644 --- a/admin/notes/tree-sitter/starter-guide +++ b/admin/notes/tree-sitter/starter-guide | |||
| @@ -282,7 +282,7 @@ For MATHCER we have | |||
| 282 | NODE-INDEX-MIN NODE-INDEX-MAX) | 282 | NODE-INDEX-MIN NODE-INDEX-MAX) |
| 283 | 283 | ||
| 284 | => checks everything. If an argument is nil, don’t match that. Eg, | 284 | => checks everything. If an argument is nil, don’t match that. Eg, |
| 285 | (match nil nil TYPE) is the same as (parent-is TYPE) | 285 | (match nil TYPE) is the same as (parent-is TYPE) |
| 286 | 286 | ||
| 287 | For ANCHOR we have | 287 | For ANCHOR we have |
| 288 | 288 | ||