root/tools/crules.el

Revision 89dcccd4721f29950f4455a999e0f47593678065, 1.4 kB (checked in by Philip Herron <redbrain@…>, 2 years ago)

more code time for sleep

  • Property mode set to 100644
Line 
1;; Crules is the legal property of its developers. Please refer to the
2;; COPYRIGHT file distributed with this source distribution.
3;;
4;; This program is free software: you can redistribute it and/or modify
5;; it under the terms of the GNU General Public License as published by
6;; the Free Software Foundation, either version 3 of the License, or
7;; (at your option) any later version.
8;;
9;; This program is distributed in the hope that it will be useful,
10;; but WITHOUT ANY WARRANTY; without even the implied warranty of
11;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12;; GNU General Public License for more details.
13;;
14;; You should have received a copy of the GNU General Public License
15;; along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
17;; Maintainer @see crules/AUTHORS
18;; Original Developer RedBrain - Philip Herron
19
20;; Designed to be a fully featured mode for programming crules in
21;; our beloved emacs editor :)
22
23(define-generic-mode 'crules-mode
24  '("#")
25  '("object" "defun" "break" "continue"
26    "return" "for" "while" "import" "if"
27    "elif" "else" "print" )
28  '(("[a-zA-Z_][a-zA-Z0-9_]+" . font-lock-variable-name-face)
29    ("[0-9]+" "[0-9]+.[0-9]+"
30    "true" "false" "nil" . font-lock-constant-face)
31    ("\\[.*\\]" . font-lock-type-face))
32  '(".crl\\'")
33  nil
34  "Generic Major mode for the Crules programming language!")
35
36
Note: See TracBrowser for help on using the browser.