>>>> "Phanender" == Phanender N
<phanendernn(a)infotech.stph.net> writes:
Phanender> Hi All,
Phanender> I have written a 'soapp.el' file to derive a major
Phanender> mode. In my mode every
Phanender> keyword starts with $. For example '$run'. I need to
Phanender> highlight the whole thing. But I could able to achieve
Phanender> the highlighting effect only on run keyword and not
Phanender> with dollar ($) character. How to highlight a
Phanender> character?
Hello Phanender, see
http://cvs.xemacs.org/viewcvs.cgi/XEmacs/packages/xemacs-packages/prog-mo...
which has this:
(setq verilog-font-lock-keywords
(list
;; Fontify all builtin keywords
(concat "\\<\\(" verilog-font-keywords "\\|"
;; And user/system tasks and functions
"\\$[a-zA-Z][a-zA-Z0-9_\\$]*"
"\\)\\>")
;; Fontify all types
(cons (concat "\\<\\(" verilog-type-font-keywords "\\)\\>")
'font-lock-type-face)
))
As you can see here, $ needs to be escaped of its special meaning in
regular expressions (matching end of line).
Use
C-x C-e (eval-last-sexp)
after the following line:
(Info-goto-node "(xemacs)Regexps")
For the whole list of XEmacs package sources, see
http://www.xemacs.org/Develop/packages.html
Good Luck,
Adrian
Phanender> Also, in my '.runin' file a comment starts with keyword
Phanender> comment. I need to highlight this. If I am providing
Phanender> the word directly in my keywords list, its not getting
Phanender> highlighted.
Phanender> Can you please provide me help in this regard?
--
Adrian Aichner
mailto:adrianï¼ xemacs.org
http://www.xemacs.org/