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:]\[\]]+))`

_______________________________________________
Help-source-highlight mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-source-highlight

Reply via email to