[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-source-highlight] [patch] highlighting usertypes started with `_'
From: |
Masatake YAMATO |
Subject: |
[Help-source-highlight] [patch] highlighting usertypes started with `_' |
Date: |
Sun, 01 May 2011 11:06:00 +0900 (JST) |
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 <address@hidden>
* 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:]\[\]]+))`
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Help-source-highlight] [patch] highlighting usertypes started with `_',
Masatake YAMATO <=