From b497800f035dc62be1788acebd939482c77852f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Lindqvist?= Date: Fri, 24 Apr 2015 11:40:06 +0200 Subject: [PATCH] FUEL: better font lock highlighting for some factor constructs Also a fix so that ! in filter! isn't wrongly interpreted as a comment. --- misc/fuel/factor-mode.el | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/misc/fuel/factor-mode.el b/misc/fuel/factor-mode.el index fd1bb60edd..c996d67b52 100644 --- a/misc/fuel/factor-mode.el +++ b/misc/fuel/factor-mode.el @@ -224,7 +224,7 @@ these lines in your .emacs: '(":" "::" ";" "&:" "<<" ">" "ABOUT:" "AFTER:" "ALIAS:" "ALIEN:" "ARTICLE:" "B" "BEFORE:" - "C:" "C-GLOBAL:" "C-TYPE:" "CHAR:" "COLOR:" "COM-INTERFACE:" "CONSTANT:" + "C-GLOBAL:" "C-TYPE:" "CHAR:" "COLOR:" "COM-INTERFACE:" "CONSULT:" "call-next-method" "DEFER:" "EBNF:" ";EBNF" "ENUM:" "ERROR:" @@ -242,7 +242,7 @@ these lines in your .emacs: "SINGLETON:" "SINGLETONS:" "SLOT:" "SPECIALIZED-ARRAY:" "SPECIALIZED-ARRAYS:" "STRING:" "SYNTAX:" "TYPEDEF:" "TYPED:" "TYPED::" - "UNIFORM-TUPLE:" "UNION:" "USE:" + "UNIFORM-TUPLE:" "USE:" "VARIANT:" "VERTEX-FORMAT:")) (defconst factor-parsing-words-regex @@ -255,7 +255,7 @@ these lines in your .emacs: (regexp-opt factor-constant-words 'symbols)) (defconst factor-bracer-words - '("B" "BV" "C" "CS" "H" "T" "V" "W")) + '("B" "BV" "C" "CS" "H" "HS" "T" "V" "W")) (defconst factor-brace-words-regex (format "%s{" (regexp-opt factor-bracer-words t))) @@ -323,7 +323,7 @@ these lines in your .emacs: (defconst factor-symbol-definition-regex (factor-second-word-regex '("&:" "CONSTANT:" "DESTRUCTOR:" "FORGET:" "HELP:" "LIBRARY:" - "SYMBOL:" "VAR:"))) + "STRING:" "SYMBOL:" "VAR:"))) (defconst factor-symbols-lines-regex "^\\(SYMBOLS\\):[ \n]+\\([^;\t]*\\);") @@ -333,7 +333,7 @@ these lines in your .emacs: (defconst factor-type-definition-regex (factor-second-word-regex '("C-STRUCT:" "C-UNION:" "COM-INTERFACE:" "MIXIN:" "SINGLETON:" - "SPECIALIZED-ARRAY:" "STRUCT:" "UNION:" "UNION-STRUCT:"))) + "SPECIALIZED-ARRAY:" "STRUCT:" "UNION-STRUCT:"))) (defconst factor-error-regex (factor-second-word-regex '("ERROR:"))) @@ -391,7 +391,7 @@ these lines in your .emacs: (defconst factor-single-liner-regex (regexp-opt '("ABOUT:" "ALIAS:" - "CONSTANT:" "C:" "C-GLOBAL:" "C-TYPE:" + "CONSTANT:" "C-GLOBAL:" "C-TYPE:" "DEFER:" "DESTRUCTOR:" "FORGET:" "GAME:" "GENERIC:" "GENERIC#" "GLSL-PROGRAM:" @@ -429,7 +429,7 @@ these lines in your .emacs: "M[^:]*: [^ ]+ [^ ]+")) (defconst factor-constructor-decl-regex - "\\_ b" table) (modify-syntax-entry ?# "_ 1b" table) + (modify-syntax-entry ?! "_" table) (modify-syntax-entry ?$ "_" table) (modify-syntax-entry ?@ "_" table) (modify-syntax-entry ?? "_" table)