]> gitweb.factorcode.org Git - factor.git/commitdiff
FUEL: highlight of SLOT: syntax and backslashes in names
authorBjörn Lindqvist <bjourne@gmail.com>
Mon, 23 May 2016 00:23:21 +0000 (02:23 +0200)
committerBjörn Lindqvist <bjourne@gmail.com>
Mon, 23 May 2016 00:23:21 +0000 (02:23 +0200)
misc/fuel/factor-mode.el

index 7d72e7656b229fb8bb6e13d4444fdf49633be2a7..a8422c4545d5688a2b00e652c460a5a2bf56f0db 100644 (file)
@@ -229,7 +229,6 @@ these lines in your .emacs:
     "METHOD:"
     "PRIVATE>" "PROTOCOL:" "PROVIDE:"
     "read-only"
-    "SLOT:"
     "STRING:" "SYNTAX:"
     "UNIFORM-TUPLE:"
     "VARIANT:" "VERTEX-FORMAT:"))
@@ -301,7 +300,7 @@ these lines in your .emacs:
 (defconst factor-symbol-definition-regex
   (syntax-and-1-symbol
    '("&" "CONSTANT" "DESTRUCTOR" "FORGET" "GAME" "HELP" "LIBRARY"
-     "MAIN" "MAIN-WINDOW" "STRING" "SYMBOL" "VAR")))
+     "MAIN" "MAIN-WINDOW" "SLOT" "STRING" "SYMBOL" "VAR")))
 
 ;; [parsing-word] [symbol-word]* ;
 (defconst factor-symbols-lines-regex
@@ -882,6 +881,7 @@ With prefix, non-existing files will be created."
     (modify-syntax-entry ?# "_" table)
     (modify-syntax-entry ?! "_" table)
     (modify-syntax-entry ?\n ">   " table)
+    (modify-syntax-entry ?\\ "_" table)
     (modify-syntax-entry ?$ "_" table)
     (modify-syntax-entry ?@ "_" table)
     (modify-syntax-entry ?? "_" table)