]> gitweb.factorcode.org Git - factor.git/commitdiff
FUEL: improve highlighting of LIBRARY:, HELP: and deprecated
authorBjörn Lindqvist <bjourne@gmail.com>
Fri, 18 Apr 2014 00:47:28 +0000 (02:47 +0200)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 18 Apr 2014 15:43:11 +0000 (08:43 -0700)
misc/fuel/factor-mode.el

index bcb22b8b2c3634d52d54174b9ca7455e9156c5b8..2fb6a048a0746c4119906aebb0b98729665a7efa 100644 (file)
@@ -217,9 +217,8 @@ source/docs/tests file. When set to false, you'll be asked only once."
     "FOREIGN-ATOMIC-TYPE:" "FOREIGN-ENUM-TYPE:" "FOREIGN-RECORD-TYPE:" "FUNCTION-ALIAS:"
     "GAME:" "GENERIC#" "GENERIC:" "GIR:"
     "GLSL-SHADER:" "GLSL-PROGRAM:"
-    "HELP:" "HINTS:" "HOOK:"
+    "HINTS:" "HOOK:"
     "IN:" "initial:" "INSTANCE:" "INTERSECTION:" "IMPLEMENT-STRUCTS:"
-    "LIBRARY:"
     "M:" "M::" "MACRO:" "MACRO::" "MAIN:" "MATH:"
     "MEMO:" "MEMO:" "METHOD:" "MIXIN:"
     "NAN:"
@@ -248,7 +247,13 @@ source/docs/tests file. When set to false, you'll be asked only once."
   (format "%s{" (regexp-opt factor-bracer-words t)))
 
 (defconst factor-declaration-words
-  '("flushable" "foldable" "inline" "parsing" "recursive" "delimiter"))
+  '("deprecated"
+    "flushable"
+    "foldable"
+    "inline"
+    "parsing"
+    "recursive"
+    "delimiter"))
 
 (defconst factor-declaration-words-regex
   (regexp-opt factor-declaration-words 'symbols))
@@ -298,12 +303,13 @@ source/docs/tests file. When set to false, you'll be asked only once."
   (factor-second-word-regex
    '("IN:" "USE:" "EXCLUDE:" "QUALIFIED:" "QUALIFIED-WITH:")))
 
-(defconst factor-using-lines-regex "^\\(USING\\):[ \n]+\\([^;\t]*\\);")
+(defconst factor-using-lines-regex "^\\(USING:\\)[ \n]+\\([^;\t]*\\);")
 
 ;; Symbols
 (defconst factor-symbol-definition-regex
   (factor-second-word-regex
-   '("&:" "CONSTANT:" "DESTRUCTOR:" "FORGET:" "SYMBOL:" "VAR:")))
+   '("&:" "CONSTANT:" "DESTRUCTOR:" "FORGET:" "HELP:" "LIBRARY:"
+     "SYMBOL:" "VAR:")))
 
 (defconst factor-symbols-lines-regex "^\\(SYMBOLS\\):[ \n]+\\([^;\t]*\\);")