Skip to content

Commit

Permalink
Remove uiua-ts-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Nov 22, 2023
1 parent 32351ea commit 41a8c63
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 138 deletions.
29 changes: 8 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,28 @@ jobs:
matrix:
include:
- emacs: 27.1
ts: false
lint: false
- emacs: 29.1
ts: true
lint: true
- emacs: snapshot
ts: true
lint: true
lint: false
steps:
- uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs }}
- uses: actions/checkout@v4

- name: Install package-lint
- name: Install dependencies
run: emacs -Q -l .github/workflows/init.el -batch
--eval "(package-install 'reformatter)"
--eval "(package-install 'package-lint)"

- name: Lint uiua-mode
run: emacs -Q -l .github/workflows/init.el -batch
-f package-lint-batch-and-exit
uiua-mode.el

- name: Install uiua-mode locally
# We do this before linting uiua-ts-mode, so package-lint knows about it
- name: Compile
run: emacs -Q -l .github/workflows/init.el -batch
--eval '(package-install-file "uiua-mode.el")'
-L . -f batch-byte-compile *.el

- name: Lint uiua-ts-mode
- name: Lint
if: ${{ matrix.lint }}
run: emacs -Q -l .github/workflows/init.el -batch
-f package-lint-batch-and-exit
uiua-ts-mode.el

- name: Install uiua-ts-mode locally
if: ${{ matrix.ts }}
run: emacs -Q -l .github/workflows/init.el -batch
--eval '(package-install-file "uiua-ts-mode.el")'
--eval '(setq package-lint-main-file "uiua-ts-mode.el")'
-f package-lint-batch-and-exit *.el
19 changes: 4 additions & 15 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ This is an emacs mode for [[https://www.uiua.org][Uiua]], an array language
Much like the language itself, this mode is currently in progress.

** Setup
There are two major modes: one which uses tree-sitter, and one which does not.
The latter is meant for emacs versions without treesitter capabilities,
Users with access to tree-sitter should not prefer it.
To use without tree-sitter

Users with an Emacs that supports treesitter should prefer [[https://github.com/crmsnbleyd/uiua-ts-mode][uiua-ts-mode]].

Otherwise, to use this conventional major mode:
#+begin_src emacs-lisp
(use-package uiua-mode
:mode "\\.ua\\'"
Expand All @@ -21,17 +21,6 @@ To use without tree-sitter
:type git :host github
:repo "crmsnbleyd/uiua-mode"))
#+end_src
To use with tree-sitter
#+begin_src emacs-lisp
(use-package uiua-mode
:mode ("\\.ua\\'" . uiua-ts-mode)
:straight
(uiua-mode
:type git :host github
:repo "crmsnbleyd/uiua-mode"))
#+end_src
Upon loading a .ua file, emacs will complain about not finding the grammar.
Simply type ~M-x treesit-install-language-grammar~ then ~uiua~ to install it.

** Screenshots
Syntax highlighting of various uiua elements, in [[https://github.com/crmsnbleyd/flexoki-emacs-theme][flexoki-theme]].
Expand Down
102 changes: 0 additions & 102 deletions uiua-ts-mode.el

This file was deleted.

0 comments on commit 41a8c63

Please sign in to comment.