comp.emacs
[Top] [All Lists]

Turning regexp-opt back to a list of words

Subject: Turning regexp-opt back to a list of words
From: rgb
Date: Fri, 29 Aug 2008 07:26:12 -0700 PDT
Newsgroups: comp.emacs

Lets say some mode writer used regexp-opt to create their font-lock-
keyword expression.
So only something like this string is in the mode source, not the
original word list.

"\\<\\(d\\(?:o\\|efault\\)\\|else\\(if\\)?\\|f\\(?:oreach\\|unction\\)\
\|if\\|switch\\|t\\(?:hrow\\|rap\\)\\|w\\(?:here\\|hile\\)\\)\\>"

The mode is not supported and I want to take over maintenance.
That means adding words.
Is there any way to turn this back into a list so the new words can be
added?

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy