]> gitweb.factorcode.org Git - factor.git/commitdiff
Font lock for USE: and USING: args.
authorJose A. Ortega Ruiz <jao@gnu.org>
Sun, 16 Nov 2008 00:51:20 +0000 (01:51 +0100)
committerJose A. Ortega Ruiz <jao@gnu.org>
Sun, 16 Nov 2008 00:51:20 +0000 (01:51 +0100)
misc/factor.el

index fe050d18f29aff1fb227e8df9877640b19143ff7..0b1207797700db969f16072b98c8385606f38e28 100644 (file)
@@ -82,7 +82,7 @@
 (defconst factor--parsing-words
   '("{" "}" "^:" "^::" ";" "<<" "<PRIVATE" ">>"
     "BIN:" "BV{" "B{" "C:" "C-STRUCT:" "C-UNION:" "CHAR:" "CS{" "C{"
-    "DEFER:" "ERROR:" "FORGET:"
+    "DEFER:" "ERROR:" "EXCLUDE:" "FORGET:"
     "GENERIC#" "GENERIC:" "HEX:" "HOOK:" "H{"
     "IN:" "INSTANCE:" "INTERSECTION:"
     "M:" "MACRO:" "MACRO::" "MAIN:" "MATH:" "METHOD:" "MIXIN:"
 (defconst factor--regex-const-definition
   (factor--regex-second-word '("SYMBOL:")))
 
+(defconst factor--regex-using-line "^USING: +\\([^;]*\\);")
+(defconst factor--regex-use-line "^USE: +\\(.*\\)$")
+
 (defconst factor-font-lock-keywords
   `(("#!.*$" . font-lock-comment-face)
     ("!( .* )" . font-lock-comment-face)
     (,factor--regex-parsing-words-ext . font-lock-keyword-face)
     (,factor--regex-word-definition 2 font-lock-function-name-face)
     (,factor--regex-type-definition 2 font-lock-type-face)
-    (,factor--regex-const-definition 2 font-lock-constant-face)))
+    (,factor--regex-const-definition 2 font-lock-constant-face)
+    (,factor--regex-using-line 1 font-lock-constant-face)
+    (,factor--regex-use-line 1 font-lock-constant-face)))
 
 (defun factor-indent-line ()
   "Indent current line as Factor code"