[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/treesit-fold 42d059d7db 314/417: feat: Add HLSL support (#
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/treesit-fold 42d059d7db 314/417: feat: Add HLSL support (#93) |
Date: |
Mon, 1 Jul 2024 10:02:57 -0400 (EDT) |
branch: elpa/treesit-fold
commit 42d059d7db1944aca6022e7d124fa19bdbf3d5ff
Author: Jen-Chieh Shen <jcs090218@gmail.com>
Commit: GitHub <noreply@github.com>
feat: Add HLSL support (#93)
---
CHANGELOG.md | 1 +
README.md | 2 +-
ts-fold-parsers.el | 6 ++++++
ts-fold-summary.el | 1 +
ts-fold.el | 1 +
5 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d04dc59a78..f97487418a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -23,6 +23,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for
recommendations on how
* Add Make support (#90)
* Add SQL support (#91)
* Add Common Lisp support (#92)
+* Add HLSL support (#93)
## 0.2.0
> Released Sep 01, 2023
diff --git a/README.md b/README.md
index 872c49c51b..e7ca946c54 100644
--- a/README.md
+++ b/README.md
@@ -118,7 +118,7 @@ These languages are fairly complete:
- Dart
- Elisp / Elixir / Erlang
- GDScript / Go
-- Haskell / HTML
+- Haskell / HLSL / HTML
- Jai / Java / JavaScript / JSX / JSON / Jsonnet / Julia
- Kotlin
- LaTex / Lisp / Lua
diff --git a/ts-fold-parsers.el b/ts-fold-parsers.el
index 0974e6ad6c..efed4c5ed8 100644
--- a/ts-fold-parsers.el
+++ b/ts-fold-parsers.el
@@ -226,6 +226,12 @@
'((function . ts-fold-range-haskell-function)
(comment . ts-fold-range-lua-comment)))
+(defun ts-fold-parsers-hlsl ()
+ "Rule set for HLSL."
+ '((field_declaration_list . ts-fold-range-seq)
+ (compound_statement . ts-fold-range-seq)
+ (comment . ts-fold-range-c-like-comment)))
+
(defun ts-fold-parsers-html ()
"Rule set for HTML."
'((element . ts-fold-range-html)
diff --git a/ts-fold-summary.el b/ts-fold-summary.el
index dd341799bf..ab31b33812 100644
--- a/ts-fold-summary.el
+++ b/ts-fold-summary.el
@@ -236,6 +236,7 @@ type of content by checking the word boundary's existence."
(gdscript-mode . ts-fold-summary-ruby-doc)
(go-mode . ts-fold-summary-go)
(haskell-mode . ts-fold-summary-lua-doc)
+ (hlsl-mode . ts-fold-summary-c)
(html-mode . ts-fold-summary-xml)
(jai-mode . ts-fold-summary-c)
(java-mode . ts-fold-summary-javadoc)
diff --git a/ts-fold.el b/ts-fold.el
index 40ab8da53a..45cb836da9 100644
--- a/ts-fold.el
+++ b/ts-fold.el
@@ -79,6 +79,7 @@
(gdscript-mode . ,(ts-fold-parsers-gdscript))
(go-mode . ,(ts-fold-parsers-go))
(haskell-mode . ,(ts-fold-parsers-haskell))
+ (hlsl-mode . ,(ts-fold-parsers-hlsl))
(html-mode . ,(ts-fold-parsers-html))
(jai-mode . ,(ts-fold-parsers-jai))
(java-mode . ,(ts-fold-parsers-java))
- [nongnu] elpa/treesit-fold 19a05adc09 167/417: Rename, (continued)
- [nongnu] elpa/treesit-fold 19a05adc09 167/417: Rename, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 421809b55c 171/417: Add support evil-toggle-fold, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold d0e235d762 162/417: Fix toc, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 828938f21f 173/417: Update cask version for CI, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold be87b44bc0 174/417: Update CI, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 39067f4452 175/417: Update CI, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 247058db79 179/417: Revert macro indentation, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 785f13b063 181/417: ci: eask, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 43ac6e1f8d 182/417: ci: eask, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 7127218040 185/417: ci: correct make clean, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 42d059d7db 314/417: feat: Add HLSL support (#93),
ELPA Syncer <=
- [nongnu] elpa/treesit-fold 70b2c79ff4 308/417: changelog, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 0627723e5f 368/417: Rename license with no ext, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold aa6146bc62 313/417: feat: Add Lisp support (#92), ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 9717243a85 347/417: feat: Add Tablegen support, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 44a237a329 359/417: fixed linting issues in parsers, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 757d2fab67 346/417: feat: Add ActionScript support, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 0b7eb8fb5b 410/417: typo, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold f66e2b8be9 417/417: perf: Wait for post command to render, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold ca1b5d701d 134/417: Update doc, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 86c3e73746 135/417: Add html summary parser, ELPA Syncer, 2024/07/01