[patch] highlighting usertypes started with `_'

Masatake YAMATO <[email protected]> Sun, 01 May 2011 11:06:00 +0900 (JST)
Newsgroups gmane.comp.gnu.source-highlight.general
Organization Red Hat Japan, Inc.
Message-ID <[email protected]>
Hi,

In C program usertypes started with `_' are not highlighted expectedly.
e.g.

    typedef i __i;
    __i j = 1;

here __i is not recognized as usertype.
Usetype started with _ is popular in linux kernel.

2011-05-01  Masatake YAMATO  <[email protected]>

	* src/clike_vardeclaration.lang: Accept a usertype started with _.

diff --git a/src/clike_vardeclaration.lang b/src/clike_vardeclaration.lang
index 620c45f..bbee078 100644
--- a/src/clike_vardeclaration.lang
+++ b/src/clike_vardeclaration.lang
@@ -1,4 +1,4 @@
 (usertype,usertype,normal) = 
-`([[:alpha:]](?:[^[:punct:][:space:]]|[_])*)
+`([[:alpha:]_](?:[^[:punct:][:space:]]|[_])*)
 ((?:<.*>)?)
 (\s+(?=[*&]*[[:alpha:]][^[:punct:][:space:]]*\s*[[:punct:]\[\]]+))`