I wrote a simple mode with the following
font-lock definition, which defines just some keywords:
(defvar marpa-mode-font-lock `((,(regexp-opt '(":default" "action" "lexeme" "default" "latm" "separator") t) . 'font-lock-keyword-face) ) "Highlighting for Marpa mode")
I use it in my mode function in this way:
(set (make-local-variable 'font-lock-defaults) '(marpa-mode-font-lock))
When I use the mode more than just the keywords are highlighted. Strings are also highlighted with some kind of C or Lisp default syntax.
How can I disable the default string syntax in order to replace it with my own definition?
In the language for which I wrote the mode, strings are not delimited by double quotes. Instead they are delimited by single quotes and may have a suffix attribute like this: