Skip to content

Commit

Permalink
FUEL: improve highlighting of LIBRARY:, HELP: and deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
bjourne authored and mrjbq7 committed Apr 18, 2014
1 parent edb2df5 commit f999e87
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions misc/fuel/factor-mode.el
Expand Up @@ -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:"
Expand Down Expand Up @@ -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))
Expand Down Expand Up @@ -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]*\\);")

Expand Down

0 comments on commit f999e87

Please sign in to comment.