SWI-Prolog supports quasi-quotations, which allow you to incorporate different languages as part of your Prolog code. Sweep recognizes quasi-quotations and highlights their contents according to the Emacs mode corresponding to the quoted language.
(type . mode) pairs, where type is a
Prolog quasi-quotation type, and mode is a symbol specifying the
major mode to use for highlighting quasi-quoted text of type
The user option
sweeprolog-qq-mode-alist specifies the
association between SWI-Prolog quasi-quotation types and Emacs major
quasi-quotation types. You can change the default choice of mode for
these highlighting languages and add associations for other languages
If a quasi-quotation type does not have a matching mode in
sweeprolog-qq-mode-alist, Sweep highlights the quoted content
For more information about quasi-quotations in SWI-Prolog, see library(quasi_quotations) in the SWI-Prolog manual.