Skip to content

Commit

Permalink
feat: Add Haxe support
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Feb 15, 2024
1 parent 4e9492c commit b19f6f5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how
* Add `MATLAB` support (#110)
* Add `Ninja` support (#112)
* Add `Svelte` support (#116)
* Add `Haxe` support (#117)

## 0.3.0
> Released Nov 29, 2023
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ These languages are fairly complete:
- Elisp / Elixir / Erlang
- Fish
- GDScript / GLSL / Go / Groovy (Jenkinsfile)
- Haskell / HLSL / HTML
- Haskell / Haxe / HLSL / HTML
- Jai / Java / JavaScript / JSX / JSON / Jsonnet / Julia
- Kotlin
- LaTex / Lisp / Lua
Expand Down
5 changes: 5 additions & 0 deletions ts-fold-parsers.el
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,11 @@
'((function . ts-fold-range-haskell-function)
(comment . ts-fold-range-lua-comment)))

(defun ts-fold-parsers-haxe ()
"Rule set for Haxe."
'((block . ts-fold-range-seq)
(comment . ts-fold-range-c-like-comment)))

(defun ts-fold-parsers-hlsl ()
"Rule set for HLSL."
'((field_declaration_list . ts-fold-range-seq)
Expand Down
1 change: 1 addition & 0 deletions ts-fold-summary.el
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ type of content by checking the word boundary's existence."
(groovy-mode . ts-fold-summary-javadoc)
(jenkinsfile-mode . ts-fold-summary-javadoc)
(haskell-mode . ts-fold-summary-lua-doc)
(haxe-mode . ts-fold-summary-javadoc)
(hlsl-mode . ts-fold-summary-c)
(html-mode . ts-fold-summary-xml)
(jai-mode . ts-fold-summary-c)
Expand Down
1 change: 1 addition & 0 deletions ts-fold.el
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
(groovy-mode . ,(ts-fold-parsers-groovy))
(jenkinsfile-mode . ,(ts-fold-parsers-groovy))
(haskell-mode . ,(ts-fold-parsers-haskell))
(haxe-mode . ,(ts-fold-parsers-haxe))
(hlsl-mode . ,(ts-fold-parsers-hlsl))
(html-mode . ,(ts-fold-parsers-html))
(jai-mode . ,(ts-fold-parsers-jai))
Expand Down

0 comments on commit b19f6f5

Please sign in to comment.