From 00786d9cb9e5ff7ddb2d470a2c0249369d0000a8 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 1 Feb 2026 19:25:13 +0000 Subject: [PATCH] Simple arl-mode plugin for Emacs --- extensions/arl-mode.el | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 extensions/arl-mode.el diff --git a/extensions/arl-mode.el b/extensions/arl-mode.el new file mode 100644 index 0000000..816b44a --- /dev/null +++ b/extensions/arl-mode.el @@ -0,0 +1,37 @@ +;;; arl-mode.el --- ARL mode for Emacs -*- lexical-binding: t; -*- + +;; Copyright (C) 2026 Aryadev Chavali + +;; Author: Aryadev Chavali +;; Keywords: + +;; Copyright (C) 2026 Aryadev Chavali + +;; This program is distributed in the hope that it will be useful, but WITHOUT +;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +;; FOR A PARTICULAR PURPOSE. See the MIT License for details. + +;; You may distribute and modify this code under the terms of the MIT License, +;; which you should have received a copy of along with this program. If not, +;; please go to . + +;;; Commentary: + +;; + +;;; Code: + +(defvar arl-mode-comments '(?\; ";;" ("#|" . "|#"))) +(defvar arl-mode-keywords '("if" "then" "else")) +(defvar arl-mode-expressions '(("\".*\"" . font-lock-string-face))) +(defvar arl-mode-automode-list '("\\.arl")) + +(define-derived-mode arl-mode + arl-mode-comments + arl-mode-keywords + arl-mode-expressions + arl-mode-automode-list + nil) + +(provide 'arl-mode) +;;; arl-mode.el ends here